Not able to decode the Core Dump file (From: ESP32C6) downloaded from Flash ESP-IDF Version V5.3.2
1.Enabled the Core Dump in menuconfig ,
#
# 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 is not set
CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=y
CONFIG_ESP_COREDUMP_CHECKSUM_CRC32=y
# CONFIG_ESP_COREDUMP_CHECKSUM_SHA256 is not set
# CONFIG_ESP_COREDUMP_CAPTURE_DRAM is not set
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_FLASH_NO_OVERWRITE is not set
CONFIG_ESP_COREDUMP_STACK_SIZE=1800
CONFIG_ESP_COREDUMP_SUMMARY_STACKDUMP_SIZE=4096
# end of Core dump
2.using the custom partition table
coredump,data,coredump,0x760000,128K,
3.created panic to create the crash logs in code dump area.
4.Able to download the core dump (coredump.bin) from the core dump area.
( command used :esptool.py --chip esp32c6 --port COM11 read_flash 0x760000 0x20000 coredump.bin)
5.notable to decode the coredump.bin always endup with error (Command used : idf.py coredump-info -c coredump.bin build\dev\wifi.modem.elf)
Failed to load core dump: Invalid application image for coredump: coredump SHA256(bb15e81a1) != app SHA256().
How to decode the coredump.bin ?
ESP32C6 - Core Dump
-
ahsrabrifat
- Posts: 201
- Joined: Sat Jan 18, 2025 2:31 pm
Re: ESP32C6 - Core Dump
The ELF file used (build\dev\wifi.modem.elf) must be the one used to flash the device at the time of the crash. If you've rebuilt the project since the crash, the new ELF will not match (even if the source is the same).
-
shanmugamkarthik
- Posts: 2
- Joined: Thu May 29, 2025 2:03 am
Re: ESP32C6 - Core Dump
Hi ahsrabrifat,
We used the same build\dev\wifi.modem.elf file that was used during flashing (unchanged since then) to decode the crash dump.
We used the same build\dev\wifi.modem.elf file that was used during flashing (unchanged since then) to decode the crash dump.
Who is online
Users browsing this forum: Bytespider and 4 guests