Not getting an ip address using the basic ethernet example
Posted: Mon Apr 22, 2024 10:16 am
Module or chip used: ESP32-U4WDH
ESP_IDF version : 5.2.1
Build System: [idf.py]
Operating System: [Windows]
Power Supply: [USB]
I'm currently trying to test my ESP-32 U4WDH using a basic Ethernet example. I've connected the Ethernet cable to my ESP using an IP101 Ethernet processor. The program builds and runs properly, and I can receive 'link up' and 'link down' messages correctly. However, I'm unable to obtain an IP address from my router.
I attempted to set up a static IP on both my computer and ESP32. When I ping them, it shows 'destination host unreachable'. I thought there was a problem with the router, so I configured my computer as a DHCP server and the ESP32 as a DHCP client, but I'm not receiving any requests on the DHCP server from the ESP32.
Below is the configuration I used:
GPIO_18: SMI_MDIO
GPIO_23: SMI_MDC
GPIO_5: PHY reset
PHY Address: 1
Ethernet PHY device: IP101GRI
Internal EMAC: true
RMII clock mode: external
I've attached the log from the basic Ethernet example that I observed.
Note: When I try to connect with WiFi using the WiFi station program, I am able to get the IP address.
ESP_IDF version : 5.2.1
Build System: [idf.py]
Operating System: [Windows]
Power Supply: [USB]
I'm currently trying to test my ESP-32 U4WDH using a basic Ethernet example. I've connected the Ethernet cable to my ESP using an IP101 Ethernet processor. The program builds and runs properly, and I can receive 'link up' and 'link down' messages correctly. However, I'm unable to obtain an IP address from my router.
I attempted to set up a static IP on both my computer and ESP32. When I ping them, it shows 'destination host unreachable'. I thought there was a problem with the router, so I configured my computer as a DHCP server and the ESP32 as a DHCP client, but I'm not receiving any requests on the DHCP server from the ESP32.
Below is the configuration I used:
GPIO_18: SMI_MDIO
GPIO_23: SMI_MDC
GPIO_5: PHY reset
PHY Address: 1
Ethernet PHY device: IP101GRI
Internal EMAC: true
RMII clock mode: external
I've attached the log from the basic Ethernet example that I observed.
Note: When I try to connect with WiFi using the WiFi station program, I am able to get the IP address.