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

Core 0 panic #11

Open
MikeJaras opened this issue Jan 18, 2020 · 0 comments
Open

Core 0 panic #11

MikeJaras opened this issue Jan 18, 2020 · 0 comments

Comments

@MikeJaras
Copy link

I got problem connecting and got wrong password as response from my Android phone. When using com0 to read the debug messages I saw a restart every time I tried to connect. I tried to flash and also emptied the flash in the ESP32 before uploading the code again. I'm using Arduino IDE. The error message I saw was WiFi.softAPIP() causes Core 0 panic'ed (InstrFetchProhibited)
When searching for the message I found a discussion about timing issue. So I tried some different suggestion and found a working solution with a added delay and moving the softAPConfig line to run after the delay. Thanks AlphaLima for providing the original code, great for me flying sailplane and using Kobo with XCSoar.
Below is the part I changed. Might be useful for someone with same problem.
My HW is a Espressif ESP32 WLAN Dev Kit Board Development Bluetooth Wifi v1 WROOM32 NodeMCU.

if(debug) COM[DEBUG_COM]->println("\n\nWiFi serial bridge V1.10");
#ifdef MODE_AP 
if(debug) COM[DEBUG_COM]->println("Open ESP Access Point mode");
// AP mode (phone connects directly to ESP) (no router)
WiFi.mode(WIFI_AP);
// WiFi.softAPConfig(ip, ip, netmask); // configure ip address for softAP // workaround mj
WiFi.softAP(ssid, pw); // configure ssid and password for softAP
delay(2000);  // workaround mj
WiFi.softAPConfig(ip, ip, netmask);   // configure ip address for softAP 
#endif
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