Skip to content

Commit

Permalink
Info no core dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul D.Smith committed Dec 29, 2023
1 parent ae7a8e7 commit 9cea655
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/coredumps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Core dump Debugging

Ref: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/core_dump.html

## Development
### Core dump to UART then decode
Enable _Core Dump to UART_
- `idf.py menuconfig`
- Component config
- Core dump
- Data destination (UART)

From UART (e.g. `Putty`) output, cut the Base64 encoded data out; do not keep the `CORE DUMP START/END` lines.

```
================= CORE DUMP START =================
<body of Base64-encoded core dump, save it to file on disk>
================= CORE DUMP END ===================
```

Decode using `idf.py` as follows (you must provide some sort of port!)

`idf.py coredump-info --core putty.log -p /dev/x >crash.log`

0 comments on commit 9cea655

Please sign in to comment.