mcf51cn128cgt LwIP tcp communication stop working after some period

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mcf51cn128cgt LwIP tcp communication stop working after some period

548 Views
swapnilvhanale
Contributor I

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

Labels (1)
Tags (1)
0 Kudos
1 Reply

399 Views
miduo
NXP Employee
NXP Employee

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

pastedImage_1.png

0 Kudos