Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: harob on January 18, 2021, 02:51:46 pm

Title: ESP32-PoE Rev.D Issue - PHY Timeout <SOLVED>
Post by: harob on January 18, 2021, 02:51:46 pm
After start I cannot Initialize the ethernet, I got following output:

E (2060) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0x0000
E (3061) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0x0000
E (3061) emac: Initialise PHY device Timeout
[E][ETH.cpp:101] begin(): esp_eth_enable error: -1

The Identical code using ESP-Gateway rev.G works fine.

Anyone  can help?

Regards

!EDIT -> Found the solution here on the forum, you have to add an additional define, #define ETH_PHY_POWER 12 before including <eth.h>