Hi everyone, 

I am still getting hard error on memp_malloc after not null check.
Statistic writes this error: memp_malloc: out of memory in pool
PBUF_POOL, despite MEM PBUF_POOL: avail: 20, used 4, max 8.

Then tcpip stack stops receive anything. The call to memp_malloc is when
pbuf_malloc tries to allocate the head of the chain. pbuf_pool_bufsize is
around 1500B and the length of the incoming appears to be max 128B.

#define TCP_MSS                 (1500 - 40)
#define ETH_PAD_SIZE                    0
#define PBUF_LINK_HLEN                  (14 + ETH_PAD_SIZE)
#define PBUF_POOL_BUFSIZE LWIP_MEM_ALIGN_SIZE(TCP_MSS+40+PBUF_LINK_HLEN)
#define PBUF_POOL_SIZE                  20

This state happens after approx 15minutes of idling on my network.

Thank you for your help!

Adam





--
View this message in context: 
http://lwip.100.n7.nabble.com/LwIP-1-4-1-ChibiOS-2-6-STM32F407-memp-malloc-out-of-memory-in-pool-PBUF-POOL-tp22810.html
Sent from the lwip-users mailing list archive at Nabble.com.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to