2019-01-29 09:49:56 -05:00
|
|
|
menu "Core dump"
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
choice ESP_COREDUMP_TO_FLASH_OR_UART
|
2019-01-29 09:49:56 -05:00
|
|
|
prompt "Data destination"
|
2020-09-29 11:27:28 -04:00
|
|
|
default ESP_COREDUMP_ENABLE_TO_NONE
|
2019-01-29 09:49:56 -05:00
|
|
|
help
|
|
|
|
Select place to store core dump: flash, uart or none (to disable core dumps generation).
|
|
|
|
|
2020-03-02 08:43:05 -05:00
|
|
|
Core dumps to Flash are not available if PSRAM is used for task stacks.
|
|
|
|
|
2019-01-29 09:49:56 -05:00
|
|
|
If core dump is configured to be stored in flash and custom partition table is used add
|
|
|
|
corresponding entry to your CSV. For examples, please see predefined partition table CSV descriptions
|
|
|
|
in the components/partition_table directory.
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_ENABLE_TO_FLASH
|
2019-01-29 09:49:56 -05:00
|
|
|
bool "Flash"
|
2020-03-02 08:43:05 -05:00
|
|
|
depends on !SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
|
2020-09-29 11:27:28 -04:00
|
|
|
select ESP_COREDUMP_ENABLE
|
|
|
|
config ESP_COREDUMP_ENABLE_TO_UART
|
2019-01-29 09:49:56 -05:00
|
|
|
bool "UART"
|
2020-09-29 11:27:28 -04:00
|
|
|
select ESP_COREDUMP_ENABLE
|
|
|
|
config ESP_COREDUMP_ENABLE_TO_NONE
|
2019-01-29 09:49:56 -05:00
|
|
|
bool "None"
|
|
|
|
endchoice
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
choice ESP_COREDUMP_DATA_FORMAT
|
2019-11-22 00:25:43 -05:00
|
|
|
prompt "Core dump data format"
|
2020-09-29 11:27:28 -04:00
|
|
|
default ESP_COREDUMP_DATA_FORMAT_ELF
|
|
|
|
depends on !ESP_COREDUMP_ENABLE_TO_NONE
|
2019-11-22 00:25:43 -05:00
|
|
|
help
|
|
|
|
Select the data format for core dump.
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_DATA_FORMAT_BIN
|
2019-11-22 00:25:43 -05:00
|
|
|
bool "Binary format"
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_DATA_FORMAT_ELF
|
2019-11-22 00:25:43 -05:00
|
|
|
bool "ELF format"
|
|
|
|
endchoice
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
choice ESP_COREDUMP_CHECKSUM
|
2019-11-22 00:25:43 -05:00
|
|
|
prompt "Core dump data integrity check"
|
2020-09-29 11:27:28 -04:00
|
|
|
default ESP_COREDUMP_CHECKSUM_CRC32
|
|
|
|
depends on !ESP_COREDUMP_ENABLE_TO_NONE
|
2019-11-22 00:25:43 -05:00
|
|
|
help
|
|
|
|
Select the integrity check for the core dump.
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_CHECKSUM_CRC32
|
2019-11-22 00:25:43 -05:00
|
|
|
bool "Use CRC32 for integrity verification"
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_CHECKSUM_SHA256
|
2019-11-22 00:25:43 -05:00
|
|
|
bool "Use SHA256 for integrity verification"
|
2020-09-29 11:27:28 -04:00
|
|
|
depends on ESP_COREDUMP_DATA_FORMAT_ELF && IDF_TARGET_ESP32
|
2019-11-22 00:25:43 -05:00
|
|
|
endchoice
|
|
|
|
|
2021-03-03 06:39:04 -05:00
|
|
|
config ESP_COREDUMP_CHECK_BOOT
|
|
|
|
bool "Check core dump data integrity on boot"
|
|
|
|
default y
|
|
|
|
depends on ESP_COREDUMP_ENABLE_TO_FLASH
|
|
|
|
help
|
|
|
|
When enabled, if any data are found on the flash core dump partition,
|
|
|
|
they will be checked by calculating their checksum.
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_ENABLE
|
2019-01-29 09:49:56 -05:00
|
|
|
bool
|
|
|
|
default F
|
|
|
|
help
|
|
|
|
Enables/disable core dump module.
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_MAX_TASKS_NUM
|
2019-01-29 09:49:56 -05:00
|
|
|
int "Maximum number of tasks"
|
2020-09-29 11:27:28 -04:00
|
|
|
depends on ESP_COREDUMP_ENABLE
|
2019-01-29 09:49:56 -05:00
|
|
|
default 64
|
|
|
|
help
|
|
|
|
Maximum number of tasks snapshots in core dump.
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_UART_DELAY
|
2019-01-29 09:49:56 -05:00
|
|
|
int "Delay before print to UART"
|
2020-09-29 11:27:28 -04:00
|
|
|
depends on ESP_COREDUMP_ENABLE_TO_UART
|
2019-01-29 09:49:56 -05:00
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Config delay (in ms) before printing core dump to UART.
|
|
|
|
Delay can be interrupted by pressing Enter key.
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_STACK_SIZE
|
2019-11-22 00:25:43 -05:00
|
|
|
int "Reserved stack size"
|
2020-09-29 11:27:28 -04:00
|
|
|
depends on ESP_COREDUMP_ENABLE
|
2020-12-13 22:10:29 -05:00
|
|
|
# Temporarily disable this feature on Xtensa boards as switching stack
|
|
|
|
# pointer triggers an exception (IDF-2797)
|
|
|
|
depends on IDF_TARGET_ARCH_RISCV
|
2019-11-22 00:25:43 -05:00
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Size of the memory to be reserved for core dump stack. If 0 core dump process will run on
|
|
|
|
the stack of crashed task/ISR, otherwise special stack will be allocated.
|
|
|
|
To ensure that core dump itself will not overflow task/ISR stack set this to the value above 800.
|
|
|
|
NOTE: It eats DRAM.
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
choice ESP_COREDUMP_DECODE
|
2020-02-06 13:29:50 -05:00
|
|
|
prompt "Handling of UART core dumps in IDF Monitor"
|
2020-09-29 11:27:28 -04:00
|
|
|
depends on ESP_COREDUMP_ENABLE_TO_UART
|
|
|
|
config ESP_COREDUMP_DECODE_INFO
|
2020-02-06 13:29:50 -05:00
|
|
|
bool "Decode and show summary (info_corefile)"
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_DECODE_DISABLE
|
2020-02-06 13:29:50 -05:00
|
|
|
bool "Don't decode"
|
|
|
|
endchoice
|
|
|
|
|
2020-09-29 11:27:28 -04:00
|
|
|
config ESP_COREDUMP_DECODE
|
2020-02-06 13:29:50 -05:00
|
|
|
string
|
2020-09-29 11:27:28 -04:00
|
|
|
default "disable" if ESP_COREDUMP_DECODE_DISABLE
|
|
|
|
default "info" if ESP_COREDUMP_DECODE_INFO
|
2020-02-06 13:29:50 -05:00
|
|
|
|
2019-01-29 09:49:56 -05:00
|
|
|
endmenu
|