diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ba897c..682b3c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/assets/DEVEBOX_H750VB_QSPI.FLM b/assets/DEVEBOX_H750VB_QSPI.FLM index 1adf078..c17462b 100755 Binary files a/assets/DEVEBOX_H750VB_QSPI.FLM and b/assets/DEVEBOX_H750VB_QSPI.FLM differ diff --git a/board/board.c b/board/board.c index 466deee..a2e2322 100644 --- a/board/board.c +++ b/board/board.c @@ -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); } \ No newline at end of file diff --git a/xip/fire_stm32h750_pro_xip_config.c b/xip/devebox_h750vb_xip_config.c similarity index 100% rename from xip/fire_stm32h750_pro_xip_config.c rename to xip/devebox_h750vb_xip_config.c