fix(hal): fix LP WDT stage timeout and reset configuration for ESP32S31

This commit is contained in:
Marius Vikhammer
2026-04-28 12:10:23 +08:00
parent e17f46e240
commit 76983e48fc
8 changed files with 43 additions and 32 deletions
@@ -51,6 +51,10 @@ config ESP_ROM_WDT_INIT_PATCH
bool
default y
config ESP_ROM_WDT_CONFIG_STAGE_PATCH
bool
default y
config ESP_ROM_HAS_LP_ROM
bool
default y
@@ -18,6 +18,7 @@
#define ESP_ROM_HAS_HAL_SYSTIMER (1) // ROM has the implementation of Systimer HAL driver
#define ESP_ROM_HAS_LAYOUT_TABLE (1) // ROM has the layout table
#define ESP_ROM_WDT_INIT_PATCH (1) // ROM version does not configure the clock
#define ESP_ROM_WDT_CONFIG_STAGE_PATCH (1) // ROM rwdt_ll_config_stage is implemented erroneously on old silicon
#define ESP_ROM_HAS_LP_ROM (1) // ROM also has a LP ROM placed in LP memory
#define ESP_ROM_HAS_NEWLIB (1) // ROM has newlib (at least parts of it) functions included
#define ESP_ROM_HAS_NEWLIB_NANO_FORMAT (1) // ROM has the newlib nano version of formatting functions
@@ -67,6 +67,10 @@ config ESP_ROM_WDT_INIT_PATCH
bool
default y
config ESP_ROM_WDT_CONFIG_STAGE_PATCH
bool
default y
config ESP_ROM_HAS_NEWLIB
bool
default y
@@ -22,6 +22,7 @@
#define ESP_ROM_MULTI_HEAP_WALK_PATCH (1) // ROM does not contain the patch of multi_heap_walk()
#define ESP_ROM_HAS_LAYOUT_TABLE (1) // ROM has the layout table
#define ESP_ROM_WDT_INIT_PATCH (1) // ROM version does not configure the clock
#define ESP_ROM_WDT_CONFIG_STAGE_PATCH (1) // ROM rwdt_ll_config_stage is implemented erroneously
#define ESP_ROM_HAS_HEAP_TLSF (1) // ROM has the implementation of the tlsf and multi-heap library
#define ESP_ROM_HAS_NEWLIB (1) // ROM has newlib (at least parts of it) functions included
#define ESP_ROM_HAS_NEWLIB_NANO_FORMAT (1) // ROM has the newlib nano version of formatting functions