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
Hello, Swapnil
I am not sure how you allocate the memory. Please make referenece below Table 5 to double confirm. (It was truncated from the AN3906: https://www.nxp.com/docs/en/application-note/AN3906.pdf