s32k344 lwip example ping not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

s32k344 lwip example ping not working

跳至解决方案
3,390 次查看
malove
Contributor IV

Hello,

I am testing Ethernet using the lwIP TCP/IP stack example.

However, when I ping 192.168.0.200, it shows "Destination host unreachable" and "Request timed out."

I am using the S32K344 EVB T172 SCH-53148 REVB2 700-53148 REV X5 evaluation board.

What could be the problem?

0 项奖励
回复
1 解答
3,149 次查看
PavelL
NXP Employee
NXP Employee

Hello @malove ,

what version TCP/IP stack are you using? There's a new version S32K3_TCPIP_STACK_2.0.0. But you board is supported by version 1.0.3 as well.

Please check also this Ethernet (board: S32K3X4EVB-T172) _transceiver TJA1103 - NXP Community

Best regards,

Pavel

在原帖中查看解决方案

0 项奖励
回复
12 回复数
117 次查看
tonnys
Contributor I

hello,

i have the same issue. i have the CANHUBK3 RevA eval board. i have adjusted all pins according the schematics and set the tx pins to driver strength enabled. my usb media converter has the 192.168.0.10 ip address. ping does not work however. i do see traffic from the board on the network (mdns messages)

can you help?

thanks in advance,

Tonny

0 项奖励
回复
3,372 次查看
PavelL
NXP Employee
NXP Employee

Hello @malove ,

Assuming the link partner of EVB is your laptop. Naturally, you need some  RDDRONE-T1ADAPT: Ethernet media converter | NXP Semiconductors to convert 100BASE-T1 to TX. But to avoid any collision with corporate network, RDDRONE needs to be connected to  some USB-to-Ethernet converter which is set to 192.168.0.100 :

PavelL_0-1733298559392.png

Best regards,

Pavel

0 项奖励
回复
3,349 次查看
malove
Contributor IV

Hello, @PavelL 

Based on your guidance, I have performed the following steps:

 

  1. S32K344 Board <--> RAD-STAR2 Media Converter <-LAN to USB-> PC
  2. Changed IPv4 configuration: 192.168.0.10 --> 192.168.0.100

 

However, the command prompt still shows "Destination Host Unreachable."

What should I do next?

studyseok8466_0-1733354306685.png

 

 

0 项奖励
回复
3,335 次查看
PavelL
NXP Employee
NXP Employee

Hello @malove ,

1. please check settings of our RAD STAR2 - it shall be configured as simple media converter (Figure 3, 2. Introduction and Overview — RAD-Star 2 documentation).

2. please check pin configuration of the lwip example with respect to MII/RMII of your board. You may try to set up/check drive strength of TX pins...

Best regards,

Pavel

0 项奖励
回复
3,332 次查看
malove
Contributor IV

Hello @PavelL 

 

studyseok8466_0-1733391176835.png

I have set the RAD-STAR2 to simple media converter mode and executed the lwIP sample code.

 

studyseok8466_1-1733391213910.png

However, there are some messages appearing in the Vehicle SPY 3 program that I don't understand, although it seems that communication is occurring.

Why is there no response to the ping test?

 

0 项奖励
回复
3,316 次查看
PavelL
NXP Employee
NXP Employee

Hello @malove ,

have you checked your MII/RMII pin configuration?

One reason might be that S32K3 is not receiving packets from the PHY.

Best regards,

Pavel

0 项奖励
回复
3,241 次查看
malove
Contributor IV

Sorry for the late reply, @PavelL

I built and downloaded the firmware for the S32K344 EVB board using the lwIP TCP/IP stack code without making any modifications.

Is there anything I need to configure separately?

0 项奖励
回复
3,219 次查看
PavelL
NXP Employee
NXP Employee

Hello @malove ,

yes, please check pin configuration of the lwip example with respect to MII/RMII of your board. You may try to set up/check drive strength of TX pins...

Best regards,

Pavel

0 项奖励
回复
3,186 次查看
malove
Contributor IV

Hello @PavelL 

I am currently using the S32K344EVM-T172 REV B2 board, and I have not modified any of its default configurations.

I have built the LwIP TCP/IP stack sample code without any changes. My connection setup is as follows:

Power Supply <-> EVM Board <-> Automotive Ethernet Cable <-> RAD-STAR2 <-> LAN to USB and USB to PC.

The network configuration is set as follows:

  • IPv4: 192.168.0.10
  • Subnet: 255.255.255.0

After completing the setup, I opened the command prompt and ran the following command:

ping 192.168.0.200
 

However, the result was:

Reply from 192.168.0.10: Destination host unreachable.

Are there any additional factors or settings I should consider in this scenario?

Thank you in advance for your help.

0 项奖励
回复
3,150 次查看
PavelL
NXP Employee
NXP Employee

Hello @malove ,

what version TCP/IP stack are you using? There's a new version S32K3_TCPIP_STACK_2.0.0. But you board is supported by version 1.0.3 as well.

Please check also this Ethernet (board: S32K3X4EVB-T172) _transceiver TJA1103 - NXP Community

Best regards,

Pavel

0 项奖励
回复
3,018 次查看
malove
Contributor IV

Thanks for all the advice @PavelL .

I changed the media converter settings to make it operate smoothly.

0 项奖励
回复
3,108 次查看
malove
Contributor IV

Hello @PavelL 

I currently use tcpip version 1.0.3 because we have to use RTD 4.0.0

0 项奖励
回复