File tree Expand file tree Collapse file tree 14 files changed +226
-40
lines changed Expand file tree Collapse file tree 14 files changed +226
-40
lines changed Original file line number Diff line number Diff line change 19
19
zephyr,shell-uart = &usart2;
20
20
zephyr,sram = &sram0;
21
21
zephyr,flash = &flash0;
22
+ zephyr,code-partition = &slot0_partition;
22
23
};
23
24
24
25
leds: leds {
@@ -178,3 +179,32 @@ zephyr_udc0: &usb {
178
179
pinctrl-names = "default";
179
180
status = "okay";
180
181
};
182
+
183
+ &flash0 {
184
+ partitions {
185
+ compatible = "fixed-partitions";
186
+ #address-cells = <1>;
187
+ #size-cells = <1>;
188
+
189
+ boot_partition: partition@0 {
190
+ label = "mcuboot";
191
+ reg = <0x00000000 DT_SIZE_K(64)>;
192
+ };
193
+
194
+ slot0_partition: partition@10000 {
195
+ label = "image-0";
196
+ reg = <0x00010000 DT_SIZE_K(30)>;
197
+ };
198
+
199
+ slot1_partition: partition@17800 {
200
+ label = "image-1";
201
+ reg = <0x00017800 DT_SIZE_K(30)>;
202
+ };
203
+
204
+ /* Set 4KB of storage at the end of 128KB flash */
205
+ storage_partition: partition@1f000 {
206
+ label = "storage";
207
+ reg = <0x0001f000 DT_SIZE_K(4)>;
208
+ };
209
+ };
210
+ };
Original file line number Diff line number Diff line change 21
21
zephyr,sram = &sram0;
22
22
zephyr,flash = &flash0;
23
23
zephyr,canbus = &can1;
24
+ zephyr,code-partition = &slot0_partition;
24
25
};
25
26
26
27
leds: leds {
149
150
#address-cells = <1>;
150
151
#size-cells = <1>;
151
152
152
- /* Set 6Kb of storage at the end of the 256Kb of flash */
153
- storage_partition: partition@3e800 {
153
+ boot_partition: partition@0 {
154
+ label = "mcuboot";
155
+ reg = <0x00000000 DT_SIZE_K(64)>;
156
+ };
157
+
158
+ slot0_partition: partition@10000 {
159
+ label = "image-0";
160
+ reg = <0x00010000 DT_SIZE_K(94)>;
161
+ };
162
+
163
+ slot1_partition: partition@27800 {
164
+ label = "image-1";
165
+ reg = <0x00027800 DT_SIZE_K(94)>;
166
+ };
167
+
168
+ /* Set 4Kb of storage at the end of the 256Kb of flash */
169
+ storage_partition: partition@3f000 {
154
170
label = "storage";
155
- reg = <0x0003e800 DT_SIZE_K(6 )>;
171
+ reg = <0x0003f000 DT_SIZE_K(4 )>;
156
172
};
157
173
};
158
174
};
Original file line number Diff line number Diff line change 20
20
zephyr,shell-uart = &usart2;
21
21
zephyr,sram = &sram0;
22
22
zephyr,flash = &flash0;
23
+ zephyr,code-partition = &slot0_partition;
23
24
};
24
25
25
26
leds: leds {
167
168
#address-cells = <1>;
168
169
#size-cells = <1>;
169
170
171
+ boot_partition: partition@0 {
172
+ label = "mcuboot";
173
+ reg = <0x00000000 DT_SIZE_K(64)>;
174
+ };
175
+
176
+ slot0_partition: partition@10000 {
177
+ label = "image-0";
178
+ reg = <0x00010000 DT_SIZE_K(32)>;
179
+ };
180
+
181
+ slot1_partition: partition@18000 {
182
+ label = "image-1";
183
+ reg = <0x00018000 DT_SIZE_K(30)>;
184
+ };
185
+
170
186
/* Set 2KB of storage at the end of 128KB flash */
171
187
storage_partition: partition@1f800 {
172
188
label = "storage";
Original file line number Diff line number Diff line change 19
19
zephyr,shell-uart = &usart3;
20
20
zephyr,sram = &sram0;
21
21
zephyr,flash = &flash0;
22
+ zephyr,code-partition = &slot0_partition;
22
23
};
23
24
24
25
leds: leds {
Original file line number Diff line number Diff line change 28
28
zephyr,flash = &flash0;
29
29
zephyr,dtcm = &dtcm;
30
30
zephyr,canbus = &can1;
31
+ zephyr,code-partition = &slot0_partition;
31
32
};
32
33
33
34
leds: leds {
@@ -235,3 +236,31 @@ zephyr_udc0: &usbotg_fs {
235
236
&vbat {
236
237
status = "okay";
237
238
};
239
+
240
+ &flash0 {
241
+ partitions {
242
+ compatible = "fixed-partitions";
243
+ #address-cells = <1>;
244
+ #size-cells = <1>;
245
+
246
+ boot_partition: partition@0 {
247
+ label = "mcuboot";
248
+ reg = <0x00000000 DT_SIZE_K(64)>;
249
+ };
250
+
251
+ storage_partition: partition@10000 {
252
+ label = "storage";
253
+ reg = <0x00010000 DT_SIZE_K(192)>;
254
+ };
255
+
256
+ slot0_partition: partition@40000 {
257
+ label = "image-0";
258
+ reg = <0x00040000 DT_SIZE_K(448)>;
259
+ };
260
+
261
+ slot1_partition: partition@b0000 {
262
+ label = "image-1";
263
+ reg = <0x000b0000 DT_SIZE_K(320)>;
264
+ };
265
+ };
266
+ };
Original file line number Diff line number Diff line change 21
21
zephyr,shell-uart = &usart2;
22
22
zephyr,sram = &sram0;
23
23
zephyr,flash = &flash0;
24
+ zephyr,code-partition = &slot0_partition;
24
25
};
25
26
26
27
leds: leds {
171
172
#address-cells = <1>;
172
173
#size-cells = <1>;
173
174
175
+ boot_partition: partition@0 {
176
+ label = "mcuboot";
177
+ reg = <0x00000000 DT_SIZE_K(64)>;
178
+ };
179
+
180
+ slot0_partition: partition@10000 {
181
+ label = "image-0";
182
+ reg = <0x00010000 DT_SIZE_K(30)>;
183
+ };
184
+
185
+ slot1_partition: partition@17800 {
186
+ label = "image-1";
187
+ reg = <0x00017800 DT_SIZE_K(30)>;
188
+ };
189
+
174
190
/* Set 4KB of storage at the end of 128KB flash */
175
191
storage_partition: partition@1f000 {
176
192
label = "storage";
Original file line number Diff line number Diff line change @@ -177,17 +177,17 @@ stm32_lp_tick_source: &lptim1 {
177
177
178
178
boot_partition: partition@0 {
179
179
label = "mcuboot";
180
- reg = <0x00000000 DT_SIZE_K(34 )>;
180
+ reg = <0x00000000 DT_SIZE_K(64 )>;
181
181
};
182
182
183
- slot0_partition: partition@8800 {
183
+ slot0_partition: partition@10000 {
184
184
label = "image-0";
185
- reg = <0x00008800 DT_SIZE_K(240 )>;
185
+ reg = <0x000010000 DT_SIZE_K(192 )>;
186
186
};
187
187
188
- slot1_partition: partition@44800 {
188
+ slot1_partition: partition@40000 {
189
189
label = "image-1";
190
- reg = <0x00044800 DT_SIZE_K(234 )>;
190
+ reg = <0x00040000 DT_SIZE_K(192 )>;
191
191
};
192
192
193
193
/* Set 4Kb of storage at the end of the 512Kb of flash */
Original file line number Diff line number Diff line change @@ -252,28 +252,19 @@ zephyr_udc0: &usbotg_fs {
252
252
read-only;
253
253
};
254
254
255
- /* storage: 128KB for settings */
256
- storage_partition: partition@20000 {
257
- label = "storage";
258
- reg = <0x00020000 DT_SIZE_K(128)>;
259
- };
260
-
261
- /* application image slot: 256KB */
262
- slot0_partition: partition@40000 {
255
+ slot0_partition: partition@20000 {
263
256
label = "image-0";
264
- reg = <0x00040000 DT_SIZE_K(256 )>;
257
+ reg = <0x00020000 DT_SIZE_K(384 )>;
265
258
};
266
259
267
- /* backup slot: 256KB */
268
260
slot1_partition: partition@80000 {
269
261
label = "image-1";
270
- reg = <0x00080000 DT_SIZE_K(256 )>;
262
+ reg = <0x00080000 DT_SIZE_K(384 )>;
271
263
};
272
264
273
- /* swap slot: 128KB */
274
- scratch_partition: partition@c0000 {
275
- label = "image-scratch";
276
- reg = <0x000c0000 DT_SIZE_K(128)>;
265
+ storage_partition: partition@e0000 {
266
+ label = "storage";
267
+ reg = <0x000e0000 DT_SIZE_K(128)>;
277
268
};
278
269
};
279
270
};
Original file line number Diff line number Diff line change 21
21
zephyr,shell-uart = &usart2;
22
22
zephyr,sram = &sram0;
23
23
zephyr,flash = &flash0;
24
+ zephyr,code-partition = &slot0_partition;
24
25
};
25
26
26
27
leds: leds {
@@ -185,3 +186,32 @@ stm32_lp_tick_source: &lptim1 {
185
186
&vref {
186
187
status = "okay";
187
188
};
189
+
190
+ &flash0 {
191
+ partitions {
192
+ compatible = "fixed-partitions";
193
+ #address-cells = <1>;
194
+ #size-cells = <1>;
195
+
196
+ boot_partition: partition@0 {
197
+ label = "mcuboot";
198
+ reg = <0x00000000 DT_SIZE_K(64)>;
199
+ };
200
+
201
+ slot0_partition: partition@10000 {
202
+ label = "image-0";
203
+ reg = <0x00010000 DT_SIZE_K(64)>;
204
+ };
205
+
206
+ slot1_partition: partition@20000 {
207
+ label = "image-1";
208
+ reg = <0x00020000 DT_SIZE_K(62)>;
209
+ };
210
+
211
+ /* Set 2KB of storage at the end of 128KB flash */
212
+ storage_partition: partition@2f800 {
213
+ label = "storage";
214
+ reg = <0x0001f800 DT_SIZE_K(2)>;
215
+ };
216
+ };
217
+ };
Original file line number Diff line number Diff line change 20
20
zephyr,shell-uart = &usart2;
21
21
zephyr,sram = &sram0;
22
22
zephyr,flash = &flash0;
23
+ zephyr,code-partition = &slot0_partition;
23
24
};
24
25
25
26
leds: leds {
147
148
#address-cells = <1>;
148
149
#size-cells = <1>;
149
150
151
+ boot_partition: partition@0 {
152
+ label = "mcuboot";
153
+ reg = <0x00000000 DT_SIZE_K(64)>;
154
+ };
155
+
156
+ slot0_partition: partition@10000 {
157
+ label = "image-0";
158
+ reg = <0x00010000 DT_SIZE_K(220)>;
159
+ };
160
+
161
+ slot1_partition: partition@47000 {
162
+ label = "image-1";
163
+ reg = <0x00047000 DT_SIZE_K(220)>;
164
+ };
165
+
150
166
/* Set 8KB of storage at the end of 512KB flash */
151
167
storage_partition: partition@7e000 {
152
168
label = "storage";
You can’t perform that action at this time.
0 commit comments