Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hervé

Pages: 1 2 3 [4] 5 6 7
46
NXPTM LPC2XXX and LPC17XX / Stack_Mem
« on: October 04, 2010, 03:59:05 PM »
Hello Mark,

I need help with your variables names  :-\.
On LPC23XX.c :
Code: [Select]
        _extern_ unsigned char Stack_Mem;
        #define HEAP_START_ADDRESS  &Stack_Mem                           // Keil - start of stack
.....
        fnInitialiseHeap(ctOurHeap, HEAP_START_ADDRESS);                     // initialise heap
That means that you initialized OUR_HEAP_SIZE locations from Stack_Mem for the µTaskerHeap.


but on LPC23xx_keil.s:
Code: [Select]
        EXPORT  Stack_Mem
        AREA    STACK, NOINIT, READWRITE, ALIGN=3
Stack_Mem       SPACE   USR_Stack_Size
What is the use of this line, which reserved USR_Stack_Size locations from Stack_Mem again.


47
µTasker general / fnFilterUserFile
« on: September 28, 2010, 09:44:42 AM »
Hi Mark,
I try to test my program with the simulator on the web part.
I got an error when trying to use a ptrFiles->fileName pointing to a bad area.
This test has to be modified for the simulator, don't you think so ?

48
µTasker general / Re: fnFillBuf
« on: September 28, 2010, 09:37:14 AM »
Thanks Mark.

Good remark : I think it's the interrupt stack which was too small.

49
µTasker general / fnFillBuf
« on: September 27, 2010, 10:25:04 AM »
Hello Mark,

During the EMAC_Interrupt
The function fnFillBuf() is called
the parameter ptQUEQue is read from the stack and assigned to register
The problem is that there is Interrupt activation inside it.

Code: [Select]
....
    if (ptQUEQue->put >= ptQUEQue->buffer_end) {
        ptQUEQue->put -= ptQUEQue->buf_length;                           // handle overflow
        FirstCopy -= (QUEUE_TRANSFER)(ptQUEQue->put - ptQUEQue->QUEbuffer);
    }
    uEnable_Interrupt();                                                 // ensure copies do not block interrupts
    uMemcpy(ptrTo, input_buffer, FirstCopy);
    if (nr_of_bytes != FirstCopy) {
        uMemcpy(ptQUEQue->QUEbuffer, (input_buffer + FirstCopy), (nr_of_bytes - FirstCopy));
    }
    uDisable_Interrupt();
.....

after uEnable_Interrupt() the register of the Interrupt bank are modified, then on the line
Code: [Select]
uMemcpy(ptQUEQue->QUEbuffer...ptQUEQue is no more pointing to a correct reference.....

Is this line
Code: [Select]
uEnable_Interrupt(); // ensure copies do not block interruptsreally necessary?


50
µTasker general / Re: 1UserFiles.bin
« on: September 22, 2010, 03:09:36 PM »
Thank you for this rapid change.

It works fine.

51
µTasker general / Re: 1UserFiles.bin
« on: September 22, 2010, 01:11:19 PM »
T:\TGIP\Web>..\..\uTasker\Tools\uTaskerFileCreate -f user_files.txt 1UserFiles.bin
Adding file _0HTTP
Adding file _link
Adding file _favicon
Adding file _Status
Adding file _2admin
Output files 1UserFiles.bin and 1UserFiles.c successfully created
Embedded user file collection target address = 0x60000
Embedded user table location = 0x612b4


with
 
...
0HTTP. -w -T=MIME_HTML
...

but fnFilterUserFile() does not math :


52
µTasker general / Re: 1UserFiles.bin
« on: September 22, 2010, 12:54:32 PM »
T:\uTasker\Tools>uTaskerFileCreate -v
      uTaskerFileCreate V1.2

I think it's the last one

53
µTasker general / Re: 1UserFiles.bin
« on: September 22, 2010, 12:36:01 PM »
T:\TGIP\Web>..\..\uTasker\Tools\uTaskerFileCreate -f user_files.txt 1UserFiles.bin
Adding file _link
Adding file _favicon
Adding file _Status
Adding file _2admin
Output files 1UserFiles.bin and 1UserFiles.c successfully created
Embedded user file collection target address = 0x60000
Embedded user table location = 0x611b0


with  user_files.txt =
// This file is used as input to which files are added to the packed user file table (avoid tab use)
#define FILE_HEADER_LEN 5 // this must match with uFileSystem setting
#define MAX_FILE_LENGTH 4 // size in bytes
#define BIG_ENDIAN 0 // target is big-endian - set 0 for little
#define ALIGN 1 // align the table to allow direct accesses to long pointers - set 0 if not important

#define FILE_VISIBLE 0 // defines for use when generating binary content - use only decimal input
#define FILE_INVISIBLE 1
#define FILE_ADD_EXT 2

#define MIME_HTML                  0
#define MIME_JPG                   1
#define MIME_GIF                   2
#define MIME_CSS                   3
#define MIME_JAVA_SCRIPT           4
#define MIME_BINARY                5
#define MIME_TXT                   6
#define MIME_ICON                  7
#define MIME_BMP                   8

%60000 // location (hex) in uFileSystem (eg. corresponding to '1' if param are at the beggining)

// -w [remove additional white space to minimise size for all html files]
// -T [File type]
0HTTP -w -T=MIME_HTML
link.htm -w -T=MIME_HTML
favicon.ico -T=MIME_ICO
Status.htm -w -T=MIME_HTML
2admin.htm -w -T=MIME_HTML
XML?Dummy -w -T=MIME_HTML

54
µTasker general / 1UserFiles.bin and 0HTTP
« on: September 22, 2010, 10:52:34 AM »
I also want to include 0HTTP :
When I write :
Code: [Select]
// -w [remove additional white space to minimise size for all html files]
// -T [File type]
0HTTP -w -T=MIME_HTML
link.htm -w -T=MIME_HTML
...

in the user_files.txt , uTaskerFileCreate does not include it

When I write:
Code: [Select]
0HTTP. -w -T=MIME_HTML
uTaskerFileCreate includes it , but fnFilterUserFile() does not find it ...

How can I make ?

55
µTasker general / 1UserFiles.bin
« on: September 21, 2010, 01:08:16 PM »
Hello Mark,

Concerning the uploaded 1UserFiles.bin : how can i put in it the pseudo file "XML?Dummy" ?

56
Hi Mark,

I'm using <Dummy>£vX4</Dummy> now, thanks.

1/ Still have some question : cucXML_header never seems to be use, is it right?
2/ I'm trying to get the XML response on IE6, but in fact it works only when using responseText not responseXML : The format is not correct for IE, may be; do you note the same behaviour ? (I had no problem with FF...)

Thanks.

57
Hi Mark

I will manage with the built-in mechanism.

When I test the counter with http://192.168.167.205/XML?Dummy, it increases every two.
Then I put a breakpoint on
Code: [Select]
                     fnBufferDec(ucTestCounter++, 0, cValue);and it's called twice effectively.
Do you know why ?

Regards


58
Hi Mark,

Thanks a lot, it's so simple when you explain.

When I try with the "normal code" I got an answer from the web server through the user files (ajax1)..
When I intercept inside fnDoWebPage() I got no answer
Is it enough to call fnSendTCP() with usLen set to the data length of ucTCP_Message ?

Thanks.

59
I tried to modify fnDoWebPage() like jharvey, and test it with the following url http://192.168.167.205/XML?Dummy
The problem is that it does not send back the content generated by MakeXmlDocument()
On wireshark I got the following :

GET /XML?Dummy HTTP/1.1
Host: 192.168.167.205
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.8) Gecko/20100722 AskTbTRL2/3.7.0.231 Firefox/3.6.8
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

...............

GET /favicon.ico HTTP/1.1
Host: 192.168.167.205
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.8) Gecko/20100722 AskTbTRL2/3.7.0.231 Firefox/3.6.8
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
HTTP/1.1 200 OK
Connection: close
Cache-Control: no-cache                         
............ .h.......(....... ..... .......................................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...............................{...{...{...{...{...{...{...{...{...................:...:...I........<..>...
...G...M.......Z}..%.......E;...
...2



I never asked for GET /favicon.ico HTTP/1.1
How is it possible to have this command looged?

60
µTasker general / Re: TCIP
« on: August 05, 2010, 02:05:42 PM »
Hello Mark, thanks for your explanations.

I'm really so confused, I'm not understanding completely this behaviour as my application is always waiting the TCP_EVENT_ACK before sending a new frame :

The PC sent two configuration frame 24 and 26.
The first one(24) was acked normaly on frame 25 by the TCP stack.
During the same time the second one(26) was sent with an ack for frame 25 in it, the board want to send a confirmation frame(27)
This is done with the same Ack number than the previous frame(25), because there was no data received at this time as you noticed.

Then the application layer wanted to send a second confirmation frame to the Pc, and wait TCP_EVENT_ACK which was already arrived from frame 26 and so is allowed to send a new frame.

So far I understood, this is a normal behaviour, but really confusing..

Pages: 1 2 3 [4] 5 6 7