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 ?