Skip to content

Commit 8b9ef67

Browse files
committed
dts: arm: st: h7rs: Add zephyr,memory-attr to SRAM1 and SRAM2 regions
adds the `zephyr,memory-attr` property to the SRAM1 and SRAM2 memory nodes to explicitly define their MPU attributes as normal RAM. This ensures proper memory protection and caching behavior when these regions are used by the kernel or application. Resolve a Data Access Violation encountered during test, where the faulting address was 0x30000000. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent b082bd1 commit 8b9ef67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dts/arm/st/h7rs/stm32h7rs.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@
6060
reg = <0x30000000 DT_SIZE_K(16)>;
6161
compatible = "zephyr,memory-region", "mmio-sram";
6262
zephyr,memory-region = "SRAM1";
63+
zephyr,memory-attr = <DT_MEM_ARM(ATTR_MPU_RAM)>;
6364
};
6465

6566
/* System data RAM accessible over AHB bus: SRAM2 in D2 domain */
6667
sram2: memory@30004000 {
6768
compatible = "zephyr,memory-region", "mmio-sram";
6869
reg = <0x30004000 DT_SIZE_K(16)>;
6970
zephyr,memory-region = "SRAM2";
71+
zephyr,memory-attr = <DT_MEM_ARM(ATTR_MPU_RAM)>;
7072
};
7173

7274
dtcm: memory@20000000 {

0 commit comments

Comments
 (0)