Search found 3 matches

by francisconavy
Thu Jan 28, 2021 6:42 pm
Forum: ESP-IDF
Topic: Ethernet basic example - Error: lan8720_pwrctl: power up failed
Replies: 10
Views: 16526

Re: Ethernet basic example - Error: lan8720_pwrctl: power up failed

The same problem occurred to me, but I solved the problem by setting Phy address 1 to 0. I already tried it, but it doesn't work :( I added some prints to understand what's going on, but apparently phy_reg_write isn't doing anything. https://i.ibb.co/G9by3SB/image.png Can you send your sdkconfig fi...
by francisconavy
Fri Jan 22, 2021 11:25 am
Forum: ESP-IDF
Topic: Ethernet basic example - Error: lan8720_pwrctl: power up failed
Replies: 10
Views: 16526

Re: Ethernet basic example - Error: lan8720_pwrctl: power up failed

Thanks for answering My current lan8720_pwrctl function is this: static esp_err_t lan8720_pwrctl(esp_eth_phy_t *phy, bool enable) { phy_lan8720_t *lan8720 = __containerof(phy, phy_lan8720_t, parent); esp_eth_mediator_t *eth = lan8720->eth; bmcr_reg_t bmcr; PHY_CHECK(eth->phy_reg_read(eth, lan8720->a...
by francisconavy
Thu Jan 21, 2021 7:35 pm
Forum: ESP-IDF
Topic: Ethernet basic example - Error: lan8720_pwrctl: power up failed
Replies: 10
Views: 16526

Ethernet basic example - Error: lan8720_pwrctl: power up failed

Hello, I'm trying to use ethernet basic example of esp-idf on esp32 and LAN8720. The errors are these: E (514) lan8720: lan8720_pwrctl(359): power up failed E (514) lan8720: lan8720_init(421): power control failed E (514) esp_eth: esp_eth_driver_install(205): init phy failed I already saw Frank Saut...