how to read coredump data into a buffer and convert it to human readable form(register values & backtrace)
Posted: Thu Jun 19, 2025 9:47 am
Hello guys,
I have stored coredump values in flash. I want to read it and convert it in human readable form i.e.
PC : 0x00090003 PS : 0x0000001d A0 : 0x00000160 A1 : 0x00000000
A2 : 0x00000002 A3 : 0x3fccbd10 A4 : 0x3fccb910 A5 : 0x3fccbd00
A6 : 0x3fccb8c0 A7 : 0x0000cfa9 A8 : 0x3fca4764 A9 : 0x3fca4764
A10 : 0x3fccbd10 A11 : 0x3fca475c A12 : 0x00000017 A13 : 0x3fccbea0
A14 : 0x3fccbea0 A15 : 0x3fccbd10 SAR : 0x00000000 EXCCAUSE: 0x00000002
EXCVADDR: 0x3fccad0c LBEG : 0x736e6f63 LEND : 0x5f656c6f LCOUNT : 0x6c706572
Backtrace: ....
How can we do it??
Also, does anyone know the frame structure of the coredump stored in flash???
Using ESP32 S3 WROOM 1 with
#
# Core dump
#
CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
# CONFIG_ESP_COREDUMP_ENABLE_TO_UART is not set
# CONFIG_ESP_COREDUMP_ENABLE_TO_NONE is not set
CONFIG_ESP_COREDUMP_DATA_FORMAT_BIN=y
# CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF is not set
CONFIG_ESP_COREDUMP_CHECKSUM_CRC32=y
CONFIG_ESP_COREDUMP_CHECK_BOOT=y
CONFIG_ESP_COREDUMP_ENABLE=y
CONFIG_ESP_COREDUMP_LOGS=y
CONFIG_ESP_COREDUMP_MAX_TASKS_NUM=64
CONFIG_ESP_COREDUMP_STACK_SIZE=0
# end of Core dump
Thanks and regards.
I have stored coredump values in flash. I want to read it and convert it in human readable form i.e.
PC : 0x00090003 PS : 0x0000001d A0 : 0x00000160 A1 : 0x00000000
A2 : 0x00000002 A3 : 0x3fccbd10 A4 : 0x3fccb910 A5 : 0x3fccbd00
A6 : 0x3fccb8c0 A7 : 0x0000cfa9 A8 : 0x3fca4764 A9 : 0x3fca4764
A10 : 0x3fccbd10 A11 : 0x3fca475c A12 : 0x00000017 A13 : 0x3fccbea0
A14 : 0x3fccbea0 A15 : 0x3fccbd10 SAR : 0x00000000 EXCCAUSE: 0x00000002
EXCVADDR: 0x3fccad0c LBEG : 0x736e6f63 LEND : 0x5f656c6f LCOUNT : 0x6c706572
Backtrace: ....
How can we do it??
Also, does anyone know the frame structure of the coredump stored in flash???
Using ESP32 S3 WROOM 1 with
#
# Core dump
#
CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y
# CONFIG_ESP_COREDUMP_ENABLE_TO_UART is not set
# CONFIG_ESP_COREDUMP_ENABLE_TO_NONE is not set
CONFIG_ESP_COREDUMP_DATA_FORMAT_BIN=y
# CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF is not set
CONFIG_ESP_COREDUMP_CHECKSUM_CRC32=y
CONFIG_ESP_COREDUMP_CHECK_BOOT=y
CONFIG_ESP_COREDUMP_ENABLE=y
CONFIG_ESP_COREDUMP_LOGS=y
CONFIG_ESP_COREDUMP_MAX_TASKS_NUM=64
CONFIG_ESP_COREDUMP_STACK_SIZE=0
# end of Core dump
Thanks and regards.