WT32-ETH01 fails to init Ethernet MAC

Kindar
Posts: 2
Joined: Wed Mar 16, 2022 8:39 pm

WT32-ETH01 fails to init Ethernet MAC

Postby Kindar » Wed Mar 16, 2022 8:51 pm

I'm working with the WT32-ETH01 board, I tested it using Tasmota and it was able to use the Ethernet just fine.
I am using the latest ESP-AT with ESP-IDF 4.4

I have everything working fine until I enable Ethernet support, if I do, I get the following messages on boot

E (1194) esp.emac: emac_esp32_init(355): reset timeout
E (1194) esp_eth: esp_eth_driver_install(222): init mac failed

I can post the board schematics if needed.

I assume it is simply a configuration issue, I'm missing something.

I have the Ethernet configured to use the ESP32 internal EMAC controller,
using RMII interface, with input from an external clock on GPIO0
The AT support is set to Microchip LAN8720 PHY

the default Ethernet pins appear correct (mdc - 23, mdio - 18)

I just can't get it to initialize with ESP-AT. I really hope someone can help! Thank you for your time.

Kindar
Posts: 2
Joined: Wed Mar 16, 2022 8:39 pm

Re: WT32-ETH01 fails to init Ethernet MAC

Postby Kindar » Thu Mar 17, 2022 5:03 pm

I was able to resolve the issue.

Things I changed:
I added to at_eth_init.c:
mac_config.sw_reset_timeout_ms = 1000; //increase timeout to 1second
phy_config.phy_addr = 1; //lock phy address to 1 (ETH01's address)

In factory_param_data.csv I changed: (according to this
uart_tx_pin to 2
uart_rx_pin to 4

In the config menu I set the Component Config -> Ethernet
RMII clock mode (Output RMII clock from internal)
Enabled Output clock from GPIO0 (EXPERIMENTAL)

Now the only issue I'm having is that it won't get an IP from the router,
I have it set to Station mode with AP mode turned off, but it won't get an IP address.
It will use a static one but won't appear on the network when I do that. (also now that its set I cant figure out how to get it to FORGET the static IP address settings)
The green lights are on and blinking, but it doesn't seem to connect to the network.

ESP_Sun
Posts: 326
Joined: Thu Dec 30, 2021 9:52 am

Re: WT32-ETH01 fails to init Ethernet MAC

Postby ESP_Sun » Wed Mar 23, 2022 6:50 am

Hi, each version of ESP-AT firmware corresponds to a specific ESP-IDF version. It is strongly recommended to use the default ESP-IDF version of the ESP-AT project, and NOT recommended to update it, because the inconsistency between the underlying ESP-IDF versions of libesp32_at_core.a and the ESP-AT project may cause incorrect operation of the firmware.You can read this document(https://docs.espressif.com/projects/esp ... df-version

Who is online

Users browsing this forum: No registered users and 5 guests