MPU: Updated to 32MB flash region.
continuous-integration/drone/push Build is passing Details

Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
Yilin Sun 2023-09-01 01:05:55 +08:00
parent 1ab233a36c
commit 030a5dcd97
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
1 changed files with 1 additions and 1 deletions

View File

@ -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. */