Skip to content

Commit 1b1e047

Browse files
committed
dts: arm: stm32h7 MPU attribute for the external Memory
Define the MPU attribute to be ATTR_MPU_IO for the qspi region, starting at 0x90000000 of the stm32h7 serie. Signed-off-by: Francois Ramu <[email protected]>
1 parent 8b6b9ab commit 1b1e047

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dts/arm/st/h7/stm32h7.dtsi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@
4646
};
4747

4848
quadspi_memory: memory@90000000 {
49-
compatible = "zephyr,memory-region", "mmio-sram";
50-
reg = <0x90000000 DT_SIZE_M(256)>;
49+
compatible = "zephyr,memory-region";
50+
reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */
5151
zephyr,memory-region = "QSPI";
52-
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_EXTMEM) )>;
52+
/* The ATTR_MPU_EXTMEM attribut causing a MPU FAULT */
53+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO) )>;
5354
};
5455

5556
clocks {

0 commit comments

Comments
 (0)