Bootloops and exception 28 by first network connection
Posted: Thu Nov 05, 2020 10:40 am
For several years now, I'm working on a project, based on ESPHelper (about 15 ESP8266-01/03 working together in a MQTT environment). It always worked like a charm. But suddenly (around 1/11/2020), from one day to the next (after an unforseen update??), I got exceptions (exc. 28) and panics as soon as a connection is established with my router (both Cisco EPC 3925 and RPi). This is what happens (reduced to the bare minimum, based on a ESPHelper example):
First time execution, after uploading -> OK, with both MQTT publishing and subscribing.
Second time execution, after hardware reset -> BOOTLOOP with exceptions (Panic umm_malloc.cpp:458 umm_malloc_core or exception 28).
Successive executions fail (-> BOOTLOOP), unless I first upload this sketch (the 2 lines below) and then upload and execute the BasicUse-sketch again.
void setup() {
WiFi.softAPdisconnect(true);
WiFi.disconnect(true);
}
Nothing, up to now, helps (tried ESP.eraseConfig(); complete erase with esptools) although wifiManager.resetSettings(); seems to be of influence on the process.
What's suddenly wrong. It worked for years. I can't wrap me head around it. Is there a problem with access to the saved wifi credentials? Any help will be greatly appreciated.
ESPHelper example: BasicUse (with Arduino 1.8.13 and ESP-core 2.7.4)
Sibbele Oosterhaven
Attachtment:
Example code basicUse (ESPHelper), with stack dump and output Exception decoder
First time execution, after uploading -> OK, with both MQTT publishing and subscribing.
Second time execution, after hardware reset -> BOOTLOOP with exceptions (Panic umm_malloc.cpp:458 umm_malloc_core or exception 28).
Successive executions fail (-> BOOTLOOP), unless I first upload this sketch (the 2 lines below) and then upload and execute the BasicUse-sketch again.
void setup() {
WiFi.softAPdisconnect(true);
WiFi.disconnect(true);
}
Nothing, up to now, helps (tried ESP.eraseConfig(); complete erase with esptools) although wifiManager.resetSettings(); seems to be of influence on the process.
What's suddenly wrong. It worked for years. I can't wrap me head around it. Is there a problem with access to the saved wifi credentials? Any help will be greatly appreciated.
ESPHelper example: BasicUse (with Arduino 1.8.13 and ESP-core 2.7.4)
Sibbele Oosterhaven
Attachtment:
Example code basicUse (ESPHelper), with stack dump and output Exception decoder