Altera_Forum
Honored Contributor
19 years agoEthernet (LWIP)
Hi all,
I have got the LWIP running without an RTOS. I have a question or two. When starting up and running my application, the dev board tries to connect to a server and after a timeout it closes the connection and tries to re-establish the connection (If it doesn't create the connection). Every other time it'll sort itself out and connect and do what it needs to do. The other times it'll run and right after I close the connection to retry establishing it, the whole thing crashes and in the console I get a message "Assertion "memp sanity" failed at line 264 in ../lwip-0.7.1/src/core/memp.c". (The error code given is -3???? Where can I checkup on the error codes?) I assume this has to do with some memory config. Am I right? Also, when I try to establish a connection from scratch, should I / and is there a way to reset the SMSC chip on my dev board? (Using the NIOS Development Kit Cyclone Edition) Another thing, the timer that is called every 250ms, are there any implication if I run it everytime the "service routine" is done? I have done this and the speed increase is GREAT!!! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif Running the tcp_tmr() every 250ms makes the comms really slow. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif Any help would be appreciated!!! Regards, Tyrone