Skip to main content
Ken CK
Associate II
October 20, 2020
Question

Howto recover from Ethernet link down?

  • October 20, 2020
  • 1 reply
  • 1236 views

Hi All,

I'm using an STM32F429ZIT6 (on a Nucleo-144), with PHY LAN8720A ethernet. The application base was generated by CubeMX, and it is using the HAL libraries. I'm using FreeRTOS threads, also for managing the ethernet and lwip stack.

The Nucleo board is using an ethernet connection to send/receive data to the cloud, however after about 20-24 hours, the ethernet goes down, and the connection can only be recovered after a reset.

The PHY interface (LAN8720A) is reporting a link down, though the ethernet cable is plugged in.

The switch also shows a link up, up until that point when the netif_set_link_down() is called from ethernetif.c. From this point the link does not recover until a reset.

Please advise what I should check to progress with the troubleshooting.

Thank you!

This topic has been closed for replies.

1 reply

Ken CK
Ken CKAuthor
Associate II
October 20, 2020

One more info - link down is detected by reading PHY_BSR register as 0x7809

While link is up and stable, the register reads as 0x782d