Skip to content

Commit 03b575e

Browse files
authored
samples: subsys: nvs: stm32 overlays fixup. Don't try to delete storage partitions that doesn't exist anymore. (#39)
2 parents 3efa486 + f592914 commit 03b575e

File tree

4 files changed

+27
-35
lines changed

4 files changed

+27
-35
lines changed

zephyr/samples/profiles/b-ld/boards/nucleo_f429zi.overlay

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
/delete-node/ &storage_partition;
8-
97
&flash0 {
10-
partitions {
11-
/* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K
12-
* (nvs.h: uint16_t sector_size)
13-
*/
14-
storage_partition: partition@100000 {
15-
label = "storage";
16-
reg = <0x000100000 DT_SIZE_K(48)>;
17-
};
18-
};
8+
partitions {
9+
/* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K
10+
* (nvs.h: uint16_t sector_size)
11+
*/
12+
storage_partition: partition@100000 {
13+
label = "storage";
14+
reg = <0x000100000 DT_SIZE_K(48)>;
15+
};
16+
};
1917
};

zephyr/samples/profiles/b-ls/boards/nucleo_f429zi.overlay

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
/delete-node/ &storage_partition;
8-
97
&flash0 {
10-
partitions {
11-
/* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K
12-
* (nvs.h: uint16_t sector_size)
13-
*/
14-
storage_partition: partition@100000 {
15-
label = "storage";
16-
reg = <0x000100000 DT_SIZE_K(48)>;
17-
};
18-
};
8+
partitions {
9+
/* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K
10+
* (nvs.h: uint16_t sector_size)
11+
*/
12+
storage_partition: partition@100000 {
13+
label = "storage";
14+
reg = <0x000100000 DT_SIZE_K(48)>;
15+
};
16+
};
1917
};

zephyr/samples/profiles/b-sa/boards/nucleo_f429zi.overlay

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
/delete-node/ &storage_partition;
8-
97
&flash0 {
10-
partitions {
11-
/* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K
12-
* (nvs.h: uint16_t sector_size)
13-
*/
14-
storage_partition: partition@100000 {
15-
label = "storage";
16-
reg = <0x000100000 DT_SIZE_K(48)>;
17-
};
18-
};
8+
partitions {
9+
/* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K
10+
* (nvs.h: uint16_t sector_size)
11+
*/
12+
storage_partition: partition@100000 {
13+
label = "storage";
14+
reg = <0x000100000 DT_SIZE_K(48)>;
15+
};
16+
};
1917
};

zephyr/samples/profiles/b-ss/boards/nucleo_f429zi.overlay

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
/delete-node/ &storage_partition;
8-
97
&flash0 {
108
partitions {
119
/* Set 48KB of storage at the beginning of bank2 in order to have 3 sectors smaller than 32K

0 commit comments

Comments
 (0)