Skip to content

Commit 893de7e

Browse files
committed
Fix memory attr for EXTMEM (otherwise code relocated in EXTMEM fails with an MPU fault)
Signed-off-by: Titouan Christophe <[email protected]>
1 parent fefa8c5 commit 893de7e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

boards/st/stm32h7s78_dk/stm32h7s78_dk.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "arduino_r3_connector.dtsi"
1111
#include <zephyr/dt-bindings/input/input-event-codes.h>
1212
#include <zephyr/dt-bindings/flash_controller/xspi.h>
13+
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
1314

1415
/ {
1516
model = "STMicroelectronics STM32H7S78 DISCOVERY KIT board";
@@ -63,6 +64,11 @@
6364
};
6465
};
6566

67+
&ext_memory {
68+
/* ATTR_MPU_EXTMEM is causing MPU FAULT */
69+
zephyr,memory-attr = <DT_MEM_ARM_MPU_IO>;
70+
};
71+
6672
&clk_hsi48 {
6773
status = "okay";
6874
};

0 commit comments

Comments
 (0)