mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-27 10:24:04 +00:00

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
15 lines
566 B
CMake
15 lines
566 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
if((IDF_TARGET STREQUAL "esp32s2") OR (IDF_TARGET STREQUAL "esp32c3") OR (IDF_TARGET STREQUAL "esp32s3"))
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
set(COMPONENTS main)
|
|
project(test_memprot)
|
|
|
|
target_link_libraries(${project_elf} PRIVATE
|
|
"-Wl,--wrap=esp_panic_handler"
|
|
"-Wl,--wrap=esp_panic_handler_feed_wdts"
|
|
"-Wl,--wrap=esp_panic_handler_enable_rtc_wdt"
|
|
"-Wl,--wrap=esp_panic_handler_increment_entry_count"
|
|
"-Wl,--wrap=esp_cpu_stall")
|
|
endif()
|