tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.45k stars 1.94k forks source link

ESP8266 boot loop #1660

Open tablatronix opened 9 months ago

tablatronix commented 9 months ago

void WiFiManager::WiFiManagerInit(){ // setMenu(_menuIdsDefault);

causes exception

Exception Cause: 3  [LoadStoreError: Processor internal physical address or data error during load or store]

0x4000bf64: ?? ??:0
0x4024886b: sleep_reset_analog_rtcreg_8266 at ??:?
0x4020afe0: String::String(char const*) at ??:?
0x4024886b: sleep_reset_analog_rtcreg_8266 at ??:?
0x402050aa: WiFiManager::setMenu(std::vector<char const*, std::allocator<char const*> >&) at ??:?
0x4020b024: String::copy(__FlashStringHelper const*, unsigned int) at ??:?
0x402467b8: sleep_reset_analog_rtcreg_8266 at ??:?
0x40205127: WiFiManager::WiFiManagerInit() at ??:?
0x40205380: WiFiManager::WiFiManager() at ??:?
0x40209fcc: HardwareSerial::begin(unsigned long, SerialConfig, SerialMode, unsigned char, bool) at ??:?
0x40201050: setup at ??:?
0x402111e0: DNSServer::setErrorReplyCode(DNSReplyCode const&) at ??:?
0x402111e0: DNSServer::setErrorReplyCode(DNSReplyCode const&) at ??:?
0x402111e0: DNSServer::setErrorReplyCode(DNSReplyCode const&) at ??:?
0x402111e0: DNSServer::setErrorReplyCode(DNSReplyCode const&) at ??:?
0x402111e0: DNSServer::setErrorReplyCode(DNSReplyCode const&) at ??:?
0x402111e0: DNSServer::setErrorReplyCode(DNSReplyCode const&) at ??:?
0x402111e0: DNSServer::setErrorReplyCode(DNSReplyCode const&) at ??:?
0x4020c04c: loop_wrapper() at core_esp8266_main.cpp:?
0x40100cbd: cont_wrapper at ??:?
tablatronix commented 9 months ago

1587 moved menutokens in progmem

So this probably has to be adjusted if((String)menuitem == String(_menutokens[j])){

tablatronix commented 8 months ago

tentative fix, not sure what the exact issue or fix here should be

f328cd05cd5aa758b414d8e6961e21a1f6370cab