Core 0 panic'ed, but reboot does not happen
-
I get the occasional core 0 related freezes of M5 Stick C.
Using the latest Arduino IDE with latest M5 libs.I did program a watchdog timer, which works, except when the core 0 error happens.
Once the unit hangs it gets wamer than usual and consumes about 100ms. The unit is no longer visible on the network, and will not respond to button presses (except power off button)
How can I fix this? (Stick needs to reboot on core 0 error)
Thanks !
---------------------------------------- Log -----
SSID: Jackdog-73dBm (54% )
OFF_Display
FreeHeap=240924
sunnyboy
http://sunnyboy/solar_api/v1/GetPowerFlowRealtimeData.fcgi
Fronius:BEFORE g_ihttpFronius = http.GET()
Fronius:AFTER g_ihttpFronius = http.GET()
g_ihttpFronius=-1
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x40082868: 03adf784 c0079ea5 40082920
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Er----------------------------- end log--------------------------------
-
I set CONFIG_ESP32_PANIC_SILENT_REBOOT=y
in file /.arduiono15/packages/esp32/hardware/esp32/1.0.4/tools/sdk/sdkconfigI did get the same error again, plus some unexpected debugging output
After all, with CONFIG_ESP32_PANIC_SILENT_REBOOT=y , I would not expect any debugging output
By the way, the problem happens with several M5Sticks..........-------------------------------------Log output (same as last time)
No/Bad response from Shelly:-1
SSID:Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x40082868: 03adf784 c0079ea5 40082920
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled.
Memory dump at 0x400808dc: 3f4183b4 3f418440 3f4183d0
Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unha ndled. -
Reduced CPU from 240MHz to 80MHz ----Problem seems to be gone
-
We haven't encountered such situation before, trying to replicate it didn't bring any results. our all firmware is use 240MHz by default and this shouldn't cause any troubles. maybe you could check if it's related to your program or provide any details how we can try to replicate it to see what's going on?
-
@m5stack :
So far the "80Mhz" fix is holding up since Oct-21st , running on 2 units.
I will try a few more M5StickC running at 240Mhz (with exact same program and programmed from same IDE) and see if they again lock up after a few days.