Skip to content

Commit 35bce9d

Browse files
Alain Volmathfruchet-st
authored andcommitted
boards: st: stm32n6570_dk: set mem attr in psram area
Add MEM_SW_ATTR on the PSRAM memory in order to have it become accessible via the mem_attr_heap framework. On this device since we need to allocate a rather large framebuffer, we can do that on the PSRAM memory. Signed-off-by: Alain Volmat <[email protected]>
1 parent b085c77 commit 35bce9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
compatible = "zephyr,memory-region";
4343
reg = <0x90000000 DT_SIZE_M(32)>;
4444
zephyr,memory-region = "PSRAM";
45-
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) )>;
45+
zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_RAM) | DT_MEM_SW_ALLOC_CACHE )>;
4646
};
4747

4848
leds: leds {

0 commit comments

Comments
 (0)