mcf51cn128cgt LwIP tcp communication stop working after some period

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mcf51cn128cgt LwIP tcp communication stop working after some period

896件の閲覧回数
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

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

747件の閲覧回数
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 件の賞賛
返信