Skip to content

Commit c961b3d

Browse files
committed
app: Fix overlay-pgps.overlay and overlay-memfault.overlay
Additional partition needs to be inside storage_partition so that TF-M sets it non-secure. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
1 parent 7cc258a commit c961b3d

2 files changed

Lines changed: 36 additions & 8 deletions

File tree

app/overlay-memfault.overlay

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
/ {
1010
chosen {
1111
nordic,memfault-coredump-partition = &memfault_coredump_partition;
12+
zephyr,settings_partition = &settings_storage_partition;
1213
};
1314
};
1415

1516
/delete-node/ &slot0_partition;
1617
/delete-node/ &slot1_partition;
18+
/delete-node/ &storage_partition;
1719

1820
&flash0 {
1921
partitions {
@@ -63,13 +65,25 @@
6365
};
6466
};
6567

66-
memfault_coredump_partition: partition@f9000 {
68+
storage_partition: partition@f9000 {
6769
compatible = "zephyr,mapped-partition";
68-
label = "memfault_coredump_partition";
69-
reg = <0xf9000 0x4000>;
70-
ranges = <0x0 0xf9000 0x4000>;
70+
label = "storage";
71+
reg = <0xf9000 0x7000>;
72+
ranges = <0x0 0xf9000 0x7000>;
7173
#address-cells = <1>;
7274
#size-cells = <1>;
75+
76+
memfault_coredump_partition: partition@0 {
77+
compatible = "zephyr,mapped-partition";
78+
label = "memfault_coredump_partition";
79+
reg = <0x0 0x4000>;
80+
};
81+
82+
settings_storage_partition: partition@4000 {
83+
compatible = "zephyr,mapped-partition";
84+
label = "settings-storage";
85+
reg = <0x4000 0x3000>;
86+
};
7387
};
7488
};
7589
};

app/overlay-pgps.overlay

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
/ {
1010
chosen {
1111
nordic,pgps_partition = &pgps_partition;
12+
zephyr,settings_partition = &settings_storage_partition;
1213
};
1314
};
1415

1516
/delete-node/ &slot0_partition;
1617
/delete-node/ &slot1_partition;
18+
/delete-node/ &storage_partition;
1719

1820
&flash0 {
1921
partitions {
@@ -63,13 +65,25 @@
6365
};
6466
};
6567

66-
pgps_partition: partition@e9000 {
68+
storage_partition: partition@e9000 {
6769
compatible = "zephyr,mapped-partition";
68-
label = "pgps";
69-
reg = <0xe9000 0x14000>;
70-
ranges = <0x0 0xe9000 0x14000>;
70+
label = "storage";
71+
reg = <0x000e9000 0x17000>;
72+
ranges = <0x0 0x000e9000 0x17000>;
7173
#address-cells = <1>;
7274
#size-cells = <1>;
75+
76+
pgps_partition: partition@0 {
77+
compatible = "zephyr,mapped-partition";
78+
label = "pgps";
79+
reg = <0x00000000 0x14000>;
80+
};
81+
82+
settings_storage_partition: partition@14000 {
83+
compatible = "zephyr,mapped-partition";
84+
label = "settings-storage";
85+
reg = <0x000014000 0x3000>;
86+
};
7387
};
7488
};
7589
};

0 commit comments

Comments
 (0)