[PATCH 6/7] bsps/stm32h7: enable SDRAM 2 MPU region

Karel Gardas karel at functional.vision
Mon May 23 09:20:52 UTC 2022


Sponsored-By:	Precidata
---
 bsps/arm/stm32h7/start/mpu-config.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bsps/arm/stm32h7/start/mpu-config.c b/bsps/arm/stm32h7/start/mpu-config.c
index 8140e73c37..ce3c92ccb0 100644
--- a/bsps/arm/stm32h7/start/mpu-config.c
+++ b/bsps/arm/stm32h7/start/mpu-config.c
@@ -44,6 +44,13 @@ const ARMV7M_MPU_Region_config stm32h7_config_mpu_region [] = {
         | ARMV7M_MPU_RASR_AP(0x3)
         | ARMV7M_MPU_RASR_TEX(0x1) | ARMV7M_MPU_RASR_C | ARMV7M_MPU_RASR_B
         | ARMV7M_MPU_RASR_ENABLE,
+    }, {
+      .begin = stm32h7_memory_sdram_2_begin,
+      .end = stm32h7_memory_sdram_2_end,
+      .rasr = ARMV7M_MPU_RASR_XN
+        | ARMV7M_MPU_RASR_AP(0x3)
+        | ARMV7M_MPU_RASR_TEX(0x1) | ARMV7M_MPU_RASR_C | ARMV7M_MPU_RASR_B
+        | ARMV7M_MPU_RASR_ENABLE,
     }, {
       .begin = bsp_section_start_begin,
       .end = bsp_section_text_end,
-- 
2.25.1



More information about the devel mailing list