debug ‘Lwip_enet_iperf3’ problem description

cancel
Showing results for 
Search instead for 
Did you mean: 

debug ‘Lwip_enet_iperf3’ problem description

390 Views
li57752009
Contributor I

Hi,

I am learning the ‘Lwip_enet_iperf3’ example and need help with the following problem.

The IP set for the mainboard network port is 192.168.1.102. The IP set for the computer is 192.168.1.121.

PC ping mainboard  is OK.

But,It will fail to connect to the computer server, so I open SOCKETS_DEBUG and the prompt is as follows

I find this err code is -13         ->        err = netconn_connect(sock->conn, &remote_addr, remote_port);

debug info:

Enter IP addr of a server in format '192.168.1.2'
192.168.1.121
Using IP 192.168.1.121
Initializing PHY...
Menu:
Press 's' to start client Tx mode
Press 'r' to start client Rx mode
Press 'S' to start client Tx UDP mode
Press 'R' to start client Rx UDP mode
s
Tx mode!
lwip_socket(PF_INET, SOCK_STREAM, 0) =
0

Connecting to the server...
lwip_connect(0, addr=192.168.1.121port=5205)

lwip_connect(0) failed, err=-13

Failed!
lwip_close(0)

lwip_socket(PF_INET, SOCK_STREAM, 0) =0

Labels (1)
0 Kudos
3 Replies

339 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

Could you please help me confirm which device you are using ? Also, the examples you are using, where did you download it form? Which version you are using ?

Regards,

Estephania

0 Kudos

339 Views
li57752009
Contributor I

Hi

I used mainboard  is IMXRT1050-EVKB

The examples is 'evkbimxrt1050_lwip_enet_iperf3'  using import SDK example

pastedImage_1.png

0 Kudos

339 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello Eddy,

Hope you are doing well.

From your image it looks like you are working with SDK 2.7.0, could you please update the SDK to the latest version. Also were you able to follow the initial instructions in the readme file successfully?

Best Regards,

Sabina

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

0 Kudos