summaryrefslogtreecommitdiff
path: root/core/cortex-m/mpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m/mpu.c')
-rw-r--r--core/cortex-m/mpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m/mpu.c b/core/cortex-m/mpu.c
index 8cdf4c9194..e49a8d533d 100644
--- a/core/cortex-m/mpu.c
+++ b/core/cortex-m/mpu.c
@@ -141,7 +141,7 @@ int mpu_protect_ram(void)
int mpu_lock_ro_flash(void)
{
return mpu_lock_region(REGION_FLASH_MEMORY, CONFIG_RO_MEM_OFF,
- CONFIG_FW_IMAGE_SIZE, MPU_ATTR_FLASH_MEMORY);
+ CONFIG_RO_SIZE, MPU_ATTR_FLASH_MEMORY);
}
int mpu_lock_rw_flash(void)