how to decode esp32 panic

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ChrisO
Posts: 48
Joined: Mon Apr 06, 2020 6:16 pm

how to decode esp32 panic

Post by ChrisO » Fri Mar 25, 2022 9:52 am

Hi,

I have a custom build and as soon as I use an AIOBLE BufferedCharacteristic I run into kernel panics.
Now I do not expect anyone to diagnose this for me, but I would like to some pointers on how to debug this.
I am pretty much using the default makeFile in micropython/ports/esp32 with the exception of a custom board definition.

The build generates an ELF file, and from research I know it's relevant somehow...
I have found viewtopic.php?t=7953 but I cannot piece together how I should do it for my build.

I have a git project with some source code, esp-idf and micropython are in there as submodules but they're simply exact copies with some projectspecific symlinks. I was hoping to find something along the lines of that XTENSA_GDB in the ESP-IDF github repo, but to no avail.

Can anyone give me some pointers?
Thanks

The error looks like this:

Code: Select all

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x400edf1f  PS      : 0x00060e30  A0      : 0x800ee6fb  A1      : 0x3ffcce50  
A2      : 0x00000000  A3      : 0x00000000  A4      : 0x3ffccf14  A5      : 0x00000684  
A6      : 0x000003d1  A7      : 0x3ffe4d40  A8      : 0x800d86f8  A9      : 0x3ffcce30  
A10     : 0x3ffe8a60  A11     : 0x00000000  A12     : 0x3ffc41e8  A13     : 0x00000687  
A14     : 0x000003d2  A15     : 0x3ffe4d40  SAR     : 0x00000020  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000004  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0x00000000  

Backtrace:0x400edf1c:0x3ffcce50 0x400ee6f8:0x3ffcce70 0x400e5efd:0x3ffcced0 0x400dbc46:0x3ffccfa0 0x400e259d:0x3ffccfc0 0x400e26cd:0x3ffccfe0 0x400846f9:0x3ffcd000 0x400dbd3c:0x3ffcd0a0 0x400e259d:0x3ffcd0d0 0x400e26cd:0x3ffcd0f0 0x400846f9:0x3ffcd110 0x400dbd3c:0x3ffcd1b0 0x400e259d:0x3ffcd220 0x400e25c6:0x3ffcd240 0x400efa22:0x3ffcd260 0x400efc22:0x3ffcd2f0 0x400d4d6e:0x3ffcd340

Chris

Post Reply