|
20 | 20 | zephyr,shell-uart = &usart1; |
21 | 21 | zephyr,sram = &sram1; |
22 | 22 | zephyr,flash = &flash0; |
23 | | - zephyr,code-partition = &slot0_partition; |
24 | 23 | zephyr,canbus = &fdcan1; |
25 | 24 | }; |
26 | 25 |
|
|
192 | 191 | label = "mcuboot"; |
193 | 192 | reg = <0x00000000 DT_SIZE_K(64)>; |
194 | 193 | }; |
195 | | - slot0_partition: partition@10000 { |
196 | | - label = "image-0"; |
197 | | - reg = <0x00010000 DT_SIZE_K(416)>; |
198 | | - }; |
199 | | - slot1_partition: partition@78000 { |
200 | | - label = "image-1"; |
201 | | - reg = <0x00078000 DT_SIZE_K(416)>; |
202 | | - }; |
203 | | - scratch_partition: partition@e0000 { |
204 | | - label = "image-scratch"; |
205 | | - reg = <0x000e0000 DT_SIZE_K(64)>; |
206 | | - }; |
207 | | - /* Set 64KB of storage at the end of Bank1 */ |
208 | | - storage_partition: partition@f0000 { |
209 | | - label = "storage"; |
210 | | - reg = <0x000f0000 DT_SIZE_K(64)>; |
211 | | - }; |
212 | 194 | }; |
213 | 195 | }; |
214 | 196 |
|
|
283 | 265 | status = "okay"; |
284 | 266 |
|
285 | 267 | partitions { |
286 | | - compatible = "fixed-partitions"; |
287 | | - #address-cells = <1>; |
288 | | - #size-cells = <1>; |
289 | | - |
290 | | - partition@0 { |
291 | | - label = "nor"; |
292 | | - reg = <0x00000000 DT_SIZE_M(64)>; |
293 | | - }; |
| 268 | + compatible = "fixed-partitions"; |
| 269 | + #address-cells = <1>; |
| 270 | + #size-cells = <1>; |
| 271 | + |
| 272 | + slot0_partition: partition@0 { |
| 273 | + label = "image-0"; |
| 274 | + reg = <0x00000000 DT_SIZE_M(16)>; |
| 275 | + }; |
| 276 | + slot1_partition: partition@1000000 { |
| 277 | + label = "image-1"; |
| 278 | + reg = <0x01000000 DT_SIZE_M(16)>; |
| 279 | + }; |
| 280 | + scratch_partition: partition@2000000 { |
| 281 | + label = "image-scratch"; |
| 282 | + reg = <0x02000000 DT_SIZE_M(16)>; |
| 283 | + }; |
| 284 | + /* Set 64KB of storage at the end */ |
| 285 | + storage_partition: partition@3000000 { |
| 286 | + label = "storage"; |
| 287 | + reg = <0x03000000 DT_SIZE_M(16)>; |
| 288 | + }; |
294 | 289 | }; |
295 | 290 | }; |
296 | 291 | }; |
|
0 commit comments