-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP can't connect to network when switching from Arduino Core v1.0.6 to v.2.0.3: E (477) esp_eth: esp_eth_ioctl(348): ethernet driver handle can't be null #7029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe related to #6188 |
Maybe, do you face the same issue on Arduino core version 2.0.4? |
I have added a delay just in case: ETH.begin();
delay(500); When using When using
From the Debug and Verbose message I should be getting a valid connection, yet I think something changed between Arduino versions which broke my WiFiEvent() function: void WiFiEvent(WiFiEvent_t event)
{
switch (event)
{
case SYSTEM_EVENT_ETH_START:
Serial.println(F("ETH Started"));
// set eth hostname here
if (!ETH.setHostname("Metrici-Radar-Eth"))
{
Serial.println(F("Ethernet hostname failed to configure"));
}
break;
case SYSTEM_EVENT_ETH_CONNECTED:
Serial.println(F("ETH Connected"));
break;
case SYSTEM_EVENT_ETH_GOT_IP:
eth_connected = true;
Serial.print(F("ETH MAC - "));
Serial.print(ETH.macAddress());
Serial.print(F(", IPv4: "));
Serial.print(ETH.localIP());
if (ETH.fullDuplex())
{
Serial.print(F(", FULL_DUPLEX"));
}
Serial.print(F(", "));
Serial.print(ETH.linkSpeed());
Serial.println(F("Mbps"));
break;
case SYSTEM_EVENT_ETH_DISCONNECTED:
Serial.println(F("ETH Disconnected"));
eth_connected = false;
break;
case SYSTEM_EVENT_ETH_STOP:
Serial.println(F("ETH Stopped"));
eth_connected = false;
break;
default:
break;
}
} |
Actually I am getting this bug when using v.2 or above of Arduino Core. When using v1.0.6 the |
Hello @MetriciRO
Thanks |
Is this still valid under v2.0.4? |
Hello @VojtechBartoska I'd say so unless the Ethernet example is incorrect. See here. Thanks |
@PilnyTomas Please help with this issue. Thanks |
I have come to the same conclusion as felmue... |
I am sorry for the late reply. |
Good to hear that! |
Board
ESP32-EVB Olimex
Device Description
ESP32-EVB Olimex with ESP32-WROOM-32UE
espressif32 @ 3.4.0
PlatformIO Core: 6.1.3
Hardware Configuration
Hardware configuration per ESP32-EVB Olimex datasheet:
product page
download schematics pdf
Version
v1.0.6
IDE Name
PlatformioIDE
Operating System
Windows 11
Flash frequency
240MHz
PSRAM enabled
no
Upload speed
115200
Description
I use the same code for all my ESP32, but one of them can't connect to the switch and has the following error:
E (477) esp_eth: esp_eth_ioctl(348): ethernet driver handle can't be null
I don't understand why it can't connect since the event:
_eventCallback(): Arduino Event: 22 - ETH_GOT_IP
gets triggeredThe boards are all connected to 5V.
I have tried different IPs, different patches, different everything.
I think it's a strange behavior because in terminal the Verbose and Debug messages output
_eventCallback(): Arduino Event: 20 - ETH_CONNECTED
and_eventCallback(): Arduino Event: 22 - ETH_GOT_IP
, but, as you can see in the code, I have cases for those particular events which don't get triggered:So if
SYSTEM_EVENT_ETH_CONNECTED
gets triggered I should seeSerial.println(F("ETH Connected"));
.If
SYSTEM_EVENT_ETH_GOT_IP
gets triggered I should see the MAC and IP on serial.Any thoughts ?
Sketch
Debug Message
The text was updated successfully, but these errors were encountered: