Skip to content

Commit 8d9a738

Browse files
committed
soc: arm: stm32h7 defining a mpu region for the external NOR flash
Add the MPU_REGION_ENTRY for the NOR flash memory with STRONGLY_ORDERED_SHAREABLE attribute Signed-off-by: Francois Ramu <[email protected]>
1 parent f22d698 commit 8d9a738

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

soc/arm/st_stm32/stm32h7/mpu_regions.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include <zephyr/arch/arm/aarch32/cortex_m/arm_mpu_mem_cfg.h>
99

1010
static const struct arm_mpu_region mpu_regions[] = {
11+
MPU_REGION_ENTRY("XSPI", 0x90000000,
12+
REGION_RAM_NOCACHE_ATTR(REGION_64M)),
1113
MPU_REGION_ENTRY("FLASH", CONFIG_FLASH_BASE_ADDRESS,
1214
REGION_FLASH_ATTR(REGION_FLASH_SIZE)),
1315
MPU_REGION_ENTRY("SRAM", CONFIG_SRAM_BASE_ADDRESS,
@@ -20,7 +22,6 @@ static const struct arm_mpu_region mpu_regions[] = {
2022
{ (STRONGLY_ORDERED_SHAREABLE |
2123
REGION_512K |
2224
MPU_RASR_XN_Msk | P_RW_U_NA_Msk) }),
23-
2425
#if DT_NODE_HAS_STATUS(DT_NODELABEL(mac), okay)
2526
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sram3), okay)
2627
MPU_REGION_ENTRY("SRAM3_ETH_BUF",

0 commit comments

Comments
 (0)