[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Packets stop sending after a while when MEMP_OVERFLOW_C
Re: [lwip-users] Packets stop sending after a while when MEMP_OVERFLOW_CHECK isn't 2
Wed, 25 Apr 2018 20:47:59 +0200
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
On 25.04.2018 20:41, Sebastian Gniazdowski wrote:
However, now I've discovered that if I change the *_CHECK define to 0
or 1, then ca. 13000 packets are correctly sent, and after that the
only packets sent are frequent (in each second) ARP queries (discovery
of gate's MAC), as captured by Wireshark, confirmed by MCU's Ethernet
Why such correlation between a debug option and crash-behavior? What
can be wrong?
I'd say you're violating lwIP's concurrency/threading requirements and
the slowdown of MEMP_OVERFLOW_CHECK==2 hides this.
or try the new LWIP_ASSERT_CORE_LOCKED() check macro. Although for that,
you need a recent git master version and need to implement the check