Hi Mark
Thank you.
The whole thing seems strange.
Beforehand, I must to tell that my application specific TCP/IP communication is done using fnSendBufTCP() to relieve my code from NACKs treatment. And I would like to get Telnet as a mean of debugging and logging.
I incremented again the heap size, this time to 28262 bytes.
When the board starts, and cannot connect with the server ( because it's down ) my readings are
Heap free: 7750 bytes
Stack unused: 0 bytes
After that, I can
1) Start the application server. When the connection is up and the board sends its first "handshake" frame, the values are
Heap free: 4906 byte
Stack unused: 0 bytes ( of course )
In this stage, if I try to connect the telnet server, the board resets ( under watchdog command, I suppose ).
2) Alternatively, on board reset with no app server up, I can connect the telnet server, and get the telnet menu.
Of course, the heap and stack figures are equal.
Once the telnet session is established, if I start my app server, when the board tries to send the handshake, again the watchdog detects an anomaly and resets the board.
After the first TCP buffer allocation, the heap is reduced by 2844 bytes, which matches sizeof(tcp-buffer), and remains 4906, which would suffice to allocate a second TCP buffer, but it's clear that it does not happens.
Could you give me a tip regarding this? I was diving the code to find a way to increment the stack size but at no luck.
Another strange thing is when the telnet connection is established. After the board sends the menu, a few seconds later two debugging messages starts to appear, one after the other, once and again:
TIMEOUT!!!
No valid SD-card
I traced both to mass_storage.c, but cannot find why the app is trying to access an SD card.
Thank you in advance, Mark.
Best regards
Marcelo