From 6f2d7083bbe04de95723842da0190b6e91005909 Mon Sep 17 00:00:00 2001 From: hebinglin Date: Fri, 13 Mar 2026 11:29:06 +0800 Subject: [PATCH] fix(esp_hw_support): reset lp mem privilege --- components/esp_hw_support/port/esp32h21/cpu_region_protect.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/esp_hw_support/port/esp32h21/cpu_region_protect.c b/components/esp_hw_support/port/esp32h21/cpu_region_protect.c index f4e54e3693..03aabcb981 100644 --- a/components/esp_hw_support/port/esp32h21/cpu_region_protect.c +++ b/components/esp_hw_support/port/esp32h21/cpu_region_protect.c @@ -63,6 +63,11 @@ static void esp_cpu_configure_invalid_regions(void) // 7. End of address space PMA_RESET_AND_ENTRY_SET_TOR(11, SOC_PERIPHERAL_HIGH, PMA_NONE); PMA_RESET_AND_ENTRY_SET_TOR(12, UINT32_MAX, PMA_TOR | PMA_NONE); + + // 8. Reset all unused pma entries in IDF + PMA_ENTRY_CFG_RESET(13); + PMA_ENTRY_CFG_RESET(14); + PMA_ENTRY_CFG_RESET(15); } void esp_cpu_configure_region_protection(void)