From 030a5dcd970438748be9f7ed0db76e00a32ff900 Mon Sep 17 00:00:00 2001 From: Yilin Sun Date: Fri, 1 Sep 2023 01:05:55 +0800 Subject: [PATCH] MPU: Updated to 32MB flash region. Signed-off-by: Yilin Sun --- board/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/board.c b/board/board.c index 4775d4e..68f20c7 100644 --- a/board/board.c +++ b/board/board.c @@ -145,7 +145,7 @@ void BOARD_ConfigMPU(void) #if defined(XIP_EXTERNAL_FLASH) && (XIP_EXTERNAL_FLASH == 1) /* Region 3 setting: Memory with Normal type, not shareable, outer/inner write back. */ MPU->RBAR = ARM_MPU_RBAR(3, 0x60000000U); - MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_8MB); + MPU->RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_32MB); #endif /* Region 4 setting: Memory with Device type, not shareable, non-cacheable. */