enet_ping_mpc5748g not working

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

enet_ping_mpc5748g not working

跳至解决方案
4,005 次查看
rajani_sureja33
Contributor III

Hello,

I am using NXP DEVKIT-5748G rev-D board and S32 design studio ide for developemt.

Here i am using "enet_ping_mpc5748g" example code but its not working so far even i have change example default mac address and ip addr.

would you please help me, how to test this example?

Thanks,

Rajani Sureja

Embedded SW Engineer

1 解答
3,767 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please clarify following points?

What is the board connected to? Is it PC?

If yes, have you already add DEVKIT MAC address into the PC arp cache? I think enet_ping example does not implement ARP reply, so, arp cache in PC must be updated manually. Please use arp -s command to add the mac address.

Regards,

Martin

在原帖中查看解决方案

7 回复数
3,666 次查看
cjfowler
Contributor I

Manually updating the ARP cache was what did the trick for my Linux system.  My windows development system was still unable to ping with the ARP cache update.  I'm not looking for help, but just wanted to share so others having this issue know they might have better luck on a Linux system.

3,767 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

As Martin suggested - just add Board's MAC into arp cache - with default settings use:

arp -s 192.168.1.19 22:33:44:55:66:77

After that, example is working as expected: 

pastedImage_1.png

Jiri

3,767 次查看
rajani_sureja33
Contributor III

If I connect the board with LAN cable then how to test this example?

0 项奖励
回复
3,767 次查看
rajani_sureja33
Contributor III

I mean need to connect board with PC point to point OR is it fine to connect with LAN network?

0 项奖励
回复
3,767 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

this example is very simple - it can only answer the ping request - nothing else.  So - you need to connect EVB to your PC with static IP address in the same range as EVB - for example - PC IP address 192.168.1.1. You need to add EVB's IP and MAC to ARP table (by command mentioned above). Then you can ping from your PC the EVB and you got correct answer - as shown on terminal screenshot. 

Jiri 

3,767 次查看
rajani_sureja33
Contributor III

Thanks you  JiRi Kral:)

0 项奖励
回复
3,768 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please clarify following points?

What is the board connected to? Is it PC?

If yes, have you already add DEVKIT MAC address into the PC arp cache? I think enet_ping example does not implement ARP reply, so, arp cache in PC must be updated manually. Please use arp -s command to add the mac address.

Regards,

Martin