Skip to content

Commit 2d1903c

Browse files
committed
Panic handler in RAM on debug builds only
We don't use it for opt builds, we just restart.
1 parent e0c6302 commit 2d1903c

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

ports/espressif/esp-idf-config/sdkconfig-debug.defaults

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CONFIG_COMPILER_OPTIMIZATION_SIZE=y
1414
# ESP System Settings
1515
#
1616
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
17+
CONFIG_ESP_PANIC_HANDLER_IRAM=y
1718
# end of ESP System Settings
1819

1920
# end of Component config

ports/espressif/esp-idf-config/sdkconfig.defaults

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ CONFIG_GPTIMER_ISR_IRAM_SAFE=y
3333
#
3434
CONFIG_ESP_MAIN_TASK_STACK_SIZE=16384
3535
# CONFIG_ESP_TASK_WDT_INIT is not set
36-
CONFIG_ESP_PANIC_HANDLER_IRAM=y
3736
# CONFIG_ESP_DEBUG_OCDAWARE is not set
3837
# end of ESP System Settings
3938

ports/espressif/tools/update_sdkconfig.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"CONFIG_HAL_DEFAULT_ASSERTION_LEVEL",
2626
"CONFIG_BOOTLOADER_LOG_LEVEL",
2727
"LOG_DEFAULT_LEVEL",
28+
"CONFIG_ESP_PANIC_HANDLER_IRAM",
2829
]
2930

3031
TARGET_SETTINGS = [

0 commit comments

Comments
 (0)