TCP echo example crashes (lwip_freertos_tcpecho)

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

TCP echo example crashes (lwip_freertos_tcpecho)

1,791件の閲覧回数
gewesp
Contributor I

Hi all,

I've recently started using Xpresso to develop an application using TCP connections.

We're using the NGX Xplorer 1830 board (LCP1837 MCU).

I tried the shipped lwIP examples, specifically lwip_freertos_tcpecho.  The only modification was the IP configuration for our network.

Unfortunately, the demo behaves very unstable to the point where it is unusable in practice:

* It crashes reproducibly if nmap -sn is run on the network.  Apparently the app is not designed to handle these packets, how to add support for this / avoid the crash?

* It randomly crashes during TCP connections, usually after entering 5-10 strings.  Closing the connection and establishing a new one after it accelerates the crashes.

Any pointers greatly appreciated!

If commercial support to resolve these issues is available, we'd happily buy it.

Best

--Gerhard

KISS Technologies GmbH

KISS Technologies - Home 

0 件の賞賛
返信
2 返答(返信)

1,606件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi  Gerhard Wesp

One similar issue happened in Kinetis and fixed some time ago,  it is caused by discontinuous memory, maybe you can refer the below link for more details

FreeRTOS LwIP SDK v2.0.0 tpcipecho demo crash 

Regards

Daniel

0 件の賞賛
返信

1,606件の閲覧回数
gewesp
Contributor I

Hi Daniel,

thanks.  I tried the fix suggested (increase PBUF_POOL_BUFSIZE), that didn't help.  The example can still be reproducibly crashed by running the following on a computer connected to the same network:

 sudo nmap -sn 192.168.1.0/24

Best

--Gerhard

0 件の賞賛
返信