Skip to content
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

runtime error: invalid magic number when using WiFi and Ethernet #22

Open
infrafast opened this issue Dec 11, 2023 · 0 comments
Open

runtime error: invalid magic number when using WiFi and Ethernet #22

infrafast opened this issue Dec 11, 2023 · 0 comments

Comments

@infrafast
Copy link

infrafast commented Dec 11, 2023

Hello, I hope this library is still active

when using the library on ESP32 having a W5500 module (using adapated version here: https://github.com/andrew-susanto/Arduino-Ethernet-Icmp) it works fine.

However, I have a use case when I need to determine at runtime if I use WiFi or Ethernet
The problem is that as soon as I call WiFi.begin() method or any other method like WiFi.mode() the following error is raised:

E (2041) wifi:invalid magic number 7fffffff, call WIFI_INIT_CONFIG_DEFAULT to init config
[ 2019][E][WiFiGeneric.cpp:680] wifiLowLevelInit(): esp_wifi_init 258
[ 2022][E][WiFiSTA.cpp:227] begin(): STA enable failed!

This happens even if there is absolutely no code used from the library, only making the inlcude <EthernetICMP.h> would trigger the issue. It looks like it break the WiFi stck somehow,

Any idea what to do to make this avoiding breaking WiFi ?

Thnaks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant