Skip to content

Commit 672e834

Browse files
committed
boards: nucleo_wb55rg: Configure flash partitions
Configure flash partitions on nucleo_wb55rg Signed-off-by: Erwan Gouriou <[email protected]>
1 parent be9506c commit 672e834

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,41 @@ arduino_serial: &lpuart1 {
6767
current-speed = <115200>;
6868
status = "ok";
6969
};
70+
71+
&flash0 {
72+
/*
73+
* For more information, see:
74+
* http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html
75+
*/
76+
partitions {
77+
compatible = "fixed-partitions";
78+
#address-cells = <1>;
79+
#size-cells = <1>;
80+
81+
/* Set all partitions with first 812K of flash */
82+
/* last 212K are reseved for M0 usage */
83+
/* Configure partitions to make use of the whole 812K */
84+
85+
boot_partition: partition@0 {
86+
label = "mcuboot";
87+
reg = <0x00000000 0xc000>;
88+
};
89+
slot0_partition: partition@c000 {
90+
label = "image-0";
91+
reg = <0x0000C000 0x5b800>;
92+
};
93+
slot1_partition: partition@67800 {
94+
label = "image-1";
95+
reg = <0x00067800 0x5b800>;
96+
};
97+
scratch_partition: partition@c3000 {
98+
label = "image-scratch";
99+
reg = <0x000c3000 0x4000>;
100+
};
101+
storage_partition: partition@c7000 {
102+
label = "storage";
103+
reg = <0x000c7000 0x4000>;
104+
};
105+
106+
};
107+
};

0 commit comments

Comments
 (0)