NimmLor / esp8266-fastled-iot-webserver

A universal software for all my LED projects, with many awesome features
https://www.thingiverse.com/surrbradl08/designs
GNU General Public License v3.0
366 stars 94 forks source link

Bootloops after WiFiManager setup #213

Open hntirgeam opened 2 years ago

hntirgeam commented 2 years ago

Reboots immediately after wifiManager.autoConnect(nameChar) (when settings already stored)

Board: NodeMCU

Basic.ini from WiFiManager repo works fine and connects to my wifi without any problems.

Tried:

First setup log (after full flash erase)

DEBUG [178]: Loading config
DEBUG [179]: System Information:
DEBUG [179]: Version: 4.5 (2020-02-14)
DEBUG [180]: Heap: 38536
DEBUG [180]: SDK: 2.2.2-dev(38a443e)
DEBUG [181]: Boot Vers: 31
DEBUG [184]: CPU Speed: 80 MHz
DEBUG [186]: Chip ID: 14765809
DEBUG [189]: Flash ID: 1458392
DEBUG [192]: Flash Size: 4194304KB
DEBUG [195]: Vcc: 65535
DEBUG [197]: MAC address: E8:DB:84:E1:4E:F1

*WM: [1] getCoreVersion():          3.0.2
*WM: [1] system_get_sdk_version():  2.2.2-dev(38a443e)
*WM: [1] system_get_boot_version(): 31
*WM: [1] getFreeHeap():             36336
*WM: [1] AutoConnect 
*WM: [1] No Credentials are Saved, skipping connect 
*WM: [2] Starting Config Portal 
*WM: [3] WIFI station disconnect 
*WM: [3] WiFi station enable 
*WM: [2] Disabling STA 
*WM: [2] Enabling AP 
*WM: [1] StartAP with SSID:  LEDs - 4EF1
*WM: [2] AP has anonymous access! 
*WM: [1] SoftAP Configuration 
*WM: [1] -------------------- 
*WM: [1] ssid:             LEDs - 4EF1
*WM: [1] password:         
*WM: [1] ssid_len:         11
*WM: [1] channel:          1
*WM: [1] authmode:        
*WM: [1] ssid_hidden:     
*WM: [1] max_connection:   4
*WM: [1] country:          CN
*WM: [1] beacon_interval:  100(ms)
*WM: [1] -------------------- 
*WM: [1] AP IP address: 192.168.4.1
*WM: [3] setupConfigPortal 
*WM: [1] Starting Web Portal 
*WM: [3] dns server started with ip:  192.168.4.1
*WM: [2] HTTP server started 
*WM: [2] WiFi Scan completed in 1 ms
*WM: [2] Config Portal Running, non blocking/processing 
INFO: Wi-Fi manager portal running. Connect to the Wi-Fi AP 'LEDs - 4EF1' to configure your wireless connection
DEBUG [347]: SPIFFS contents:
DEBUG [355]: FS File: /css/bootstrap.min.css, size: 121093
DEBUG [355]: FS File: /css/dark-mode.css, size: 1350
DEBUG [363]: FS File: /css/minicolors.min.css, size: 96597
DEBUG [364]: FS File: /css/styles.css, size: 1392
DEBUG [369]: FS File: /favicon.ico, size: 4286
DEBUG [373]: FS File: /fonts/glyphicons.woff2, size: 18028
DEBUG [378]: FS File: /images/atom196.png, size: 3889
DEBUG [383]: FS File: /images/github.ico, size: 6518
DEBUG [387]: FS File: /images/surr.png, size: 1897
DEBUG [392]: FS File: /index.htm, size: 9706
DEBUG [396]: FS File: /js/app.js, size: 16150
DEBUG [401]: FS File: /js/bootstrap.min.js, size: 37045
DEBUG [404]: FS File: /js/dark-mode-switch.min.js, size: 492
DEBUG [413]: FS File: /js/jquery-3.1.1.min.js, size: 86709
DEBUG [415]: FS File: /js/minicolors.min.js, size: 15463
DEBUG [420]: FS File: /settings.htm, size: 10129

DEBUG [446]: FS Size: 1953282KB, used: 438999KB, 22.47%

DEBUG [447]: Arduino Core Version: 3.0.2
DEBUG [447]: Enabled Features:
DEBUG [447]: Feature: mDNS support enabled

DEBUG [450]: Configured device type: LED strip (0)
DEBUG [454]: NUM_LEDS: 88
DEBUG [456]: BAND_GROUPING: 4
DEBUG [459]: PACKET_LENGTH: 22
INFO: HTTP web server started

Connected, configured Wifi, resetting (as in line 761)

DEBUG [1007]: Stats: 43 frames/s, frame delay: 4150 us
// stats here
*WM: [3] -> detectportal.firefox.com 
*WM: [2] <- Request redirected to captive portal 
*WM: [2] <- HTTP Root 
*WM: [3] -> 192.168.4.1 
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [2] WiFi Scan completed in 2186 ms
DEBUG [30470]: Heap: 26184
DEBUG [30471]: Stats: 29 frames/s, frame delay: 500 us
*WM: [3] -> connectivitycheck.gstatic.com 
*WM: [2] <- Request redirected to captive portal 
*WM: [3] -> detectportal.firefox.com 
*WM: [2] <- Request redirected to captive portal 
DEBUG [31003]: Stats: 88 frames/s, frame delay: 0 us
DEBUG [32001]: Stats: 301 frames/s, frame delay: 9050 us
DEBUG [33011]: Stats: 82 frames/s, frame delay: 7150 us
DEBUG [34002]: Stats: 95 frames/s, frame delay: 5900 us
DEBUG [35009]: Stats: 110 frames/s, frame delay: 5400 us
*WM: [3] -> connectivitycheck.gstatic.com 
*WM: [2] <- Request redirected to captive portal 
*WM: [2] <- HTTP Root 
*WM: [3] -> 192.168.4.1 
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [2] Scan is cached 5063 ms ago
*WM: [2] <- HTTP Root 
*WM: [3] -> 192.168.4.1 
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [2] Scan is cached 5106 ms ago
DEBUG [36007]: Stats: 108 frames/s, frame delay: 4800 us
*WM: [2] <- HTTP Root 
*WM: [3] -> 192.168.4.1 
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [2] Scan is cached 5809 ms ago
DEBUG [37004]: Stats: 120 frames/s, frame delay: 4800 us
DEBUG [38008]: Stats: 124 frames/s, frame delay: 5000 us
DEBUG [39002]: Stats: 121 frames/s, frame delay: 5000 us
*WM: [2] <- HTTP Wifi 
*WM: [2] Scan is cached 8635 ms ago
*WM: [1] 9 networks found
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [3] Sent config page 
//more stats
*WM: [2] <- HTTP WiFi save  
*WM: [3] Method: POST
*WM: [3] Sent wifi save page 
*WM: [2] processing save 
*WM: [2] Connecting as wifi client... 
*WM: [3] STA static IP:
*WM: [2] setSTAConfig static ip not set, skipping 
*WM: [1] CONNECTED:
*WM: [1] Connecting to NEW AP: ******
*WM: [3] Using Password: ******
*WM: [3] WiFi station enable 
*WM: [3] enableSTA PERSISTENT ON 
*WM: [1] connectTimeout not set, ESP waitForConnectResult... 
*WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [1] Connect to new AP [SUCCESS] 
*WM: [1] Got IP Address: 
*WM: [1] 192.168.1.146 
*WM: [2] disconnect configportal 

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 3460, room 16 
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4 
tail 4
chksum 0xc9
csum 0xc9
v0006b5c0
~ld
⸮⸮

Resetted, setup sequence:

DEBUG [178]: Loading config

DEBUG [180]: System Information:
DEBUG [180]: Version: 4.5 (2020-02-14)
DEBUG [180]: Heap: 38536
DEBUG [180]: SDK: 2.2.2-dev(38a443e)
DEBUG [182]: Boot Vers: 31
DEBUG [184]: CPU Speed: 80 MHz
DEBUG [187]: Chip ID: 14765809
DEBUG [190]: Flash ID: 1458392
DEBUG [192]: Flash Size: 4194304KB
DEBUG [195]: Vcc: 65535
DEBUG [197]: MAC address: E8:DB:84:E1:4E:F1

*WM: [1] getCoreVersion():          3.0.2
*WM: [1] system_get_sdk_version():  2.2.2-dev(38a443e)
*WM: [1] system_get_boot_version(): 31
*WM: [1] getFreeHeap():             36336
*WM: [1] AutoConnect 
*WM: [3] setupHostname:  LEDs
*WM: [2] Setting WiFi hostname 
*WM: [2] Connecting as wifi client... 
*WM: [3] STA static IP:
*WM: [2] setSTAConfig static ip not set, skipping 
*WM: [1] Connecting to SAVED AP: ******
*WM: [3] Using Password: ******
*WM: [3] WiFi station enable 
*WM: [3] enableSTA PERSISTENT ON 
*WM: [1] connectTimeout not set, ESP waitForConnectResult... 

and...

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

>>>stack>>>

ctx: cont
sp: 3ffffbf0 end: 3fffffc0 offset: 01a0
3ffffd90:  00000000 00000000 4bc6a7f0 00000000  
3ffffda0:  00000000 00000000 00000001 401003ec  
3ffffdb0:  4025b3b7 40241c90 00000000 4010040d  
3ffffdc0:  3fff1e94 4020a94c 3fff1359 4021a7b7  
3ffffdd0:  0000016e 3fff1359 0000ea60 4020a98b  
3ffffde0:  3fff1359 00000000 3fff114c 4020eca0  
3ffffdf0:  4023fb54 3ffeeda0 00000000 40241c90  
3ffffe00:  4023f581 3ffeef1c 00000002 00000000  
3ffffe10:  40241a45 0000010f 00000001 3ffffec0  
3ffffe20:  4025a1d2 3fff1359 00000001 00000001  
3ffffe30:  4025b3b7 3fff1359 00000001 3ffe8aa5  
3ffffe40:  00000000 3ffffecc 3fff114c 4020ee64  
3ffffe50:  4020aa14 4020aa01 3fff1359 4020aa1c  
3ffffe60:  3ffffec0 3ffffecc 3fff114c 4020e30a  
3ffffe70:  00000000 0012001f 00000000 4020c2c4  
3ffffe80:  3ffffec0 3ffffecc 3fff114c 4020f66a  
3ffffe90:  4025b3b7 00000000 3ffffec0 40218edc  
3ffffea0:  3fff1359 3ffe8aa5 3ffffec0 40218f15  
3ffffeb0:  3fff1359 00000001 3fff114c 40211f7a  
3ffffec0:  00000000 00000000 00000000 00000000  
3ffffed0:  3ffe88ca 00000000 3fff114c 4020f8b5  
3ffffee0:  3fffff10 00000000 00000001 00000001  
3ffffef0:  3ffe88ca 3fffff74 3fff1410 3fffff20  
3fffff00:  3ffe88ca 3ffe8aa4 3fff1410 40204fa4  
3fffff10:  7344454c 34202d20 00314645 40204f43  
3fffff20:  40207b34 000b000f 40223fa4 40223f90  
3fffff30:  feefeffe feefeffe 00000000 0011001f  
3fffff40:  00000000 feefeffe 00000000 00202d20  
3fffff50:  00000000 feefeffe 00000000 0011001f  
3fffff60:  00000000 feefeffe 3fff26cc 000b000f  
3fffff70:  87000000 31464534 feefef00 04000000  
3fffff80:  3fffff20 feefeffe 3fff0fc0 feefeffe  
3fffff90:  feefeffe feefeffe feefeffe 3fff15a4  
3fffffa0:  3fffdad0 00000000 3fff1590 4021a1c4  
3fffffb0:  feefeffe feefeffe 3ffe85fc 40100eb1  
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Decoding stack results

0x401003ec: ets_post(uint8, ETSSignal, ETSParam) Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_main.cpp line 181
0x4010040d: esp_schedule() Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_main.cpp line 128
0x4020a94c: ESP8266WiFiSTAClass::status() Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp line 527
0x4021a7b7: __delay(unsigned long) Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_wiring.cpp line 53
0x4020a98b: ESP8266WiFiSTAClass::waitForConnectResult(unsigned long) Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/PolledTimeout.h line 260
0x4020eca0: WiFiManager::waitForConnectResult(unsigned short) at H:\Software\Arduino IDE New\Arduino\libraries\WiFiManager-2.0.3-alpha\WiFiManager.cpp line 912
0x4020ee64: WiFiManager::waitForConnectResult() at H:\Software\Arduino IDE New\Arduino\libraries\WiFiManager-2.0.3-alpha\WiFiManager.cpp line 901
0x4020aa14: ESP8266WiFiSTAClass::begin() Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp line 237
0x4020aa01: ESP8266WiFiSTAClass::begin() Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp line 232
0x4020aa1c: ESP8266WiFiSTAClass::begin() Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\ESP8266WiFi\src\ESP8266WiFiSTA.cpp line 237
0x4020e30a: WiFiManager::wifiConnectDefault() at H:\Software\Arduino IDE New\Arduino\libraries\WiFiManager-2.0.3-alpha\WiFiManager.cpp line 842
0x4020c2c4: String::operator!=(char const*) const Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/WString.h line 155
0x4020f66a: WiFiManager::connectWifi(String, String) at H:\Software\Arduino IDE New\Arduino\libraries\WiFiManager-2.0.3-alpha\WiFiManager.cpp line 784
0x40218edc: String::copy(char const*, unsigned int) Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\WString.cpp line 225
0x40218f15: String::String(char const*) Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\WString.cpp line 41
0x40211f7a: WiFiManager::autoConnect(char const*, char const*) at H:\Software\Arduino IDE New\Arduino\libraries\WiFiManager-2.0.3-alpha\WiFiManager.cpp line 297
0x4020f8b5: WiFiManager::debugPlatformInfo() Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/WString.h line 79
0x40204fa4: setup() at  Desktop\esp8266-fastled-iot-webserver/esp8266-fastled-iot-webserver.ino line 770
0x40204f43: setup() at  Desktop\esp8266-fastled-iot-webserver/esp8266-fastled-iot-webserver.ino line 755
0x40207b34: handleReboot() at  Desktop\esp8266-fastled-iot-webserver/esp8266-fastled-iot-webserver.ino line 1600
0x40223fa4: std::_Function_handler ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits/std_function.h line 268
0x40223f90: std::_Function_handler ::_M_invoke(std::_Any_data const&) arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits/std_function.h line 289
0x4021a1c4: loop_wrapper() Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_main.cpp line 198

Any ideas? Thanks.

bb-Ricardo commented 2 years ago

Hi, did you use the tested library versions?: https://github.com/NimmLor/esp8266-fastled-iot-webserver/blob/master/Software_Installation.md#dependencies

hntirgeam commented 2 years ago

Yes, I used the recommended library.