pio_coredump
Retrieve the ESP32 core dump from flash after a crash and optionally analyze it to show the crashed task, reason, registers, and backtrace.
Instructions
Pull the ESP32 core dump out of the coredump flash partition after a crash (esptool read_flash) and save it. When the optional esp-coredump analyzer is installed (platformio.mcp[coredump]), it runs esp-coredump info_corefile against the env's firmware.elf with the toolchain's gdb and returns the crashed task, reason, registers, and backtrace. Reports clearly when the partition is erased (no crash recorded) or the analyzer is missing. Stop monitor sessions on the port first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| port | No | ||
| analyze | No | ||
| out_path | No | ||
| project_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||