Kconfig 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. menu "Core dump"
  2. choice ESP_COREDUMP_TO_FLASH_OR_UART
  3. prompt "Data destination"
  4. default ESP_COREDUMP_ENABLE_TO_NONE
  5. help
  6. Select place to store core dump: flash, uart or none (to disable core dumps generation).
  7. Core dumps to Flash are not available if PSRAM is used for task stacks.
  8. If core dump is configured to be stored in flash and custom partition table is used add
  9. corresponding entry to your CSV. For examples, please see predefined partition table CSV descriptions
  10. in the components/partition_table directory.
  11. config ESP_COREDUMP_ENABLE_TO_FLASH
  12. bool "Flash"
  13. depends on !SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
  14. select FREERTOS_ENABLE_TASK_SNAPSHOT
  15. select ESP_COREDUMP_ENABLE
  16. config ESP_COREDUMP_ENABLE_TO_UART
  17. bool "UART"
  18. select FREERTOS_ENABLE_TASK_SNAPSHOT
  19. select ESP_COREDUMP_ENABLE
  20. config ESP_COREDUMP_ENABLE_TO_NONE
  21. bool "None"
  22. endchoice
  23. choice ESP_COREDUMP_DATA_FORMAT
  24. prompt "Core dump data format"
  25. default ESP_COREDUMP_DATA_FORMAT_ELF
  26. depends on !ESP_COREDUMP_ENABLE_TO_NONE
  27. help
  28. Select the data format for core dump.
  29. config ESP_COREDUMP_DATA_FORMAT_BIN
  30. bool "Binary format"
  31. config ESP_COREDUMP_DATA_FORMAT_ELF
  32. bool "ELF format"
  33. endchoice
  34. choice ESP_COREDUMP_CHECKSUM
  35. prompt "Core dump data integrity check"
  36. default ESP_COREDUMP_CHECKSUM_CRC32
  37. depends on !ESP_COREDUMP_ENABLE_TO_NONE
  38. help
  39. Select the integrity check for the core dump.
  40. config ESP_COREDUMP_CHECKSUM_CRC32
  41. bool "Use CRC32 for integrity verification"
  42. config ESP_COREDUMP_CHECKSUM_SHA256
  43. bool "Use SHA256 for integrity verification"
  44. depends on ESP_COREDUMP_DATA_FORMAT_ELF && IDF_TARGET_ESP32
  45. endchoice
  46. config ESP_COREDUMP_CHECK_BOOT
  47. bool "Check core dump data integrity on boot"
  48. default y
  49. depends on ESP_COREDUMP_ENABLE_TO_FLASH
  50. help
  51. When enabled, if any data are found on the flash core dump partition,
  52. they will be checked by calculating their checksum.
  53. config ESP_COREDUMP_ENABLE
  54. bool
  55. default F
  56. help
  57. Enables/disable core dump module.
  58. config ESP_COREDUMP_MAX_TASKS_NUM
  59. int "Maximum number of tasks"
  60. depends on ESP_COREDUMP_ENABLE
  61. default 64
  62. help
  63. Maximum number of tasks snapshots in core dump.
  64. config ESP_COREDUMP_UART_DELAY
  65. int "Delay before print to UART"
  66. depends on ESP_COREDUMP_ENABLE_TO_UART
  67. default 0
  68. help
  69. Config delay (in ms) before printing core dump to UART.
  70. Delay can be interrupted by pressing Enter key.
  71. config ESP_COREDUMP_STACK_SIZE
  72. int "Reserved stack size"
  73. depends on ESP_COREDUMP_ENABLE
  74. # Temporarily disable this feature on Xtensa boards as switching stack
  75. # pointer triggers an exception (IDF-2797)
  76. depends on IDF_TARGET_ARCH_RISCV
  77. default 0
  78. help
  79. Size of the memory to be reserved for core dump stack. If 0 core dump process will run on
  80. the stack of crashed task/ISR, otherwise special stack will be allocated.
  81. To ensure that core dump itself will not overflow task/ISR stack set this to the value above 800.
  82. NOTE: It eats DRAM.
  83. config ESP_COREDUMP_SUMMARY_STACKDUMP_SIZE
  84. int "Size of the stack dump buffer"
  85. depends on ESP_COREDUMP_DATA_FORMAT_ELF && ESP_COREDUMP_ENABLE_TO_FLASH && IDF_TARGET_ARCH_RISCV
  86. range 512 4096
  87. default 1024
  88. help
  89. Size of the buffer that would be reserved for extracting backtrace info summary.
  90. This buffer will contain the stack dump of the crashed task. This dump is useful in generating backtrace
  91. choice ESP_COREDUMP_DECODE
  92. prompt "Handling of UART core dumps in IDF Monitor"
  93. depends on ESP_COREDUMP_ENABLE_TO_UART
  94. config ESP_COREDUMP_DECODE_INFO
  95. bool "Decode and show summary (info_corefile)"
  96. config ESP_COREDUMP_DECODE_DISABLE
  97. bool "Don't decode"
  98. endchoice
  99. config ESP_COREDUMP_DECODE
  100. string
  101. default "disable" if ESP_COREDUMP_DECODE_DISABLE
  102. default "info" if ESP_COREDUMP_DECODE_INFO
  103. endmenu