Skip to content

Commit 61ca5c8

Browse files
committed
boards: fix partition definitions
Ensure that Zephyr partition nodes are properly removed before redefining them in device tree overlays for various Arduino boards. Additionally: - use a single slot for the Nicla Sense ME; - correct partition sizes and addresses for the Arduino UNO Q; - cleaner definition of the user sketch partition for the Nano Matter; - fix removal of partition on the Giga. Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
1 parent 29b3ca9 commit 61ca5c8

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@
340340
};
341341

342342

343+
/delete-node/ &slot0_partition;
344+
343345
&flash0 {
344346
partitions {
345-
/delete-node/ slot0_partition;
346-
347347
slot0_partition: partition@40000 {
348348
label = "image-0";
349349
reg = <0x040000 0xa0000>;

variants/arduino_nano_matter_mgm240sd22vna/arduino_nano_matter_mgm240sd22vna.overlay

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
&flash0 {
2-
partitions {
3-
compatible = "fixed-partitions";
4-
#address-cells = <1>;
5-
#size-cells = <1>;
6-
7-
/* Arduino user sketch partition */
8-
user_sketch: partition@C4000 {
9-
reg = <0x000C4000 0x000B8000>;
10-
label = "user";
11-
};
12-
};
13-
};
1+
/* Arduino user sketch partition */
2+
user_sketch: &slot1_partition {};
143

154
/ {
165
zephyr,user {

variants/arduino_nicla_sense_me_nrf52832/arduino_nicla_sense_me_nrf52832.overlay

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
/delete-node/ &slot0_partition;
2+
/delete-node/ &slot1_partition;
3+
/delete-node/ &scratch_partition;
4+
/delete-node/ &storage_partition;
5+
16
&flash0 {
27
partitions {
8+
slot0_partition: partition@10000 {
9+
label = "image-0";
10+
reg = < 0x10000 0x60000 >;
11+
};
12+
313
user_sketch: partition@70000 {
414
label = "user";
515
reg = <0x070000 0x10000>;

variants/arduino_uno_q_stm32u585xx/arduino_uno_q_stm32u585xx.overlay

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,28 @@
5454
};
5555
*/
5656

57+
/delete-node/ &slot0_partition;
58+
/delete-node/ &slot1_partition;
59+
/delete-node/ &scratch_partition;
60+
/delete-node/ &storage_partition;
61+
5762
&flash0 {
5863
partitions {
59-
bootanimation: partition@90000 {
60-
reg = <0x090000 DT_SIZE_K(64)>;
64+
slot0_partition: partition@10000 {
65+
label = "image-0";
66+
reg = < 0x10000 DT_SIZE_K(768) >;
67+
};
68+
69+
bootanimation: partition@d0000 {
70+
reg = < 0xd0000 DT_SIZE_K(192) >;
6171
};
62-
user_sketch: partition@f0000 {
63-
reg = <0x0F0000 DT_SIZE_K(64)>;
72+
73+
user_sketch: partition@100000 {
74+
reg = < 0x100000 DT_SIZE_K(768) >;
75+
};
76+
77+
storage_partition: partition@1c0000 {
78+
reg = < 0x1c0000 DT_SIZE_K(256) >;
6479
};
6580
};
6681
};

0 commit comments

Comments
 (0)