PHY Auto-negotiation failed. Please check the cable connection and link partner setting.

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

PHY Auto-negotiation failed. Please check the cable connection and link partner setting.

跳至解决方案
4,415 次查看
ranjay_shandilya
Contributor III

Hi,

I'm trying to run lwip example on MXRT1050. I'm using MCUXpresso IDE. I have connected ethernet cable to the board.

When I run the application, it doesn't work. I get following output on terminal:

output: PHY Auto-negotiation failed. Please check the cable connection and link partner setting.

and it gets stuck at the call  -> netif_add(&netif, &netif_ipaddr, &netif_netmask, &netif_gw, &enet_config, EXAMPLE_NETIF_INIT_FN, ethernet_input);

Any reason for this?

标签 (1)
0 项奖励
回复
1 解答
4,361 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ranjay_shandilya ,

   Thanks so much for your updated information.

   So, the issue still in the PC side, yes, I also find some other customer due to the IT limit to make it works.

   If your question is solved, please help to mark the correct answer.

   Any new issues, welcome to create the new question post.

Best Regards,

Kerry

在原帖中查看解决方案

0 项奖励
回复
13 回复数
4,366 次查看
ranjay_shandilya
Contributor III

Got it working. The issues was bcs of our network firewall.

Thanks

0 项奖励
回复
4,362 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ranjay_shandilya ,

   Thanks so much for your updated information.

   So, the issue still in the PC side, yes, I also find some other customer due to the IT limit to make it works.

   If your question is solved, please help to mark the correct answer.

   Any new issues, welcome to create the new question post.

Best Regards,

Kerry

0 项奖励
回复
4,410 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ranjay_shandilya ,

   Please help me to check the following points:

1. Which MIMXRT1050 board you are testing, do you test the MIMXRT1050-EVKB board? Do you do any hardware modification or not?

 

2. Which detail SDK code you are running in the following path?

\SDK_2_11_1_EVKB-IMXRT1050\boards\evkbimxrt1050\lwip_examples

Then, I can help you to check it.

It's better to use the MIMXRT1050-EVKB, please also follow the related code readme.txt to do the configuration.

You can test this code:

SDK_2_11_1_EVKB-IMXRT1050\boards\evkbimxrt1050\lwip_examples\lwip_ping\freertos

Please also note, when you connect it to the PC, your PC IP also need to configured.

 Configure the host PC IP address to 192.168.0.100.

 

Wish it helps you!

Best Regards,

Kerry

0 项奖励
回复
4,405 次查看
ranjay_shandilya
Contributor III

Hi @kerryzhou,

I'm using MIMXRT1050-EVKB without any modification. I am trying with lwip_dhcp_bm example.

0 项奖励
回复
4,401 次查看
ranjay_shandilya
Contributor III

Even with lwip_ping_freertos example I get the same error.

ranjay_shandilya_0-1652777774460.png

 

0 项奖励
回复
4,397 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ranjay_shandilya ,

  What about this:Configure the host PC IP address to 192.168.0.100.

Do you configure it? When you plug the ENET cable to the board and the PC, whether the cable orange led is blinking or not?

kerryzhou_0-1652780644901.png

The above is my test log.

Your log mentiones you never plug the network, or your PHY is not working.

So, if your board is MIMXRT1050-EVKB is not modified in the hardware, then it is your ENET cable or connect to PC issues.

Please double check it again, I have tested it, it is totally working.

Best Regards,

kerry

 

 

0 项奖励
回复
4,388 次查看
ranjay_shandilya
Contributor III

I have configured the host PC IP address as given.

When I plug in the ENET cable the led is on but as soon as I run the application LED goes off.

I have verified ENET cable and it is fine

0 项奖励
回复
4,386 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ranjay_shandilya ,

  Whether it is the USB power is not enough, change another USB port for powering, whether it has any improvement  or not, or you can find a external power to connect J2.

Please also note, your MIMXRT1050-EVKB didn't modify the hardware, eg, remove some resistor.

Best Regards,

Kerry

0 项奖励
回复
4,380 次查看
ranjay_shandilya
Contributor III

Dont think it's an issue with the USB power. I can run other example projects (other than lwip examples). 

But I have tried with other USB port  and seems like the issue is same. 

0 项奖励
回复
4,376 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ranjay_shandilya 

  So, your board is totally the original board without any hardware modification, right?

  Do you have any other EVKB board or not? Or try another PC.

  As I have tested a lot of MIMXRT1050-EVKB boards, all can works.

   But from your test result, the PHY is not working, that's why I let you to check whether you have hardware modification.

 

Best Regards,

kerry

0 项奖励
回复
4,332 次查看
ranjay_shandilya
Contributor III

Hi @kerryzhou,

How do I turn off Auto-negotiation and run on fixed speed from the example code? 

Thanks

0 项奖励
回复
4,370 次查看
ranjay_shandilya
Contributor III

I tried with other boards but unfortunately getting same issue.

I wonder if setting host IP address to 192.168.0.100 ( Configure the host PC IP address to 192.168.0.100.) has something to with this issue.

Does it have to be this IP or can I change it in example code to set some other IP address?

0 项奖励
回复
4,328 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @ranjay_shandilya ,

  Of course, you can use other IP, you can define it in the code.

  You even can use the DHCP to recognize the IP automatically.

   Any new issues, welcome to create the new question post, then we can help you in you new post.

Best Regards,

Kerry

0 项奖励
回复