[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] CRC error when dhcp_start() used
From: |
TJO |
Subject: |
Re: [lwip-users] CRC error when dhcp_start() used |
Date: |
Wed, 17 Feb 2016 14:49:48 +0000 |
Hi,
I do not call lwip functions from interrupts.
I ise netconn API
I mean 1.4.1 yes,
The NO_SYS is 0 using lwip function for handling timers. So I do not use the
sys_check_timeouts() function.
It do send the DHCP request and the stack works great if I do not use DHCP
Thomas
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Sergio R. Caprile
Sent: 17. februar 2016 14:07
To: address@hidden
Subject: Re: [lwip-users] CRC error when dhcp_start() used
lpc_ functions are not part of lwIP. You should go to LPC forums to see what
they do and why they report Ethernet frame CRC errors, thing lwIP does not know
and so does not care about.
You seem to be having a memory trashing scenario.
Make sure interrupts do not call lwIP functions, lwIP is single-threaded, you
can basically use it from multiple threads only by using the netconn and socket
API (do you?), but even so, the main lwIP code is mostly non-reentrant.
By 1.4.x you mean x=?
In 1.4.1, I'm not sure because I've never used NO_SYS=0, you should be calling
sys_check_timeouts() while you wait. There are timers for DHCP.
(You must for NO_SYS=1). Are you ?
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users