Ethernet PHY manual control (HW reset)
Posted: Thu Aug 31, 2023 9:07 am
Hi, I have eth2ap based app, everything seems to be working as expected, but I would like some clarification on following scenario:
I want to start/stop the ethernet PHY chip on demand. Using does stop the ethernet processing as expected, but PHY remains online.
I can put PHY reset singal to reset state manually (via gpio_set_level()) which seemingly works correctly together with esp_eth_start/stop, but I'm not too sure about that. Main concern is to make sure the PHY registers are correctly initialized after the unreset.
So how can I correctly reinit the PHY after unreset (while using driver that was installed before the reset was activated)?
I want to start/stop the ethernet PHY chip on demand. Using
Code: Select all
esp_eth_start()/esp_eth_stop()
I can put PHY reset singal to reset state manually (via gpio_set_level()) which seemingly works correctly together with esp_eth_start/stop, but I'm not too sure about that. Main concern is to make sure the PHY registers are correctly initialized after the unreset.
So how can I correctly reinit the PHY after unreset (while using driver that was installed before the reset was activated)?