summaryrefslogtreecommitdiffstats
path: root/bsps/arm/stm32h7/start/mpu-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/arm/stm32h7/start/mpu-config.c')
-rw-r--r--bsps/arm/stm32h7/start/mpu-config.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/bsps/arm/stm32h7/start/mpu-config.c b/bsps/arm/stm32h7/start/mpu-config.c
index 8140e73c37..472acc3ffa 100644
--- a/bsps/arm/stm32h7/start/mpu-config.c
+++ b/bsps/arm/stm32h7/start/mpu-config.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
- * Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+ * Copyright (C) 2020 embedded brains GmbH & Co. KG
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -45,6 +45,13 @@ const ARMV7M_MPU_Region_config stm32h7_config_mpu_region [] = {
| 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,
.rasr = ARMV7M_MPU_RASR_AP(0x5)