Removed MPU region for SDRAM.

This commit is contained in:
Yilin Sun 2023-04-14 23:08:39 +08:00
parent 35609ce75a
commit e1093e5a09
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
4 changed files with 2 additions and 10 deletions

View File

@ -42,7 +42,7 @@ set(TARGET_SOURCES
"board/system_stm32h7xx.c"
"src/main.c"
"src/syscalls.c"
"xip/fire_stm32h750_pro_xip_config.c"
"xip/devebox_h750vb_xip_config.c"
)
set(TARGET_C_DEFINES
@ -52,7 +52,6 @@ set(TARGET_C_DEFINES
set(TARGET_C_DEFINES_QSPI
"XIP_BOOT_ENABLED"
"XIP_ENABLE_SDRAM"
)
set(TARGET_C_DEFINES_QSPI_SDRAM

Binary file not shown.

View File

@ -32,17 +32,10 @@ void BOARD_ConfigMPU(void) {
MPU_InitStruct.Number = MPU_REGION_NUMBER1;
MPU_InitStruct.BaseAddress = 0x90000000;
MPU_InitStruct.Size = MPU_REGION_SIZE_64MB;
MPU_InitStruct.Size = MPU_REGION_SIZE_8MB;
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;
HAL_MPU_ConfigRegion(&MPU_InitStruct);
MPU_InitStruct.Number = MPU_REGION_NUMBER2;
MPU_InitStruct.BaseAddress = 0xD0000000;
MPU_InitStruct.Size = MPU_REGION_SIZE_64MB;
MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;
MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
HAL_MPU_ConfigRegion(&MPU_InitStruct);
/* Enables the MPU */
HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
}