lpcware

LwIP sample program failure

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by tamirmichael on Mon Jun 11 10:59:57 MST 2012
Hello,

I have downloaded the port of lwIP for LPC17xx and encountered a program failure after some time the controller (LPC1788) handes bus events
(I ran the TCP echo sample, but I suspect that any will do to demonstrate this):

    /* all pbufs in a chain are referenced at least once */
    LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);

Which can be found at pbuf.c, Line 627 of version 1.4.0 (the function "pbuf_free"). The failure occurrs both with dynamic and staticaly allocated heap after at most several minutes of running, being pinged or not.
How can this happen? Did you encounter this too? What can be done about it?

Outcomes