check in script to decode backtraces

This commit is contained in:
Girts Folkmanis
2020-03-15 12:28:30 -07:00
parent 0d62a2be85
commit c411db111b
2 changed files with 338 additions and 0 deletions

View File

@@ -14,3 +14,12 @@ in these instructions I describe use of their command line tool.
5. Plug the radio into your USB port
6. Type "pio run -t upload" (This command will fetch dependencies, build the project and install it on the board via USB)
7. Platform IO also installs a very nice VisualStudio Code based IDE, see their [tutorial](https://docs.platformio.org/en/latest/tutorials/espressif32/arduino_debugging_unit_testing.html) if you'd like to use it
## Decoding stack traces
If you get a crash, you can decode the addresses from the `Backtrace:` line:
1. Save the `Backtrace: 0x....` line to a file, e.g., `backtrace.txt`.
2. Run `bin/exception_decoder.py backtrace.txt` (this uses symbols from the
last `firmware.elf`, so you must be running the same binary that's still in
your `.pio/build` directory).