feat(esp32s31): add reset reason and panic handler support

This commit is contained in:
Marius Vikhammer
2026-01-21 11:55:36 +08:00
parent 469ead652b
commit 8e2eb36b86
3 changed files with 36 additions and 15 deletions
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2010-2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2010-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -94,6 +94,12 @@ extern "C" {
#define RTC_MEMORY_CRC_REG RTC_CNTL_STORE7_REG
#define ROM_LOG_CTRL_REG RTC_XTAL_FREQ_REG
/* Reset reason hint register - same as RTC_ENTRY_ADDR_REG, can be used for both
* deep sleep wake stub entry address and reset reason hint, since wake stub
* is only used for deep sleep reset.
*/
#define RTC_RESET_CAUSE_REG RTC_ENTRY_ADDR_REG
// used to check if app core need hot boot in start.S
#define APP_CORE_BOOT_ADDR_REG LP_SYS_BOOT_ADDR_HP_CORE1_REG
// used to check if we need do software retention in start.S