S32K148 lwip can not ping Ethernet

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

S32K148 lwip can not ping Ethernet

2,124 Views
naderkhamess
Contributor III

Hello,

My problem is :

i can not ping my s32k board from my pc. MCU is running sdk v3.0 lwip to test Ethernet.

I have S32K148-Q176 and TJA1101 and Automotive eth/media converter fb602. 

 

S32K settings : 

jumpers: J18:1-2, J7:2-3, J8:1-2   ( VDD is 5V and i didn't change any code ) 

TJA1101: Slave, 12volts is selected 

lwip : 192.168.0.200/255.255.255.0 

Media converter settings: 

I set a static ip for the media converter 192.168.0.101/255.255.255.0 so that they have same sub-net.

it is set as Master.

i also tried to add Board's MAC into arp cache using command : arp-s 192.168.0.200 22-33-44-55-66-77

i attached two photos, for my prototype and cmd line ping.

i would be grateful if any other hints to try ?

(P.s i tried at the beginning to run the phy_tja1101 sdk project, it showed green LED, and it doesn't run tcpip stack, but was a guide to verify my connection )

4 Replies

1,903 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello naderkhamess‌,

In the following path in the S32 Design Studio installation folder you can find the readme from the LWIP example:

S32DS_ARM_v2.2/S32DS/software/S32SDK_S32K1xx_RTM_3.0.0/doc/html_S32K148/lwip_s32k148_group.html

This mentions that depending on the EVB version you will need to move some resistors. Also you can find a guide of how to run this demo in the following link.

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 Kudos

1,903 Views
brian_moran
Contributor II

S32K148EVB-Q176 Rev B Lwip Demo Application + ADTJA1101 phy

I had the same issue with no ping when using usb powered 3.3v.

On the rev B board I had to move R137 to R123. The other mentioned resistors were already in place per the SDK documentation.

I installed a jumper on H3 of the ADTJA1101 phy to force it to be a slave. I configured my media converter as a master.

I also switched over to 12V external power supply and the lwip demo application started working.

Hope this helps, lost a couple days on this...

0 Kudos

1,903 Views
naderkhamess
Contributor III

Hello Alexis,

First of all, thank you for answering me! 

Secondly, Yes you are right, the demo is saying and i noticed it recently-->  In order for the example to work, resistors R123 and R514 must be populated and resistors R137 and R96 depopulated. These changes are in place on the S32K148 EVB (RevC).

i saw in another thread mentioning resistors S32K148EVB + ADTJA1101-RMII. And the answer was that documentation is wrong and we should keep the resistors like they are.(for RevC)

In my boards I have R137 populated and R123 depopulated.

i have RevA, RevB boards, i tried both and didn't work. I will try also in in revB to change resistors anyhow,

but Any other hint? 

0 Kudos

1,903 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello naderkhamess‌,

Other think you could try is send packages from your device and sniff the communication. This will tell you if the problem is in hardware or software.

Best Regards,

Alexis Andalon

0 Kudos