Skip to content

Commit 926bf82

Browse files
kbidanidanieldegrasse
authored andcommitted
boards: st: nucleo_u385rg_q: add flash partition
Define fixed partitions for bootloader (mcuboot), primary and secondary images, and storage. Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
1 parent f02dc0d commit 926bf82

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

boards/st/nucleo_u385rg_q/nucleo_u385rg_q.dts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
zephyr,shell-uart = &usart1;
2020
zephyr,sram = &sram0;
2121
zephyr,flash = &flash0;
22+
zephyr,code-partition = &slot0_partition;
2223
};
2324

2425
leds: leds {
@@ -47,6 +48,39 @@
4748
};
4849
};
4950

51+
&flash0 {
52+
partitions {
53+
compatible = "fixed-partitions";
54+
#address-cells = <1>;
55+
#size-cells = <1>;
56+
57+
/*
58+
* The following partitioning is dedicated to the use of nucleo_u385rg_q
59+
* with TZEN=0 (i.e., without TF-M).
60+
* Place partitions within first 512 KiB to make use of the whole Bank1.
61+
*/
62+
boot_partition: partition@0 {
63+
label = "mcuboot";
64+
reg = <0x00000000 DT_SIZE_K(64)>;
65+
};
66+
67+
slot0_partition: partition@10000 {
68+
label = "image-0";
69+
reg = <0x00010000 DT_SIZE_K(192)>;
70+
};
71+
72+
slot1_partition: partition@40000 {
73+
label = "image-1";
74+
reg = <0x00040000 DT_SIZE_K(192)>;
75+
};
76+
77+
storage_partition: partition@70000 {
78+
label = "storage";
79+
reg = <0x00070000 DT_SIZE_K(64)>;
80+
};
81+
};
82+
};
83+
5084
&usart1 {
5185
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
5286
pinctrl-names = "default";

0 commit comments

Comments
 (0)