Open echoGee opened 6 years ago
It seems that is not the exception format the tool is built for. I don't have an ESP32 prepared to reproduce it and fix the format.
Which version of the toolchain do you use?
I am using 0.12.0 version of Espressif 32 (https://github.com/platformio/platform-espressif32/releases). I assumed this repository was a port of https://github.com/me-no-dev/EspExceptionDecoder ?
@janLo : Is there any other information I could give to help you fix the format ?
Its more of an "inspired by" and it was made for the 8266. It seems that the ESP32 exception format is completely different. I can integrate support for this format but it might take a while as I'm currently busy with moving houses.
😄 . It will definitely help to have support for ESP32 when you get a chance.
I've got an ESP32 and was hoping to use this as well. Here's another stack trace if it helps with the format any:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited)
. Exception was unhandled.
Core 1 register dump:
PC : 0x4014c0d6 PS : 0x00060130 A0 : 0x800d2e7e A1 : 0x3ffd2450
A2 : 0x3ffcdf64 A3 : 0x00000000 A4 : 0x00000050 A5 : 0x3ffd2430
A6 : 0x08fffffd A7 : 0x00000000 A8 : 0x8014c772 A9 : 0x3ffd2430
A10 : 0xa5a5a5a5 A11 : 0x00000000 A12 : 0x00000005 A13 : 0x00000020
A14 : 0x00000020 A15 : 0x3ffcdf04 SAR : 0x0000001b EXCCAUSE: 0x0000001c
EXCVADDR: 0xa5a5a5a5 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace: 0x4014c0d6:0x3ffd2450 0x400d2e7b:0x3ffd2470 0x4014c0da:0x3ffd2490 0x400d2e8b:0x3ffd24b0 0x400d5041:0x3ff
d24d0 0x400d5131:0x3ffd24f0 0x400d2fb5:0x3ffd2510 0x400d2482:0x3ffd2530 0x400fc3a6:0x3ffd2550
Here's some info on decoding Guru Meditation Error by hand: https://www.esp32.com/viewtopic.php?t=263 Here's how it's done in ESP-IDF: http://esp-idf.readthedocs.io/en/latest/get-started/idf-monitor.html
I've made a PR adding partial ESP32 support. Please test. It currently decodes backtrace only.
Running python .\decoder.py -p ESP32 -t "\~/.platformio/packages/toolchain-xtensa32" -e "\~\firmware.elf" -f .\st1.txt --stack
Contents of st1.txt is
The output from decode: