WT-ETH01 failed to initialize ethernet

Melek_Cherif
Posts: 1
Joined: Tue Jul 23, 2024 2:17 pm

WT-ETH01 failed to initialize ethernet

Postby Melek_Cherif » Mon Dec 09, 2024 2:59 pm

Hello, I am having the same problem with two wt-eth01 modules (v1.4). After uploading the basic example of ethernet and some debugs. I am always encountering this error:

E (2211) esp.emac: emac_esp32_init(371): reset timeout
E (2211) esp_eth: esp_eth_driver_install(228): init mac failed


I tried different configurations for the clock and physical address but still having the same problem. Actually, I am starting to doubt the hardware capability

ondrej
Espressif staff
Espressif staff
Posts: 227
Joined: Fri May 07, 2021 10:35 am

Re: WT-ETH01 failed to initialize ethernet

Postby ondrej » Tue Dec 10, 2024 9:19 am

You have problems with REF RMII CLK. Is this https://github.com/ldijkman/WT32-ETH01- ... ematic.pdf your board? If so, you need to enable external oscillator prior Ethernet init.

angelov
Posts: 1
Joined: Tue Dec 17, 2024 9:33 pm

Re: WT-ETH01 failed to initialize ethernet

Postby angelov » Tue Dec 17, 2024 9:37 pm

If so, you need to enable external oscillator prior Ethernet init.

Can you please provide direction as to how I would go about "Enabling" the external Oscillator? Are there programming steps, or hardware pins that need to be pulled low or high?

I would appreciate if you could provide some clarity, as I have had the exact same issues with any code that I have tried to program on m WT32-ETH01 board.

ondrej
Espressif staff
Espressif staff
Posts: 227
Joined: Fri May 07, 2021 10:35 am

Re: WT-ETH01 failed to initialize ethernet

Postby ondrej » Thu Dec 19, 2024 7:14 am

User "nopnop2002" suggests to use Ethernet driver reset pin configuration, see https://github.com/espressif/esp-idf/issues/15004 It's little bit hacky but should do the job.

Clearer approach is presented at https://github.com/espressif/esp-eth-dr ... ain.c#L195. Remove everything except of GPIO setting starting at https://github.com/espressif/esp-eth-dr ... ain.c#L240
It's for different driver but the idea should be clear.

Or just set GPIO which enables the oscillator at the start of your main.

Who is online

Users browsing this forum: Amazon [Bot] and 5 guests