ETH_CLOCK_GPIO0_OUT not working (No clock output)
Posted: Sun Jun 16, 2019 2:09 pm
I'm testing ethernet with the ESP32-PICO-KIT + Waveshare LAN8720 module.
I got ethernet working as per https://sautter.com/blog/ethernet-on-es ... g-lan8720/ but I now want to use GPIO0 as clock output instead of input.
To achieve this, I removed R12 and R14 resistors on the waveshare board and jumped between R12 and R14 with one of the 33ohm resistors so that the R_RXCLK pin on the board is connected to the CLKIN pin of the chip through the 33ohm resistor.
I changed one line of the code to read "config.clock_mode = ETH_CLOCK_GPIO0_OUT".
On trying this code i get the error "emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff". On checking with an oscilloscope, i do not see any clock generated on the GPIO0 pin.
What am I doing wrong? Any help is appreciated.
I got ethernet working as per https://sautter.com/blog/ethernet-on-es ... g-lan8720/ but I now want to use GPIO0 as clock output instead of input.
To achieve this, I removed R12 and R14 resistors on the waveshare board and jumped between R12 and R14 with one of the 33ohm resistors so that the R_RXCLK pin on the board is connected to the CLKIN pin of the chip through the 33ohm resistor.
I changed one line of the code to read "config.clock_mode = ETH_CLOCK_GPIO0_OUT".
On trying this code i get the error "emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff". On checking with an oscilloscope, i do not see any clock generated on the GPIO0 pin.
What am I doing wrong? Any help is appreciated.