Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. menu "ESP System Settings"
  2. # Insert chip-specific cpu config
  3. rsource "./port/soc/$IDF_TARGET/Kconfig.cpu"
  4. orsource "./port/soc/$IDF_TARGET/Kconfig.cache"
  5. orsource "./port/soc/$IDF_TARGET/Kconfig.memory"
  6. orsource "./port/soc/$IDF_TARGET/Kconfig.tracemem"
  7. choice ESP_SYSTEM_PANIC
  8. prompt "Panic handler behaviour"
  9. default ESP_SYSTEM_PANIC_PRINT_REBOOT
  10. help
  11. If FreeRTOS detects unexpected behaviour or an unhandled exception, the panic handler is
  12. invoked. Configure the panic handler's action here.
  13. config ESP_SYSTEM_PANIC_PRINT_HALT
  14. bool "Print registers and halt"
  15. help
  16. Outputs the relevant registers over the serial port and halt the
  17. processor. Needs a manual reset to restart.
  18. config ESP_SYSTEM_PANIC_PRINT_REBOOT
  19. bool "Print registers and reboot"
  20. help
  21. Outputs the relevant registers over the serial port and immediately
  22. reset the processor.
  23. config ESP_SYSTEM_PANIC_SILENT_REBOOT
  24. bool "Silent reboot"
  25. help
  26. Just resets the processor without outputting anything
  27. config ESP_SYSTEM_PANIC_GDBSTUB
  28. bool "GDBStub on panic"
  29. select ESP_GDBSTUB_ENABLED
  30. help
  31. Invoke gdbstub on the serial port, allowing for gdb to attach to it to do a postmortem
  32. of the crash.
  33. config ESP_SYSTEM_GDBSTUB_RUNTIME
  34. bool "GDBStub at runtime"
  35. select ESP_GDBSTUB_ENABLED
  36. depends on !IDF_TARGET_ESP32C2
  37. help
  38. Invoke gdbstub on the serial port, allowing for gdb to attach to it and to do a debug on runtime.
  39. endchoice
  40. config ESP_SYSTEM_SINGLE_CORE_MODE
  41. bool
  42. default n
  43. help
  44. Only initialize and use the main core.
  45. config ESP_SYSTEM_RTC_EXT_XTAL
  46. # This is a High Layer Kconfig option, invisible, can be selected by other Kconfig option
  47. # e.g. It will be selected on when RTC_CLK_SRC_EXT_CRYS is on
  48. bool
  49. default n
  50. config ESP_SYSTEM_RTC_EXT_OSC
  51. # This is a High Layer Kconfig option, invisible, can be selected by other Kconfig option
  52. # e.g. It will be selected on when ESPX_RTC_CLK_SRC_EXT_OSC is on
  53. bool
  54. default n
  55. config ESP_SYSTEM_RTC_EXT_XTAL_BOOTSTRAP_CYCLES
  56. int "Bootstrap cycles for external 32kHz crystal"
  57. depends on ESP_SYSTEM_RTC_EXT_XTAL
  58. default 5 if IDF_TARGET_ESP32
  59. default 0
  60. range 0 32768
  61. help
  62. To reduce the startup time of an external RTC crystal,
  63. we bootstrap it with a 32kHz square wave for a fixed number of cycles.
  64. Setting 0 will disable bootstrapping (if disabled, the crystal may take
  65. longer to start up or fail to oscillate under some conditions).
  66. If this value is too high, a faulty crystal may initially start and then fail.
  67. If this value is too low, an otherwise good crystal may not start.
  68. To accurately determine if the crystal has started,
  69. set a larger "Number of cycles for RTC_SLOW_CLK calibration" (about 3000).
  70. config ESP_SYSTEM_RTC_FAST_MEM_AS_HEAP_DEPCHECK
  71. bool
  72. default y if IDF_TARGET_ESP32 && FREERTOS_UNICORE
  73. default y if IDF_TARGET_ESP32S2
  74. default y if IDF_TARGET_ESP32C3
  75. default y if IDF_TARGET_ESP32S3
  76. default y if IDF_TARGET_ESP32H4
  77. default y if IDF_TARGET_ESP32C6
  78. default y if IDF_TARGET_ESP32H2
  79. depends on !IDF_TARGET_ESP32C2
  80. config ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
  81. bool "Enable RTC fast memory for dynamic allocations"
  82. default y
  83. depends on ESP_SYSTEM_RTC_FAST_MEM_AS_HEAP_DEPCHECK
  84. help
  85. This config option allows to add RTC fast memory region to system heap with capability
  86. similar to that of DRAM region but without DMA. This memory will be consumed first per
  87. heap initialization order by early startup services and scheduler related code. Speed
  88. wise RTC fast memory operates on APB clock and hence does not have much performance impact.
  89. config ESP_SYSTEM_USE_EH_FRAME
  90. bool "Generate and use eh_frame for backtracing"
  91. default n
  92. depends on IDF_TARGET_ARCH_RISCV
  93. help
  94. Generate DWARF information for each function of the project. These information will parsed and used to
  95. perform backtracing when panics occur. Activating this option will activate asynchronous frame unwinding
  96. and generation of both .eh_frame and .eh_frame_hdr sections, resulting in a bigger binary size (20% to
  97. 100% larger). The main purpose of this option is to be able to have a backtrace parsed and printed by
  98. the program itself, regardless of the serial monitor used.
  99. This option shall NOT be used for production.
  100. menu "Memory protection"
  101. config ESP_SYSTEM_PMP_IDRAM_SPLIT
  102. bool "Enable IRAM/DRAM split protection"
  103. depends on SOC_CPU_IDRAM_SPLIT_USING_PMP
  104. default "y"
  105. help
  106. If enabled, the CPU watches all the memory access and raises an exception in case
  107. of any memory violation. This feature automatically splits
  108. the SRAM memory, using PMP, into data and instruction segments and sets Read/Execute permissions
  109. for the instruction part (below given splitting address) and Read/Write permissions
  110. for the data part (above the splitting address). The memory protection is effective
  111. on all access through the IRAM0 and DRAM0 buses.
  112. config ESP_SYSTEM_MEMPROT_FEATURE
  113. bool "Enable memory protection"
  114. depends on SOC_MEMPROT_SUPPORTED
  115. default "y"
  116. help
  117. If enabled, the permission control module watches all the memory access and fires the panic handler
  118. if a permission violation is detected. This feature automatically splits
  119. the SRAM memory into data and instruction segments and sets Read/Execute permissions
  120. for the instruction part (below given splitting address) and Read/Write permissions
  121. for the data part (above the splitting address). The memory protection is effective
  122. on all access through the IRAM0 and DRAM0 buses.
  123. config ESP_SYSTEM_MEMPROT_FEATURE_LOCK
  124. depends on ESP_SYSTEM_MEMPROT_FEATURE
  125. bool "Lock memory protection settings"
  126. default "y"
  127. help
  128. Once locked, memory protection settings cannot be changed anymore.
  129. The lock is reset only on the chip startup.
  130. endmenu # Memory protection
  131. config ESP_SYSTEM_EVENT_QUEUE_SIZE
  132. int "System event queue size"
  133. default 32
  134. help
  135. Config system event queue size in different application.
  136. config ESP_SYSTEM_EVENT_TASK_STACK_SIZE
  137. int "Event loop task stack size"
  138. default 2304
  139. help
  140. Config system event task stack size in different application.
  141. config ESP_MAIN_TASK_STACK_SIZE
  142. int "Main task stack size"
  143. default 3584
  144. help
  145. Configure the "main task" stack size. This is the stack of the task
  146. which calls app_main(). If app_main() returns then this task is deleted
  147. and its stack memory is freed.
  148. choice ESP_MAIN_TASK_AFFINITY
  149. prompt "Main task core affinity"
  150. default ESP_MAIN_TASK_AFFINITY_CPU0
  151. help
  152. Configure the "main task" core affinity. This is the used core of the task
  153. which calls app_main(). If app_main() returns then this task is deleted.
  154. config ESP_MAIN_TASK_AFFINITY_CPU0
  155. bool "CPU0"
  156. config ESP_MAIN_TASK_AFFINITY_CPU1
  157. bool "CPU1"
  158. depends on !FREERTOS_UNICORE
  159. config ESP_MAIN_TASK_AFFINITY_NO_AFFINITY
  160. bool "No affinity"
  161. endchoice
  162. config ESP_MAIN_TASK_AFFINITY
  163. hex
  164. default 0x0 if ESP_MAIN_TASK_AFFINITY_CPU0
  165. default 0x1 if ESP_MAIN_TASK_AFFINITY_CPU1
  166. default FREERTOS_NO_AFFINITY if ESP_MAIN_TASK_AFFINITY_NO_AFFINITY
  167. config ESP_MINIMAL_SHARED_STACK_SIZE
  168. int "Minimal allowed size for shared stack"
  169. default 2048
  170. help
  171. Minimal value of size, in bytes, accepted to execute a expression
  172. with shared stack.
  173. choice ESP_CONSOLE_UART
  174. prompt "Channel for console output"
  175. default ESP_CONSOLE_UART_DEFAULT
  176. help
  177. Select where to send console output (through stdout and stderr).
  178. - Default is to use UART0 on pre-defined GPIOs.
  179. - If "Custom" is selected, UART0 or UART1 can be chosen,
  180. and any pins can be selected.
  181. - If "None" is selected, there will be no console output on any UART, except
  182. for initial output from ROM bootloader. This ROM output can be suppressed by
  183. GPIO strapping or EFUSE, refer to chip datasheet for details.
  184. - On chips with USB OTG peripheral, "USB CDC" option redirects output to the
  185. CDC port. This option uses the CDC driver in the chip ROM.
  186. This option is incompatible with TinyUSB stack.
  187. - On chips with an USB serial/JTAG debug controller, selecting the option
  188. for that redirects output to the CDC/ACM (serial port emulation) component
  189. of that device.
  190. config ESP_CONSOLE_UART_DEFAULT
  191. bool "Default: UART0"
  192. config ESP_CONSOLE_USB_CDC
  193. bool "USB CDC"
  194. # && !TINY_USB is because the ROM CDC driver is currently incompatible with TinyUSB.
  195. depends on (IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3) && !TINY_USB
  196. config ESP_CONSOLE_USB_SERIAL_JTAG
  197. bool "USB Serial/JTAG Controller"
  198. select ESPTOOLPY_NO_STUB if IDF_TARGET_ESP32C3 #ESPTOOL-252
  199. depends on SOC_USB_SERIAL_JTAG_SUPPORTED
  200. config ESP_CONSOLE_UART_CUSTOM
  201. bool "Custom UART"
  202. config ESP_CONSOLE_NONE
  203. bool "None"
  204. endchoice
  205. choice ESP_CONSOLE_SECONDARY
  206. depends on SOC_USB_SERIAL_JTAG_SUPPORTED
  207. prompt "Channel for console secondary output"
  208. default ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
  209. help
  210. This secondary option supports output through other specific port like USB_SERIAL_JTAG
  211. when UART0 port as a primary is selected but not connected. This secondary output currently only supports
  212. non-blocking mode without using REPL. If you want to output in blocking mode with REPL or
  213. input through this secondary port, please change the primary config to this port
  214. in `Channel for console output` menu.
  215. config ESP_CONSOLE_SECONDARY_NONE
  216. bool "No secondary console"
  217. config ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
  218. bool "USB_SERIAL_JTAG PORT"
  219. depends on !ESP_CONSOLE_USB_SERIAL_JTAG
  220. help
  221. This option supports output through USB_SERIAL_JTAG port when the UART0 port is not connected.
  222. The output currently only supports non-blocking mode without using the console.
  223. If you want to output in blocking mode with REPL or input through USB_SERIAL_JTAG port,
  224. please change the primary config to ESP_CONSOLE_USB_SERIAL_JTAG above.
  225. endchoice
  226. config ESP_CONSOLE_UART
  227. # Internal option, indicates that console UART is used (and not USB, for example)
  228. bool
  229. default y if ESP_CONSOLE_UART_DEFAULT || ESP_CONSOLE_UART_CUSTOM
  230. config ESP_CONSOLE_MULTIPLE_UART
  231. bool
  232. default y if !IDF_TARGET_ESP32C3 && !IDF_TARGET_ESP32H4 && !IDF_TARGET_ESP32C2
  233. choice ESP_CONSOLE_UART_NUM
  234. prompt "UART peripheral to use for console output (0-1)"
  235. depends on ESP_CONSOLE_UART_CUSTOM && ESP_CONSOLE_MULTIPLE_UART
  236. default ESP_CONSOLE_UART_CUSTOM_NUM_0
  237. help
  238. This UART peripheral is used for console output from the ESP-IDF Bootloader and the app.
  239. If the configuration is different in the Bootloader binary compared to the app binary, UART
  240. is reconfigured after the bootloader exits and the app starts.
  241. Due to an ESP32 ROM bug, UART2 is not supported for console output
  242. via esp_rom_printf.
  243. config ESP_CONSOLE_UART_CUSTOM_NUM_0
  244. bool "UART0"
  245. config ESP_CONSOLE_UART_CUSTOM_NUM_1
  246. bool "UART1"
  247. endchoice
  248. config ESP_CONSOLE_UART_NUM
  249. int
  250. default 0 if ESP_CONSOLE_UART_DEFAULT
  251. default 0 if !ESP_CONSOLE_MULTIPLE_UART
  252. default 0 if ESP_CONSOLE_UART_CUSTOM_NUM_0
  253. default 1 if ESP_CONSOLE_UART_CUSTOM_NUM_1
  254. default -1 if !ESP_CONSOLE_UART
  255. config ESP_CONSOLE_UART_TX_GPIO
  256. int "UART TX on GPIO#"
  257. depends on ESP_CONSOLE_UART_CUSTOM
  258. range 0 46
  259. default 1 if IDF_TARGET_ESP32
  260. default 20 if IDF_TARGET_ESP32C2
  261. default 21 if IDF_TARGET_ESP32C3
  262. default 16 if IDF_TARGET_ESP32C6
  263. default 24 if IDF_TARGET_ESP32H2
  264. default 43
  265. help
  266. This GPIO is used for console UART TX output in the ESP-IDF Bootloader and the app (including
  267. boot log output and default standard output and standard error of the app).
  268. If the configuration is different in the Bootloader binary compared to the app binary, UART
  269. is reconfigured after the bootloader exits and the app starts.
  270. config ESP_CONSOLE_UART_RX_GPIO
  271. int "UART RX on GPIO#"
  272. depends on ESP_CONSOLE_UART_CUSTOM
  273. range 0 46
  274. default 3 if IDF_TARGET_ESP32
  275. default 19 if IDF_TARGET_ESP32C2
  276. default 20 if IDF_TARGET_ESP32C3
  277. default 17 if IDF_TARGET_ESP32C6
  278. default 23 if IDF_TARGET_ESP32H2
  279. default 44
  280. help
  281. This GPIO is used for UART RX input in the ESP-IDF Bootloader and the app (including
  282. default default standard input of the app).
  283. Note: The default ESP-IDF Bootloader configures this pin but doesn't read anything from the UART.
  284. If the configuration is different in the Bootloader binary compared to the app binary, UART
  285. is reconfigured after the bootloader exits and the app starts.
  286. config ESP_CONSOLE_UART_BAUDRATE
  287. int
  288. prompt "UART console baud rate" if ESP_CONSOLE_UART_CUSTOM
  289. depends on ESP_CONSOLE_UART
  290. default 74880 if (IDF_TARGET_ESP32C2 && XTAL_FREQ_26)
  291. default 115200
  292. range 1200 4000000 if !PM_ENABLE
  293. range 1200 1000000 if PM_ENABLE
  294. help
  295. This baud rate is used by both the ESP-IDF Bootloader and the app (including
  296. boot log output and default standard input/output/error of the app).
  297. The app's maximum baud rate depends on the UART clock source. If Power Management is disabled,
  298. the UART clock source is the APB clock and all baud rates in the available range will be sufficiently
  299. accurate. If Power Management is enabled, REF_TICK clock source is used so the baud rate is divided
  300. from 1MHz. Baud rates above 1Mbps are not possible and values between 500Kbps and 1Mbps may not be
  301. accurate.
  302. If the configuration is different in the Bootloader binary compared to the app binary, UART
  303. is reconfigured after the bootloader exits and the app starts.
  304. config ESP_CONSOLE_USB_CDC_RX_BUF_SIZE
  305. int "Size of USB CDC RX buffer"
  306. depends on ESP_CONSOLE_USB_CDC
  307. default 64
  308. range 4 16384
  309. help
  310. Set the size of USB CDC RX buffer. Increase the buffer size if your application
  311. is often receiving data over USB CDC.
  312. config ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF
  313. bool "Enable esp_rom_printf / ESP_EARLY_LOG via USB CDC"
  314. depends on ESP_CONSOLE_USB_CDC
  315. default n
  316. help
  317. If enabled, esp_rom_printf and ESP_EARLY_LOG output will also be sent over USB CDC.
  318. Disabling this option saves about 1kB or RAM.
  319. config ESP_INT_WDT
  320. bool "Interrupt watchdog"
  321. default y
  322. help
  323. This watchdog timer can detect if the FreeRTOS tick interrupt has not been called for a certain time,
  324. either because a task turned off interrupts and did not turn them on for a long time, or because an
  325. interrupt handler did not return. It will try to invoke the panic handler first and failing that
  326. reset the SoC.
  327. config ESP_INT_WDT_TIMEOUT_MS
  328. int "Interrupt watchdog timeout (ms)"
  329. depends on ESP_INT_WDT
  330. default 300 if !(SPIRAM && IDF_TARGET_ESP32)
  331. default 800 if (SPIRAM && IDF_TARGET_ESP32)
  332. range 10 10000
  333. help
  334. The timeout of the watchdog, in miliseconds. Make this higher than the FreeRTOS tick rate.
  335. config ESP_INT_WDT_CHECK_CPU1
  336. bool "Also watch CPU1 tick interrupt"
  337. depends on ESP_INT_WDT && !FREERTOS_UNICORE
  338. default y
  339. help
  340. Also detect if interrupts on CPU 1 are disabled for too long.
  341. config ESP_TASK_WDT_EN
  342. bool "Enable Task Watchdog Timer"
  343. default y
  344. select FREERTOS_ENABLE_TASK_SNAPSHOT
  345. help
  346. The Task Watchdog Timer can be used to make sure individual tasks are still
  347. running. Enabling this option will enable the Task Watchdog Timer. It can be
  348. either initialized automatically at startup or initialized after startup
  349. (see Task Watchdog Timer API Reference)
  350. config ESP_TASK_WDT_USE_ESP_TIMER
  351. # Software implementation of Task Watchdog, handy for targets with only a single
  352. # Timer Group, such as the ESP32-C2
  353. bool
  354. depends on ESP_TASK_WDT_EN
  355. default y if IDF_TARGET_ESP32C2
  356. default n if !IDF_TARGET_ESP32C2
  357. select ESP_TIMER_SUPPORTS_ISR_DISPATCH_METHOD
  358. config ESP_TASK_WDT_INIT
  359. bool "Initialize Task Watchdog Timer on startup"
  360. depends on ESP_TASK_WDT_EN
  361. default y
  362. help
  363. Enabling this option will cause the Task Watchdog Timer to be initialized
  364. automatically at startup.
  365. config ESP_TASK_WDT_PANIC
  366. bool "Invoke panic handler on Task Watchdog timeout"
  367. depends on ESP_TASK_WDT_INIT
  368. default n
  369. help
  370. If this option is enabled, the Task Watchdog Timer will be configured to
  371. trigger the panic handler when it times out. This can also be configured
  372. at run time (see Task Watchdog Timer API Reference)
  373. config ESP_TASK_WDT_TIMEOUT_S
  374. int "Task Watchdog timeout period (seconds)"
  375. depends on ESP_TASK_WDT_INIT
  376. range 1 60
  377. default 5
  378. help
  379. Timeout period configuration for the Task Watchdog Timer in seconds.
  380. This is also configurable at run time (see Task Watchdog Timer API Reference)
  381. config ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0
  382. bool "Watch CPU0 Idle Task"
  383. depends on ESP_TASK_WDT_INIT
  384. default y
  385. help
  386. If this option is enabled, the Task Watchdog Timer will watch the CPU0
  387. Idle Task. Having the Task Watchdog watch the Idle Task allows for detection
  388. of CPU starvation as the Idle Task not being called is usually a symptom of
  389. CPU starvation. Starvation of the Idle Task is detrimental as FreeRTOS household
  390. tasks depend on the Idle Task getting some runtime every now and then.
  391. config ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1
  392. bool "Watch CPU1 Idle Task"
  393. depends on ESP_TASK_WDT_INIT && !FREERTOS_UNICORE
  394. default y
  395. help
  396. If this option is enabled, the Task Watchdog Timer will wach the CPU1
  397. Idle Task.
  398. config ESP_XT_WDT
  399. bool "Initialize XTAL32K watchdog timer on startup"
  400. depends on !IDF_TARGET_ESP32 && (ESP_SYSTEM_RTC_EXT_OSC || ESP_SYSTEM_RTC_EXT_XTAL)
  401. default n
  402. help
  403. This watchdog timer can detect oscillation failure of the XTAL32K_CLK. When such a failure
  404. is detected the hardware can be set up to automatically switch to BACKUP32K_CLK and generate
  405. an interrupt.
  406. config ESP_XT_WDT_TIMEOUT
  407. int "XTAL32K watchdog timeout period"
  408. depends on ESP_XT_WDT
  409. range 1 255
  410. default 200
  411. help
  412. Timeout period configuration for the XTAL32K watchdog timer based on RTC_CLK.
  413. config ESP_XT_WDT_BACKUP_CLK_ENABLE
  414. bool "Automatically switch to BACKUP32K_CLK when timer expires"
  415. depends on ESP_XT_WDT
  416. default y
  417. help
  418. Enable this to automatically switch to BACKUP32K_CLK as the source of RTC_SLOW_CLK when
  419. the watchdog timer expires.
  420. config ESP_PANIC_HANDLER_IRAM
  421. bool "Place panic handler code in IRAM"
  422. default n
  423. help
  424. If this option is disabled (default), the panic handler code is placed in flash not IRAM.
  425. This means that if ESP-IDF crashes while flash cache is disabled, the panic handler will
  426. automatically re-enable flash cache before running GDB Stub or Core Dump. This adds some minor
  427. risk, if the flash cache status is also corrupted during the crash.
  428. If this option is enabled, the panic handler code (including required UART functions) is placed
  429. in IRAM. This may be necessary to debug some complex issues with crashes while flash cache is
  430. disabled (for example, when writing to SPI flash) or when flash cache is corrupted when an exception
  431. is triggered.
  432. config ESP_DEBUG_STUBS_ENABLE
  433. bool "OpenOCD debug stubs"
  434. default COMPILER_OPTIMIZATION_LEVEL_DEBUG
  435. depends on !ESP32_TRAX && !ESP32S2_TRAX && !ESP32S3_TRAX
  436. help
  437. Debug stubs are used by OpenOCD to execute pre-compiled onboard code
  438. which does some useful debugging stuff, e.g. GCOV data dump.
  439. config ESP_DEBUG_OCDAWARE
  440. bool "Make exception and panic handlers JTAG/OCD aware"
  441. default y
  442. select FREERTOS_DEBUG_OCDAWARE
  443. help
  444. The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
  445. instead of panicking, have the debugger stop on the offending instruction.
  446. choice ESP_SYSTEM_CHECK_INT_LEVEL
  447. prompt "Interrupt level to use for Interrupt Watchdog and other system checks"
  448. default ESP_SYSTEM_CHECK_INT_LEVEL_4
  449. help
  450. Interrupt level to use for Interrupt Watchdog and other system checks.
  451. config ESP_SYSTEM_CHECK_INT_LEVEL_5
  452. bool "Level 5 interrupt"
  453. depends on IDF_TARGET_ESP32
  454. help
  455. Using level 5 interrupt for Interrupt Watchdog and other system checks.
  456. config ESP_SYSTEM_CHECK_INT_LEVEL_4
  457. bool "Level 4 interrupt"
  458. depends on !BTDM_CTRL_HLI
  459. help
  460. Using level 4 interrupt for Interrupt Watchdog and other system checks.
  461. endchoice
  462. # Insert chip-specific system config
  463. rsource "./port/soc/$IDF_TARGET/Kconfig.system"
  464. config ESP_SYSTEM_BROWNOUT_INTR
  465. bool
  466. default n
  467. help
  468. This config allows to trigger an interrupt when brownout detected. Software restart will be done
  469. at the end of the default callback.
  470. Two occasions need to restart the chip with interrupt so far.
  471. (1). For ESP32 version 1, brown-out reset function doesn't work (see ESP32 errata 3.4).
  472. So that we must restart from interrupt.
  473. (2). For special workflow, the chip needs do more things instead of restarting directly. This part
  474. needs to be done in callback function of interrupt.
  475. endmenu # ESP System Settings
  476. menu "IPC (Inter-Processor Call)"
  477. config ESP_IPC_TASK_STACK_SIZE
  478. int "Inter-Processor Call (IPC) task stack size"
  479. range 512 65536 if !APPTRACE_ENABLE
  480. range 2048 65536 if APPTRACE_ENABLE
  481. default 2048 if APPTRACE_ENABLE
  482. default 1280 if !APPTRACE_ENABLE && IDF_TARGET_ESP32S3
  483. default 1024
  484. help
  485. Configure the IPC tasks stack size. An IPC task runs on each core (in dual core mode), and allows for
  486. cross-core function calls. See IPC documentation for more details. The default IPC stack size should be
  487. enough for most common simple use cases. However, users can increase/decrease the stack size to their
  488. needs.
  489. config ESP_IPC_USES_CALLERS_PRIORITY
  490. bool "IPC runs at caller's priority"
  491. default y
  492. depends on !FREERTOS_UNICORE
  493. help
  494. If this option is not enabled then the IPC task will keep behavior same as prior to that of ESP-IDF v4.0,
  495. hence IPC task will run at (configMAX_PRIORITIES - 1) priority.
  496. config ESP_IPC_ISR_ENABLE
  497. bool
  498. default y if !FREERTOS_UNICORE
  499. help
  500. The IPC ISR feature is similar to the IPC feature except that the callback function is executed in the
  501. context of a High Priority Interrupt. The IPC ISR feature is itended for low latency execution of simple
  502. callbacks written in assembly on another CPU. Due to being run in a High Priority Interrupt, the assembly
  503. callbacks must be written with particular restrictions (see "IPC" and "High-Level Interrupt" docs for more
  504. details).
  505. endmenu # "IPC (Inter-Processor Call)