Kconfig 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. menu "Core dump"
  2. choice ESP32_COREDUMP_TO_FLASH_OR_UART
  3. prompt "Data destination"
  4. default ESP32_ENABLE_COREDUMP_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 ESP32_ENABLE_COREDUMP_TO_FLASH
  12. bool "Flash"
  13. depends on !SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
  14. select ESP32_ENABLE_COREDUMP
  15. config ESP32_ENABLE_COREDUMP_TO_UART
  16. bool "UART"
  17. select ESP32_ENABLE_COREDUMP
  18. config ESP32_ENABLE_COREDUMP_TO_NONE
  19. bool "None"
  20. endchoice
  21. choice ESP32_COREDUMP_DATA_FORMAT
  22. prompt "Core dump data format"
  23. default ESP32_COREDUMP_DATA_FORMAT_ELF
  24. depends on !ESP32_ENABLE_COREDUMP_TO_NONE
  25. help
  26. Select the data format for core dump.
  27. config ESP32_COREDUMP_DATA_FORMAT_BIN
  28. bool "Binary format"
  29. config ESP32_COREDUMP_DATA_FORMAT_ELF
  30. bool "ELF format"
  31. endchoice
  32. choice ESP32_COREDUMP_CHECKSUM
  33. prompt "Core dump data integrity check"
  34. default ESP32_COREDUMP_CHECKSUM_CRC32
  35. depends on !ESP32_ENABLE_COREDUMP_TO_NONE
  36. help
  37. Select the integrity check for the core dump.
  38. config ESP32_COREDUMP_CHECKSUM_CRC32
  39. bool "Use CRC32 for integrity verification"
  40. config ESP32_COREDUMP_CHECKSUM_SHA256
  41. bool "Use SHA256 for integrity verification"
  42. depends on ESP32_COREDUMP_DATA_FORMAT_ELF
  43. endchoice
  44. config ESP32_ENABLE_COREDUMP
  45. bool
  46. default F
  47. help
  48. Enables/disable core dump module.
  49. config ESP32_CORE_DUMP_MAX_TASKS_NUM
  50. int "Maximum number of tasks"
  51. depends on ESP32_ENABLE_COREDUMP
  52. default 64
  53. help
  54. Maximum number of tasks snapshots in core dump.
  55. config ESP32_CORE_DUMP_UART_DELAY
  56. int "Delay before print to UART"
  57. depends on ESP32_ENABLE_COREDUMP_TO_UART
  58. default 0
  59. help
  60. Config delay (in ms) before printing core dump to UART.
  61. Delay can be interrupted by pressing Enter key.
  62. config ESP32_CORE_DUMP_STACK_SIZE
  63. int "Reserved stack size"
  64. depends on ESP32_ENABLE_COREDUMP
  65. default 0
  66. help
  67. Size of the memory to be reserved for core dump stack. If 0 core dump process will run on
  68. the stack of crashed task/ISR, otherwise special stack will be allocated.
  69. To ensure that core dump itself will not overflow task/ISR stack set this to the value above 800.
  70. NOTE: It eats DRAM.
  71. choice ESP32_CORE_DUMP_DECODE
  72. prompt "Handling of UART core dumps in IDF Monitor"
  73. depends on ESP32_ENABLE_COREDUMP_TO_UART
  74. config ESP32_CORE_DUMP_DECODE_INFO
  75. bool "Decode and show summary (info_corefile)"
  76. config ESP32_CORE_DUMP_DECODE_DISABLE
  77. bool "Don't decode"
  78. endchoice
  79. config ESP32_CORE_DUMP_DECODE
  80. string
  81. default "disable" if ESP32_CORE_DUMP_DECODE_DISABLE
  82. default "info" if ESP32_CORE_DUMP_DECODE_INFO
  83. endmenu