AnsweredAssumed Answered

mcf51cn128cgt LwIP  tcp communication stop working after some period

Question asked by swapnil vhanale on Mar 28, 2018
Latest reply on Mar 29, 2018 by Fang Li

Hello All,

         I have ported freertos with LwIP on coldfire v1 mcf51cn128cgt to build serial to ethernet converter. The data transmission from serial port to ethernet works fine for about 1-2 hours. After that board loose its ethernet communication and stops working.

I tried debugging the code, most of the time i got memory allocation error. I am sure there is Buffer overflow problem but not getting exactly where it happening. 

       I tried  by changing segment size(TCP_MSS), sender buffer space(TCP_SEND_BUF),  PBUF_POOL_BUFSIZE, and PBUF_POOL_BUF which are defined in lwipopts.h file. but still i am getting problem connection loss. 

 

Is anyone have solution about it ?

 

Regards,

Swapnil

Outcomes