-->
Page 1 of 1

"Random" Fatal Error in ongoing operation

PostPosted: Fri Nov 25, 2022 6:17 am
by Marius23
I have a sketch that reads a RFID Card with the MRC522 and send the results to an Webserver.

Everthing works fine, but after a random amount of time I get a fatal error and have to upload the sketch again.
Then it works again as espected, but the error returns sometimes.

The Error:

load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v0007cfa0
~ld
Wi-Fi mode set to WIFI_STA

SDK version: 2.2.2-dev(38a443e)
Free Heap: 36312
Mounting FS...
Reader: 11
Fatal exception 28(LoadProhibitedCause):
epc1=0x4021a388, epc2=0x00000000, epc3=0x4020545c, excvaddr=0x00000000, depc=0x00000000

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

Exception (28):
epc1=0x4021a388 epc2=0x00000000 epc3=0x4020545c excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffb00 end: 3fffffc0 offset: 0190
3ffffc90: 3fff323c 3fff075c 3ffffeb0 40206128
3ffffca0: 00000000 00000000 3ffffeb0 402074ef
3ffffcb0: 3ffffcd8 3ffffcd8 3ffffe48 3ffffed8
3ffffcc0: 00000000 a0000000 3ffffec8 3ffffe48
3ffffcd0: 00003020 feefeffe 00003000 3ffe8394
3ffffce0: 00000000 00000000 3ffffe50 4021b800
3ffffcf0: 3ffffdde 3ffffde3 00000000 feefeffe
3ffffd00: feefeffe feefeffe 40217281 3ffe8394
3ffffd10: 00000005 00000000 3ffffe50 4021b800
3ffffd20: 4021b73c 3ffffdde 00000005 00000000
3ffffd30: feefeffe feefeffe feefeffe 3ffffe50
3ffffd40: 3ffe9a8b 00000000 3ffffda0 402173b0
3ffffd50: 00000005 feefeffe feefeffe 3ffe8394
3ffffd60: 00000001 00000000 3ffffe50 4021b800
3ffffd70: 00000000 3ffe9a8b 00000001 00000000
3ffffd80: feefeffe feefeffe feefeffe 3ffe9a8b
3ffffd90: 00000001 3fff14d4 00000008 00000007
3ffffda0: 00000000 ffffffff 00000008 00000004
3ffffdb0: 00000040 00000011 00302064 00000001
3ffffdc0: 00000040 00000000 3ffffde0 00000000
3ffffdd0: 007a1200 b18b4792 00202000 40211bb1
3ffffde0: 0000002c 3fff14d4 00000004 40208f6a
3ffffdf0: 00000000 00000000 00000000 00000004
3ffffe00: 00000006 00000001 00000000 40210af4
3ffffe10: 00000001 00000754 00000004 4021168a
3ffffe20: 00000001 00000001 3fff0900 401005b8
3ffffe30: 00000006 3fff0902 3fff0902 4021137e
3ffffe40: 00000014 00000002 00000028 00000000
3ffffe50: 00000008 3fff335b 00000001 00000000
3ffffe60: fffffa08 3fff3350 00000000 00000000
3ffffe70: ffff0008 3fff3343 3fff333f 00000003
3ffffe80: ffff0004 3fff3333 3fff32f7 0000003b
3ffffe90: ffff0004 3fff32eb 00000000 00000000
3ffffea0: ffff0008 3fff32db 3fff32d6 00000004
3ffffeb0: ffff0004 3fff32cd 3fff32c8 00000004
3ffffec0: fffffa04 3fff32bf 3fff32ba 00000004
3ffffed0: fffffe04 3fff32b4 00000000 00000000
3ffffee0: 00000001 3fff338c 0000007d 3ffffcb0
3ffffef0: 00003034 000137d1 00000002 00000340
3fffff00: 500ffc30 00010002 ffffffff 000003e8
3fffff10: 3fff0b78 00000006 00000004 402115ac
3fffff20: 3ffe991b 00000002 3fffff81 40211afd
3fffff30: 00000000 40214f4c 00000000 000003e8
3fffff40: 00202000 00000000 3fff324c 3fff323c
3fffff50: 402090f8 00000000 00000000 3fff0704
3fffff60: 3ffefe40 3fff0b64 000000c8 3fff08b0
3fffff70: 00000000 3fff0b64 000000c8 40210af4
3fffff80: 40211695 000000c8 3fff08b0 3fff08b0
3fffff90: 3fffdad0 3ffe99c4 3fff075c 40207707
3fffffa0: feefeffe 00000000 3fff089c 40210c0c
3fffffb0: feefeffe feefeffe 3ffe8678 40101175
<<<stack<<<

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

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





The Exception Decoder says following, but I can't refer to my sketch:

Decoding stack results
0x40206128: ArduinoJson6194_F1::Converter ::fromJson(ArduinoJson6194_F1::VariantConstRef) at C:\Users\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Numbers/convertNumber.hpp line 110
0x402074ef: loadConfig() at C:\Users\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRef.hpp line 241
0x4021b800: __ratio at /workdir/repo/newlib/newlib/libc/stdlib/mprec.c line 917
0x40217281: _printf_i at /workdir/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c line 131
0x4021b800: __ratio at /workdir/repo/newlib/newlib/libc/stdlib/mprec.c line 917
0x4021b73c: __d2b at /workdir/repo/newlib/newlib/libc/stdlib/mprec.c line 794
0x402173b0: _printf_i at /workdir/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c line 163
0x4021b800: __ratio at /workdir/repo/newlib/newlib/libc/stdlib/mprec.c line 917
0x40211bb1: __pinMode(uint8_t, uint8_t) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_wiring_digital.cpp line 60
0x40208f6a: littlefs_impl::LittleFSImpl::remove(char const*) at C:\Users\Maar10\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\LittleFS\src/LittleFS.h line 143
0x40210af4: operator new[](unsigned int) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\abi.cpp line 53
0x4021168a: startWaveformClockCycles_weak(uint8_t, uint32_t, uint32_t, uint32_t, int8_t, uint32_t, bool) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_waveform_pwm.cpp line 385
0x401005b8: _notifyPWM(PWMState*, bool) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_waveform_pwm.cpp line 167
0x4021137e: __panic_func(char const*, int, char const*) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_postmortem.cpp line 304
0x402115ac: _setPWMFreq_weak(uint32_t) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_waveform_pwm.cpp line 202
0x40211afd: __pinMode(uint8_t, uint8_t) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\core_esp8266_wiring_digital.cpp line 49
0x402090f8: littlefs_impl::LittleFSImpl::format() at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\libraries\LittleFS\src/LittleFS.h line 211
0x40210af4: operator new[](unsigned int) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266\abi.cpp line 53
0x40211695: startWaveformClockCycles_weak(uint8_t, uint32_t, uint32_t, uint32_t, int8_t, uint32_t, bool) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/core_esp8266_features.h line 65
0x40207707: ArduinoJson6194_F1::Utf8::encodeCodepoint (unsigned int, ArduinoJson6194_F1::StringCopier&) at C:\Users\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Json/Utf8.hpp line 13
0x40210c0c: base64::encode(unsigned char const*, unsigned int, bool) at C:\Users\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/WString.h line 133


Maybe someone can help me by decrypting...