cancel
Showing results for 
Search instead for 
Did you mean: 

Assertion "pbuf_free: p->ref > 0" failed at line 747 ../Middlewares/Third_Party/LwIP/src/core/pbuf.c Received too many bytes! Droping client.

KAMAL Joshi
Associate

Hello Everyone,

I am using STM32F429ZIT MCU and Modbus TCP library provided by FreeModbus.

After attaching TCP library to my application code, i am getting below errors.

In modbus TCP library , inside portTCP.c , if i am commenting

prvvMBPortReleaseClient_s( pxPCB ) funcion inside

prvxMBTCPPortReceive( void *pvArg, struct tcp_pcb *pxPCB, struct pbuf *p, err_t xErr ) function, then my code is working perfectly, my device can handle multiple TCP request one by one.

but whe i am adding above function then i am getting below errors , and my device drops TCP client

i think it might be causing because of memory allocation

Thank in advance.

0690X00000896dsQAA.png

0690X00000896egQAA.png

0 REPLIES 0