Skip to content

Core 0 panic #11

@MikeJaras

Description

@MikeJaras

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions