cancel
Showing results for 
Search instead for 
Did you mean: 

Howto recover from Ethernet link down?

Ken CK
Associate II

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!

1 REPLY 1
Ken CK
Associate II

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