Hi,
with the Arduino IDE the sample sketch ETH_LAN8720.ino works fine, but using platformIO with Arduino Framework the same sketch outputs error messages:
(1050) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff
E (2051) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0xffff
E (2052) emac: Initialise PHY device Timeout
Board type Rev. G
any idea what is reason ?
Problem is solved. I've checked the Arduino ESP32 include file pins_Arduino.h for the esp32-gateway, so there is 1 define for board revision 'D' and above
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
which i've added in the demo sketch ETH_LAN8720. Now ethernet is working ;)