Re: [lwip-users] pbuf_alloc failed after sometime at driver side.

2014-10-15 Thread jbhoi
@Sergio R. Caprile I think you are right, i haven't check buffer in tcp/udp call back. Now i am free the buffer in call back and it's working longer. Will let you know after more testing. Thanks -- View this message in context:

Re: [lwip-users] pbuf_alloc failed after sometime at driver side.

2014-10-11 Thread jbhoi
I don't think the issue related to the driver because driver have pass after checking the eth type of the pakcet it pass to the upper layer stack. And now upper laye stack have resposibilty to free this packat after it no longer in use. Here peace of drive code /* move received packet

[lwip-users] pbuf_alloc failed after sometime at driver side.

2014-10-10 Thread jbhoi
I am using lwip 1.4.1 for lpc1833 microcontroller with freeRTOS version 7.3.0.Have used driver for lpc18xx_43xx family http://docs.lpcware.com/lpcopen/v1.03/lpc18xx__43xx__emac_8c.html http://docs.lpcware.com/lpcopen/v1.03/lpc18xx__43xx__emac_8c.html I am successfully able to up and run the

Re: [lwip-users] pbuf_alloc failed after sometime at driver side.

2014-10-10 Thread jbhoi
Thanks for replying @Thomas But my device have limited memory. I am able to use 16K memory so have defined it #define MEM_SIZE(16 * 1024). Also my lwip not crashes but just lost the ping from other device. Any other way to overcome this issue? Can we force the upper

[lwip-users] Memory allocation fail after some time in lwip stack for lpc1833 controller

2014-10-08 Thread jbhoi
I am working on LPC1833 microcontroller and used lwip stack *v1.4.1* and freeRTOS *v7.3.0.* I am successfully able to up and run the stack and ping this controller from other device. But this work for sort time(around 2 to 3 minutes) after that ping is lost.I have trace the issue in which