Skip to content

Debugging ESP module crashes

Thomas Sarlandie edited this page Dec 30, 2017 · 1 revision

Look for a message like this in logs:

WI main.cpp:117 ESP8266 reboot reason: Fatal exception:28 flag:2 (EXCEPTION) epc1:0x4021abb4 epc2:0x00000000 epc3:0x00000000 excvaddr:0x0000000

To convert the address to a function:

~/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-addr2line -e .pioenvs/esp/firmware.elf -aipfC 0x4021abb4
0x4021abb4: memchr at /Users/igrokhotkov/e/newlib-xtensa/xtensa-lx106-elf/newlib/libc/string/../../../.././newlib/libc/string/memchr.c:128
Clone this wiki locally