From 939043ea8354e76df09b13f61ce3a220f3e4e741 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Thu, 6 Aug 2026 21:39:31 +0530 Subject: [PATCH] fix(bootloader_support): do not gate application region protection on bootloader config CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE is bootloader-scoped; disabling it must not strip the application's PMP/PMA configuration. The application now always applies region protection. --- components/bootloader_support/src/bootloader_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bootloader_support/src/bootloader_mem.c b/components/bootloader_support/src/bootloader_mem.c index 068ccdd955f..aed75e45a29 100644 --- a/components/bootloader_support/src/bootloader_mem.c +++ b/components/bootloader_support/src/bootloader_mem.c @@ -58,7 +58,7 @@ void bootloader_init_mem(void) } #endif -#if CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE +#if !BOOTLOADER_BUILD || CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE // protect memory region esp_cpu_configure_region_protection(); #endif