[En-Nut-Discussion] Problem with app rs232d.

Ernst Stippl ernst at stippl.org
Sun Jun 3 08:53:25 CEST 2007


Hi Paulo!

This sounds a bit like a possible stack overflow problem. Where did you
define the 3200 byte variable?
 - global
 - within thread "Receiver"
 - within "main" 
 - elsewhere

Try move the 3200 byte variable around between these to see how the
behaviour changes....

regards
ernst 

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Paulo da Silva
Gesendet: Samstag, 02. Juni 2007 05:33
An: Ethernut User Chat (English)
Betreff: [En-Nut-Discussion] Problem with app rs232d.

Hi all,


I have an application that use the code from application rs232d, and I have
an error, fisrtly I thought that my application could have a bug, so I
compile only the rs232d application and tested with it and I had the same
error.
The error is:
 I open a terminal in PC to connet to rs232 of my board, and a telnet to
tcp/ip port 23 of this board runnig nut-os, then I send a big file from one
terminal to another at the same time.The file is sent in both directions
with no problem, but if I close the PC telnet and open it again the nut-os
crashs in one situation that I describe below:
When I compile the application rs232d avr-gcc tell me that I used 733bytes
of data memory, in this situation everything works good, I can close and
open the PC telnet a several times with no problem, data goes from one
terminal to another, but when I declare a variable with size 3200bytes, and
send the file as I described above, I got an error, when I close the PC
telnet and open it again the nut-os crashs.
I declare this variable to see if the problem was memory, because my full
application has http, syslog, so the compiler tells me about 3200 bytes
used, so the problem seems to be that nut-os internal memory must be not
used for it run rs232d application.Is this true? Why it does not use the
external memory if internal has ended?

My system is version is Ethernut 1.3G compatible, I have 64kbytes of
external ram.
Ethernuyt version 4.2.1 and avr-gcc version  3.4.6.

Please may somebody help-me, about this problem?

Thank you in advance.

Paulo

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.7/829 - Release Date: 02.06.2007
17:26




More information about the En-Nut-Discussion mailing list