b562afa08e
This commit updates the following: - Updates the panic handler to use only the RTC WDT to reset the system. - Refactors some of the panic handler code. - Updates Bluetooth files where in they now feed the WDTs instead of reconfiguring them. - Removes some unnecessary configuration of WDTs from various files. - Added a unit test to verify that the system does not lock up when the panic handler is stuck. - Updates the memprot unit tests to work with the refactored panic handler. Closes https://github.com/espressif/esp-idf/issues/15166 Closes https://github.com/espressif/esp-idf/issues/15018 Closes https://github.com/espressif/esp-idf/issues/10110
24 lines
911 B
CMake
24 lines
911 B
CMake
set(srcs "test_app_main.c" "test_panic.c")
|
|
|
|
if(CONFIG_TEST_MEMPROT)
|
|
list(APPEND srcs "test_memprot.c")
|
|
if(CONFIG_SOC_MEMPROT_SUPPORTED)
|
|
if(CONFIG_IDF_TARGET_ARCH_XTENSA)
|
|
list(APPEND srcs "panic_utils/memprot_panic_utils_xtensa.c")
|
|
elseif(CONFIG_IDF_TARGET_ARCH_RISCV)
|
|
list(APPEND srcs "panic_utils/memprot_panic_utils_riscv.c")
|
|
endif()
|
|
endif()
|
|
else()
|
|
list(APPEND srcs "panic_utils/panic_utils.c")
|
|
endif()
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
INCLUDE_DIRS "include"
|
|
REQUIRES spi_flash esp_psram esp_system esp_partition
|
|
PRIV_REQUIRES esp_gdbstub espcoredump)
|
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-unused-variable"
|
|
"-Wno-infinite-recursion"
|
|
"-Wno-array-bounds")
|