Skip to content

Commit 9766473

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

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
chosen {
1515
zephyr,console = &usart1;
1616
zephyr,shell-uart = &usart1;
17+
zephyr,flash = &flash0;
1718
zephyr,sram = &sram0;
1819
zephyr,sram1 = &sram2a;
1920
zephyr,sram2 = &sram2b;
@@ -63,3 +64,40 @@
6364
current-speed = <115200>;
6465
status = "ok";
6566
};
67+
68+
&flash0 {
69+
/*
70+
* For more information, see:
71+
* http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html
72+
*/
73+
partitions {
74+
compatible = "fixed-partitions";
75+
#address-cells = <1>;
76+
#size-cells = <1>;
77+
78+
/* Set all partitions with first 512K of flash */
79+
/* last 512K are reseved for M0 usage */
80+
81+
boot_partition: partition@0 {
82+
label = "mcuboot";
83+
reg = <0x00000000 0xc000>;
84+
};
85+
slot0_partition: partition@c000 {
86+
label = "image-0";
87+
reg = <0x0000C000 0x50000>;
88+
};
89+
slot1_partition: partition@60000 {
90+
label = "image-1";
91+
reg = <0x00060000 0x1000>;
92+
};
93+
scratch_partition: partition@70000 {
94+
label = "image-scratch";
95+
reg = <0x00070000 0x4000>;
96+
};
97+
storage_partition: partition@78000 {
98+
label = "storage";
99+
reg = <0x00078000 0x4000>;
100+
};
101+
102+
};
103+
};

dts/bindings/flash_controller/st,stm32wb-flash-controller.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ properties:
1616
type: boolean
1717
description: dual-bank mode not enabled (page erase 4096k)
1818
generation: define
19-
category: optionnal
19+
category: optional
2020

2121
dual-bank:
2222
type: boolean
2323
description: dual-bank mode enabled (page erase 2048k)
2424
generation: define
25-
category: optionnal
25+
category: optional
2626
...

0 commit comments

Comments
 (0)