feat(soc): disable esp32s31 WFE feature at startup

This commit is contained in:
wuzhenghui
2026-06-15 10:31:06 +08:00
parent ce0fcbaa9a
commit 964511ca30
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ void ESP_SYSTEM_IRAM_ATTR call_start_cpu1(void)
esp_cpu_intr_set_mtvt_addr(&_mtvt_table);
#endif
#if SOC_CPU_SUPPORT_WFE
rv_utils_disable_wfe_mode();
esp_cpu_disable_wfe_mode();
#endif
ets_set_appcpu_boot_addr(0);
@@ -507,6 +507,10 @@ config SOC_CPU_HAS_FLEXIBLE_INTC
bool
default y
config SOC_CPU_SUPPORT_WFE
bool
default y
config SOC_INT_CLIC_SUPPORTED
bool
default y
@@ -173,6 +173,7 @@
#define SOC_CPU_CORES_NUM (2U)
#define SOC_CPU_INTR_NUM 32
#define SOC_CPU_HAS_FLEXIBLE_INTC 1
#define SOC_CPU_SUPPORT_WFE 1
#define SOC_INT_CLIC_SUPPORTED 1
#define SOC_INT_HW_NESTED_SUPPORTED 1 // Support for hardware interrupts nesting
#define SOC_BRANCH_PREDICTOR_SUPPORTED 1