Skip to content

Commit f4b0642

Browse files
committed
boards: st: b_u585i_iot02a: ns: Redesign flash partitions
The current b_u585i_iot02a NS flash layout difficult the development of large applications. Since there is an external NOR memory which is already supported by tf-m, this proposes a layout reconfiguration which allows bigger bootloader, S and NS software. The firmware upgrade can safely use the external memory to perform FOTA upgrades. Signed-off-by: BUDKE Gerson Fernando <[email protected]>
1 parent 79ecb28 commit f4b0642

File tree

1 file changed

+35
-17
lines changed

1 file changed

+35
-17
lines changed

boards/st/b_u585i_iot02a/b_u585i_iot02a_stm32u585xx_ns.dts

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,44 +34,62 @@
3434

3535
/*
3636
* Following flash partition is compatible with requirements
37-
* given in TFM configuration given for current board.
38-
* It might require adjustment depending on evolutions on TFM.
37+
* given in TF-M configuration given for current board.
38+
*
39+
* It might require adjustment depending on evolutions on TF-M.
3940
*/
40-
4141
boot_partition: partition@0 {
4242
label = "mcuboot";
43-
reg = <0x00000000 DT_SIZE_K(224)>;
43+
reg = <0x00000000 DT_SIZE_K(384)>;
4444
read-only;
4545
};
4646

4747
/* Secure image primary slot */
48-
slot0_partition: partition@38000 {
48+
slot0_partition: partition@60000 {
4949
label = "image-0";
50-
reg = <0x00038000 DT_SIZE_K(384)>;
50+
reg = <0x00060000 DT_SIZE_K(512)>;
5151
};
5252

5353
/* Non-secure image primary slot */
54-
slot0_ns_partition: partition@98000 {
54+
slot0_ns_partition: partition@e0000 {
5555
label = "image-0-nonsecure";
56-
reg = <0x00098000 DT_SIZE_K(512)>;
56+
reg = <0x000e0000 DT_SIZE_K(1024)>;
57+
};
58+
59+
/* Internal Non Volatile Storage */
60+
storage_partition: partition@1e0000 {
61+
label = "storage";
62+
reg = <0x001e0000 DT_SIZE_K(128)>;
5763
};
64+
};
65+
};
66+
67+
&mx25lm51245 {
68+
69+
partitions {
70+
compatible = "fixed-partitions";
71+
#address-cells = <1>;
72+
#size-cells = <1>;
73+
74+
/*
75+
* The flash partition (0 and 1) are aligned
76+
* according to application image size in MCU flash.
77+
*/
5878

5979
/* Secure image secondary slot */
60-
slot1_partition: partition@118000 {
80+
slot1_partition: partition@0 {
6181
label = "image-1";
62-
reg = <0x00118000 DT_SIZE_K(384)>;
82+
reg = <0x00000000 DT_SIZE_K(512)>;
6383
};
6484

65-
/* Non-secure image secondary slot */
66-
slot1_ns_partition: partition@178000 {
85+
slot1_ns_partition: partition@80000 {
6786
label = "image-1-nonsecure";
68-
reg = <0x00178000 DT_SIZE_K(512)>;
87+
reg = <0x00080000 DT_SIZE_K(1024)>;
6988
};
7089

71-
/* Applicative Non Volatile Storage */
72-
storage_partition: partition@1f8000 {
73-
label = "storage";
74-
reg = <0x001f8000 DT_SIZE_K(16)>;
90+
external_partition: partition@e0000 {
91+
label = "external";
92+
reg = <0x000e0000 (DT_SIZE_M(64) - DT_SIZE_K(1024) - DT_SIZE_K(512))>;
7593
};
7694
};
7795
};

0 commit comments

Comments
 (0)