Skip to content

Commit 1f0a126

Browse files
committed
fix(supervisor): boards(b_u585i_iot02a): fix external flash syntax
The syntax which was used is outdated. The commit mirrors the configs which will be delivered in zephyr v.4.4. When that happens, this can be reduced to only container storage_partition node. Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
1 parent 61ec8e5 commit 1f0a126

1 file changed

Lines changed: 23 additions & 10 deletions

File tree

src/samples/supervisor/zephyr/boards/b_u585i_iot02a.overlay

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,29 @@
115115
};
116116
};
117117

118-
// 64MB external flash
119-
&mx25lm51245 { // -el "/usr/local/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/ExternalLoader/MX25LM51245G_STM32U585I-IOT02A.stldr"
120-
reg = <0x70000000 DT_SIZE_M(64)>;
121-
partitions {
122-
/delete-node/ partition;
123-
124-
/* Use the whole flash for the filesystem. */
125-
storage_partition: partition@0 {
126-
label = "user_data";
127-
reg = <0x00000000 DT_SIZE_M(64)>;
118+
&mx25lm51245 {
119+
reg = <0>;
120+
size = <DT_SIZE_M(512)>; /* 512 Megabits */
121+
#address-cells = <1>;
122+
#size-cells = <1>;
123+
124+
ranges = <0x0 0x70000000 DT_SIZE_M(64)>; /* Ext Flash mem-mapped to 0x70000000 */
125+
126+
ext_flash: ext-flash@0 {
127+
compatible = "soc-nv-flash";
128+
reg = <0x0 DT_SIZE_M(64)>;
129+
write-block-size = <1>;
130+
erase-block-size = <DT_SIZE_K(4)>;
131+
132+
partitions {
133+
compatible = "fixed-partitions";
134+
#address-cells = <1>;
135+
#size-cells = <1>;
136+
137+
/* Use the first partition from flash. */
138+
storage_partition: partition@0 {
139+
reg = <0x0 DT_SIZE_M(16)>;
140+
};
128141
};
129142
};
130143
};

0 commit comments

Comments
 (0)