-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Debugging | ||
|
||
When the ESP crashes and it's connected to the serial port in debug mode, you can get its stacktrace. | ||
|
||
But then you need to decode it to see what's going on. To do that you need to: | ||
|
||
- install https://github.com/janLo/EspArduinoExceptionDecoder/ | ||
|
||
- save the stacktrace in a file, e.g. debug.txt | ||
|
||
- run `python3 ~/.platformio/packages/toolchain-xtensa/decoder.py -e .pio/build/debug/firmware.elf debug.txt -s` | ||
|
||
References: | ||
- https://github.com/esp8266/Arduino/blob/master/doc/faq/a02-my-esp-crashes.rst | ||
- https://arduino-esp8266.readthedocs.io/en/latest/exception_causes.html | ||
- https://arduino-esp8266.readthedocs.io/en/latest/Troubleshooting/stack_dump.html | ||
|