Problem initializing wt32-eth01 ethernet firmware

Regarding the wt32-eth01 product; I have flashed the ESP32 example programs, hello_world and softAP which run correctly.

I have a problem with the ESP32 example program ethernet/basic. This program experiences a timeout while waiting for a reset when initializing in the following code from the ESP library.

/* software reset */
emac_ll_reset(emac->hal.dma_regs);
uint32_t to = 0;
for (to = 0; to < emac->sw_reset_timeout_ms / 10; to++) {
if (emac_ll_is_reset_done(emac->hal.dma_regs)) {
break;
}
vTaskDelay(pdMS_TO_TICKS(10));
}
ESP_GOTO_ON_FALSE(to < emac->sw_reset_timeout_ms / 10, ESP_ERR_TIMEOUT, err, TAG, “reset timeout”);

The error report is:

[0;31mE (6494) esp.emac: emac_esp32_init(339): reset timeoute[0m
e[0;31mE (6494) esp_eth: esp_eth_driver_install(214): init mac failede[0m
ESP_ERROR_CHECK failed: esp_err_t 0x107 (ESP_ERR_TIMEOUT) at 0x40085734
file: “./main/ethernet_example_main.c” line 156
func: app_main
expression: esp_eth_driver_install(&config, &eth_handle)

abort() was called at PC 0x40085737 on core 0

Backtrace:0x40081b6a:0x3ffb64200x40085741:0x3ffb6440 0x4008a8c2:0x3ffb6460 0x40085737:0x3ffb64d0 0x400d650c:0x3ffb64f0 0x401006b5:0x3ffb6580 0x40088351:0x3ffb65a0

I suspect the problem is in the configuration settings but I have been unable to determine what the problem may be. Can anyone please advise me about the correct configuration for this module to support LAN ethernet, or what might be the cause if not the configuration.

The pertinent configuration settings from the ESP menuconfig sdkconfig file are:

Example Configuration

CONFIG_EXAMPLE_GPIO_RANGE_MIN=0
CONFIG_EXAMPLE_GPIO_RANGE_MAX=33
CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET=y

CONFIG_EXAMPLE_ETH_PHY_IP101 is not set

CONFIG_EXAMPLE_ETH_PHY_RTL8201 is not set

CONFIG_EXAMPLE_ETH_PHY_LAN87XX=y

CONFIG_EXAMPLE_ETH_PHY_DP83848 is not set

CONFIG_EXAMPLE_ETH_PHY_KSZ80XX is not set

CONFIG_EXAMPLE_ETH_MDC_GPIO=23
CONFIG_EXAMPLE_ETH_MDIO_GPIO=18
CONFIG_EXAMPLE_ETH_PHY_RST_GPIO=-1
CONFIG_EXAMPLE_ETH_PHY_ADDR=1

CONFIG_EXAMPLE_USE_SPI_ETHERNET is not set

end of Example Configuration

Ethernet

CONFIG_ETH_ENABLED=y
CONFIG_ETH_USE_ESP32_EMAC=y
CONFIG_ETH_PHY_INTERFACE_RMII=y
CONFIG_ETH_RMII_CLK_INPUT=y

CONFIG_ETH_RMII_CLK_OUTPUT is not set

CONFIG_ETH_RMII_CLK_IN_GPIO=0
CONFIG_ETH_DMA_BUFFER_SIZE=512
CONFIG_ETH_DMA_RX_BUFFER_NUM=10
CONFIG_ETH_DMA_TX_BUFFER_NUM=10

CONFIG_ETH_USE_SPI_ETHERNET is not set

CONFIG_ETH_USE_OPENETH is not set

end of Ethernet

Hi, I am having the same problem here. So I wonder if it has been solved for you. I am trying the Ethernet basic example in 2 WT-eth01 v1.4 modules, and I am having the same problem.

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

Its strange but I am currently struggling with the same problem and looking for solution!

Ok, I uploaded the firmware to another board and it works as intended. So this for me means that the board that gave the error was broken.