boards: stm32: use size helpers to describe size of storage partition

The goal of this commit is to update existing STM32 boards descriptions
to use these size "DT_SIZE" macros to enhance readability. To realize this
i used a python script, which will detect the STM32 Boards
/zephyr/board/arm, and then will update in the dts files the partition
description using "DT_SIZE_K" and "DT_SIZE_M" macros.
Check manually and modify in .overlay files in samples and tests.

Signed-off-by: TLIG Dhaou <dhaou.tlig-ext@st.com>
This commit is contained in:
TLIG Dhaou 2022-05-06 14:54:51 +02:00 committed by Maureen Helm
parent 523cd60a77
commit 4de1d01956
47 changed files with 134 additions and 134 deletions

View file

@ -150,7 +150,7 @@ zephyr_udc0: &usbotg_fs {
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00008000>; reg = <0x00000000 DT_SIZE_K(32)>;
read-only; read-only;
}; };
@ -162,15 +162,15 @@ zephyr_udc0: &usbotg_fs {
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
slot1_partition: partition@40000 { slot1_partition: partition@40000 {
label = "image-1"; label = "image-1";
reg = <0x00040000 0x00020000>; reg = <0x00040000 DT_SIZE_K(128)>;
}; };
scratch_partition: partition@60000 { scratch_partition: partition@60000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x00060000 0x00020000>; reg = <0x00060000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -180,7 +180,7 @@ arduino_i2c: &i2c1 {};
/* Set aside 32KiB for data at the end of the 192KiB flash */ /* Set aside 32KiB for data at the end of the 192KiB flash */
storage_partition: partition@28000 { storage_partition: partition@28000 {
label = "storage"; label = "storage";
reg = <0x00028000 0x00008000>; reg = <0x00028000 DT_SIZE_K(32)>;
}; };
}; };
}; };

View file

@ -171,7 +171,7 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
@ -182,20 +182,20 @@
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x0006C000>; reg = <0x00020000 DT_SIZE_K(432)>;
}; };
slot1_partition: partition@8c000 { slot1_partition: partition@8c000 {
label = "image-1"; label = "image-1";
reg = <0x0008C000 0x0006C000>; reg = <0x0008C000 DT_SIZE_K(432)>;
}; };
scratch_partition: partition@f8000 { scratch_partition: partition@f8000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x000F8000 0x00004000>; reg = <0x000F8000 DT_SIZE_K(16)>;
}; };
storage_partition: partition@fc000 { storage_partition: partition@fc000 {
label = "storage"; label = "storage";
reg = <0x000fc000 0x00004000>; reg = <0x000fc000 DT_SIZE_K(16)>;
}; };
}; };
}; };

View file

@ -39,23 +39,23 @@
*/ */
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x10000>; reg = <0x00000000 DT_SIZE_K(64)>;
}; };
slot0_partition: partition@10000 { slot0_partition: partition@10000 {
label = "image-0"; label = "image-0";
reg = <0x00010000 0x68000>; reg = <0x00010000 DT_SIZE_K(416)>;
}; };
slot1_partition: partition@78000 { slot1_partition: partition@78000 {
label = "image-1"; label = "image-1";
reg = <0x00078000 0x68000>; reg = <0x00078000 DT_SIZE_K(416)>;
}; };
scratch_partition: partition@e0000 { scratch_partition: partition@e0000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x000e0000 0x10000>; reg = <0x000e0000 DT_SIZE_K(64)>;
}; };
storage_partition: partition@f0000 { storage_partition: partition@f0000 {
label = "storage"; label = "storage";
reg = <0x000f0000 0x10000>; reg = <0x000f0000 DT_SIZE_K(64)>;
}; };
}; };

View file

@ -41,18 +41,18 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00034000>; reg = <0x00000000 DT_SIZE_K(208)>;
read-only; read-only;
}; };
/* Secure image primary slot */ /* Secure image primary slot */
slot0_partition: partition@34000 { slot0_partition: partition@34000 {
label = "image-0"; label = "image-0";
reg = <0x00034000 0x00040000>; reg = <0x00034000 DT_SIZE_K(256)>;
}; };
/* Non-secure image primary slot */ /* Non-secure image primary slot */
slot1_partition: partition@74000 { slot1_partition: partition@74000 {
label = "image-1-nonsecure"; label = "image-1-nonsecure";
reg = <0x00074000 0x00080000>; reg = <0x00074000 DT_SIZE_K(512)>;
}; };
/* /*
* The flash starting at 0xEA000 and ending at * The flash starting at 0xEA000 and ending at
@ -60,7 +60,7 @@
*/ */
storage_partition: partition@ea000 { storage_partition: partition@ea000 {
label = "storage"; label = "storage";
reg = <0x000ea000 0x00001000>; reg = <0x000ea000 DT_SIZE_K(4)>;
}; };
}; };
}; };

View file

@ -50,7 +50,7 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00008000>; reg = <0x00000000 DT_SIZE_K(32)>;
read-only; read-only;
}; };
@ -62,15 +62,15 @@
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
slot1_partition: partition@40000 { slot1_partition: partition@40000 {
label = "image-1"; label = "image-1";
reg = <0x00040000 0x00020000>; reg = <0x00040000 DT_SIZE_K(128)>;
}; };
scratch_partition: partition@60000 { scratch_partition: partition@60000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x00060000 0x00020000>; reg = <0x00060000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -51,7 +51,7 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00008000>; reg = <0x00000000 DT_SIZE_K(32)>;
read-only; read-only;
}; };
@ -63,15 +63,15 @@
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
slot1_partition: partition@40000 { slot1_partition: partition@40000 {
label = "image-1"; label = "image-1";
reg = <0x00040000 0x00020000>; reg = <0x00040000 DT_SIZE_K(128)>;
}; };
scratch_partition: partition@60000 { scratch_partition: partition@60000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x00060000 0x00020000>; reg = <0x00060000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -186,7 +186,7 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
@ -197,12 +197,12 @@
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x000D8000>; reg = <0x00020000 DT_SIZE_K(864)>;
}; };
scratch_partition: partition@f8000 { scratch_partition: partition@f8000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x000F8000 0x00004000>; reg = <0x000F8000 DT_SIZE_K(16)>;
}; };
}; };
}; };
@ -284,7 +284,7 @@ zephyr_udc0: &usbotg_fs {
slot1_partition: partition@0 { slot1_partition: partition@0 {
label = "image-1"; label = "image-1";
reg = <0x00000000 0x000d8000>; reg = <0x00000000 DT_SIZE_K(864)>;
}; };
storage_partition: partition@d8000 { storage_partition: partition@d8000 {

View file

@ -47,7 +47,7 @@
/* Set 6Kb of storage at the end of the 256Kb of flash */ /* Set 6Kb of storage at the end of the 256Kb of flash */
storage_partition: partition@3e800 { storage_partition: partition@3e800 {
label = "storage"; label = "storage";
reg = <0x0003e800 0x00001800>; reg = <0x0003e800 DT_SIZE_K(6)>;
}; };
}; };
}; };

View file

@ -132,11 +132,11 @@
product_info: partition@0 { product_info: partition@0 {
label = "product-info"; label = "product-info";
reg = <0x00000000 0x1000>; reg = <0x00000000 DT_SIZE_K(4)>;
}; };
led_das: partition@10000 { led_das: partition@10000 {
label = "led-das"; label = "led-das";
reg = <0x00001000 0x0000f000>; reg = <0x00001000 DT_SIZE_K(60)>;
}; };
}; };
}; };

View file

@ -192,7 +192,7 @@ grove_i2c: &i2c2 {};
/* 16KB (8x2kB pages) of storage at the end of the flash */ /* 16KB (8x2kB pages) of storage at the end of the flash */
storage_partition: partition@3c000 { storage_partition: partition@3c000 {
label = "storage"; label = "storage";
reg = <0x0003c000 0x00004000>; reg = <0x0003c000 DT_SIZE_K(16)>;
}; };
}; };
}; };

View file

@ -130,7 +130,7 @@
/* Set 6Kb of storage at the end of the 256Kb of flash */ /* Set 6Kb of storage at the end of the 256Kb of flash */
storage_partition: partition@3e800 { storage_partition: partition@3e800 {
label = "storage"; label = "storage";
reg = <0x0003e800 0x00001800>; reg = <0x0003e800 DT_SIZE_K(6)>;
}; };
}; };
}; };

View file

@ -137,7 +137,7 @@
/* Set 2KB of storage at the end of 128KB flash */ /* Set 2KB of storage at the end of 128KB flash */
storage_partition: partition@1f800 { storage_partition: partition@1f800 {
label = "storage"; label = "storage";
reg = <0x0001f800 0x00000800>; reg = <0x0001f800 DT_SIZE_K(2)>;
}; };
}; };
}; };

View file

@ -179,7 +179,7 @@ zephyr_udc0: &usbotg_fs {
*/ */
storage_partition: partition@e0000 { storage_partition: partition@e0000 {
label = "storage"; label = "storage";
reg = <0x000e0000 0x00020000>; reg = <0x000e0000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -126,7 +126,7 @@
/* Set 6Kb of storage at the end of the 64Kb of flash */ /* Set 6Kb of storage at the end of the 64Kb of flash */
storage_partition: partition@e800 { storage_partition: partition@e800 {
label = "storage"; label = "storage";
reg = <0x0000e800 0x00001800>; reg = <0x0000e800 DT_SIZE_K(6)>;
}; };
}; };
}; };

View file

@ -119,7 +119,7 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
@ -130,15 +130,15 @@
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
slot1_partition: partition@40000 { slot1_partition: partition@40000 {
label = "image-1"; label = "image-1";
reg = <0x00040000 0x00020000>; reg = <0x00040000 DT_SIZE_K(128)>;
}; };
scratch_partition: partition@60000 { scratch_partition: partition@60000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x00060000 0x00020000>; reg = <0x00060000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -119,7 +119,7 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
@ -130,20 +130,20 @@
*/ */
storage_partition: partition@10000 { storage_partition: partition@10000 {
label = "storage"; label = "storage";
reg = <0x00010000 0x00010000>; reg = <0x00010000 DT_SIZE_K(64)>;
}; };
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
slot1_partition: partition@40000 { slot1_partition: partition@40000 {
label = "image-1"; label = "image-1";
reg = <0x00040000 0x00020000>; reg = <0x00040000 DT_SIZE_K(128)>;
}; };
scratch_partition: partition@60000 { scratch_partition: partition@60000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x00060000 0x00020000>; reg = <0x00060000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -172,32 +172,32 @@ zephyr_udc0: &usbotg_fs {
/* 64KB for bootloader */ /* 64KB for bootloader */
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
/* storage: 64KB for settings */ /* storage: 64KB for settings */
storage_partition: partition@10000 { storage_partition: partition@10000 {
label = "storage"; label = "storage";
reg = <0x00010000 0x00010000>; reg = <0x00010000 DT_SIZE_K(64)>;
}; };
/* application image slot: 256KB */ /* application image slot: 256KB */
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00040000>; reg = <0x00020000 DT_SIZE_K(256)>;
}; };
/* backup slot: 256KB */ /* backup slot: 256KB */
slot1_partition: partition@60000 { slot1_partition: partition@60000 {
label = "image-1"; label = "image-1";
reg = <0x00060000 0x00040000>; reg = <0x00060000 DT_SIZE_K(256)>;
}; };
/* swap slot: 128KB */ /* swap slot: 128KB */
scratch_partition: partition@a0000 { scratch_partition: partition@a0000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x000a0000 0x00020000>; reg = <0x000a0000 DT_SIZE_K(128)>;
}; };
}; };

View file

@ -133,7 +133,7 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
@ -144,20 +144,20 @@
*/ */
storage_partition: partition@10000 { storage_partition: partition@10000 {
label = "storage"; label = "storage";
reg = <0x00010000 0x00010000>; reg = <0x00010000 DT_SIZE_K(64)>;
}; };
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
slot1_partition: partition@40000 { slot1_partition: partition@40000 {
label = "image-1"; label = "image-1";
reg = <0x00040000 0x00020000>; reg = <0x00040000 DT_SIZE_K(128)>;
}; };
scratch_partition: partition@60000 { scratch_partition: partition@60000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x00060000 0x00020000>; reg = <0x00060000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -181,7 +181,7 @@ zephyr_udc0: &usbotg_fs {
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
@ -192,20 +192,20 @@ zephyr_udc0: &usbotg_fs {
*/ */
storage_partition: partition@10000 { storage_partition: partition@10000 {
label = "storage"; label = "storage";
reg = <0x00010000 0x00010000>; reg = <0x00010000 DT_SIZE_K(64)>;
}; };
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
slot1_partition: partition@40000 { slot1_partition: partition@40000 {
label = "image-1"; label = "image-1";
reg = <0x00040000 0x00020000>; reg = <0x00040000 DT_SIZE_K(128)>;
}; };
scratch_partition: partition@60000 { scratch_partition: partition@60000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x00060000 0x00020000>; reg = <0x00060000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -200,7 +200,7 @@ zephyr_udc0: &usbotg_fs {
*/ */
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x0 0x00010000>; reg = <0x0 DT_SIZE_K(64)>;
read-only; read-only;
}; };
@ -211,7 +211,7 @@ zephyr_udc0: &usbotg_fs {
*/ */
storage_partition: partition@10000 { storage_partition: partition@10000 {
label = "storage"; label = "storage";
reg = <0x00010000 0x00010000>; reg = <0x00010000 DT_SIZE_K(64)>;
}; };
/* /*
@ -223,7 +223,7 @@ zephyr_udc0: &usbotg_fs {
*/ */
slot0_partition: partition@40000 { slot0_partition: partition@40000 {
label = "image-0"; label = "image-0";
reg = <0x00040000 0x000C0000>; reg = <0x00040000 DT_SIZE_K(768)>;
}; };
/* /*
@ -231,7 +231,7 @@ zephyr_udc0: &usbotg_fs {
*/ */
slot1_partition: partition@100000 { slot1_partition: partition@100000 {
label = "image-1"; label = "image-1";
reg = <0x00100000 0x000C0000>; reg = <0x00100000 DT_SIZE_K(768)>;
}; };
/* /*
@ -239,7 +239,7 @@ zephyr_udc0: &usbotg_fs {
*/ */
scratch_partition: partition@1C0000 { scratch_partition: partition@1C0000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x001C0000 0x00040000>; reg = <0x001C0000 DT_SIZE_K(256)>;
}; };
}; };
}; };

View file

@ -160,7 +160,7 @@
/* Set 2KB of storage at the end of 128KB flash */ /* Set 2KB of storage at the end of 128KB flash */
storage_partition: partition@1f800 { storage_partition: partition@1f800 {
label = "storage"; label = "storage";
reg = <0x0001f800 0x00000800>; reg = <0x0001f800 DT_SIZE_K(2)>;
}; };
}; };
}; };

View file

@ -176,21 +176,21 @@ zephyr_udc0: &usb {
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x0000C000>; reg = <0x00000000 DT_SIZE_K(48)>;
read-only; read-only;
}; };
slot0_partition: partition@C000 { slot0_partition: partition@C000 {
label = "image-0"; label = "image-0";
reg = <0x0000C000 0x00032000>; reg = <0x0000C000 DT_SIZE_K(200)>;
}; };
slot1_partition: partition@3E000 { slot1_partition: partition@3E000 {
label = "image-1"; label = "image-1";
reg = <0x0003E000 0x00032000>; reg = <0x0003E000 DT_SIZE_K(200)>;
}; };
/* final 64KiB reserved for app storage partition */ /* final 64KiB reserved for app storage partition */
storage_partition: partition@70000 { storage_partition: partition@70000 {
label = "storage"; label = "storage";
reg = <0x00070000 0x00010000>; reg = <0x00070000 DT_SIZE_K(64)>;
}; };
}; };
}; };

View file

@ -140,7 +140,7 @@
/* Set 4Kb of storage at the end of the 128Kb of flash */ /* Set 4Kb of storage at the end of the 128Kb of flash */
storage_partition: partition@1f000 { storage_partition: partition@1f000 {
label = "storage"; label = "storage";
reg = <0x0001f000 0x00001000>; reg = <0x0001f000 DT_SIZE_K(4)>;
}; };
}; };
}; };

View file

@ -187,32 +187,32 @@ zephyr_udc0: &usbotg_fs {
/* 128KB for bootloader */ /* 128KB for bootloader */
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00020000>; reg = <0x00000000 DT_SIZE_K(128)>;
read-only; read-only;
}; };
/* storage: 128KB for settings */ /* storage: 128KB for settings */
storage_partition: partition@20000 { storage_partition: partition@20000 {
label = "storage"; label = "storage";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
/* application image slot: 256KB */ /* application image slot: 256KB */
slot0_partition: partition@40000 { slot0_partition: partition@40000 {
label = "image-0"; label = "image-0";
reg = <0x00040000 0x00040000>; reg = <0x00040000 DT_SIZE_K(256)>;
}; };
/* backup slot: 256KB */ /* backup slot: 256KB */
slot1_partition: partition@80000 { slot1_partition: partition@80000 {
label = "image-1"; label = "image-1";
reg = <0x00080000 0x00040000>; reg = <0x00080000 DT_SIZE_K(256)>;
}; };
/* swap slot: 128KB */ /* swap slot: 128KB */
scratch_partition: partition@c0000 { scratch_partition: partition@c0000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x000c0000 0x00020000>; reg = <0x000c0000 DT_SIZE_K(128)>;
}; };
}; };

View file

@ -177,32 +177,32 @@ zephyr_udc0: &usbotg_fs {
/* 128KB for bootloader */ /* 128KB for bootloader */
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00020000>; reg = <0x00000000 DT_SIZE_K(128)>;
read-only; read-only;
}; };
/* storage: 128KB for settings */ /* storage: 128KB for settings */
storage_partition: partition@20000 { storage_partition: partition@20000 {
label = "storage"; label = "storage";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
/* application image slot: 256KB */ /* application image slot: 256KB */
slot0_partition: partition@40000 { slot0_partition: partition@40000 {
label = "image-0"; label = "image-0";
reg = <0x00040000 0x00040000>; reg = <0x00040000 DT_SIZE_K(256)>;
}; };
/* backup slot: 256KB */ /* backup slot: 256KB */
slot1_partition: partition@80000 { slot1_partition: partition@80000 {
label = "image-1"; label = "image-1";
reg = <0x00080000 0x00040000>; reg = <0x00080000 DT_SIZE_K(256)>;
}; };
/* swap slot: 128KB */ /* swap slot: 128KB */
scratch_partition: partition@c0000 { scratch_partition: partition@c0000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x000c0000 0x00020000>; reg = <0x000c0000 DT_SIZE_K(128)>;
}; };
}; };

View file

@ -108,7 +108,7 @@
/* Set 2KB of storage at the end of 512KB flash */ /* Set 2KB of storage at the end of 512KB flash */
storage_partition: partition@7f800 { storage_partition: partition@7f800 {
label = "storage"; label = "storage";
reg = <0x0007f800 0x00000800>; reg = <0x0007f800 DT_SIZE_K(2)>;
}; };
}; };
}; };

View file

@ -129,7 +129,7 @@
*/ */
storage_partition: partition@1c276 { storage_partition: partition@1c276 {
label = "storage"; label = "storage";
reg = <0x0001c276 0x00004000>; reg = <0x0001c276 DT_SIZE_K(16)>;
}; };
}; };
}; };

View file

@ -118,7 +118,7 @@
*/ */
storage_partition: partition@3c000 { storage_partition: partition@3c000 {
label = "storage"; label = "storage";
reg = <0x0003c000 0x00004000>; reg = <0x0003c000 DT_SIZE_K(16)>;
}; };
}; };
}; };

View file

@ -135,7 +135,7 @@
*/ */
storage_partition: partition@3c000 { storage_partition: partition@3c000 {
label = "storage"; label = "storage";
reg = <0x0003c000 0x00004000>; reg = <0x0003c000 DT_SIZE_K(16)>;
}; };
}; };
}; };

View file

@ -188,7 +188,7 @@ zephyr_udc0: &usbotg_fs {
/* Reserve last 16KiB for property storage */ /* Reserve last 16KiB for property storage */
storage_partition: partition@1FB000 { storage_partition: partition@1FB000 {
label = "storage"; label = "storage";
reg = <0x001FB000 0x00004000>; reg = <0x001FB000 DT_SIZE_K(16)>;
}; };
}; };
}; };

View file

@ -204,23 +204,23 @@ zephyr_udc0: &usb {
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0xc000>; reg = <0x00000000 DT_SIZE_K(48)>;
}; };
slot0_partition: partition@c000 { slot0_partition: partition@c000 {
label = "image-0"; label = "image-0";
reg = <0x0000c000 0x5a000>; reg = <0x0000c000 DT_SIZE_K(360)>;
}; };
slot1_partition: partition@66000 { slot1_partition: partition@66000 {
label = "image-1"; label = "image-1";
reg = <0x00066000 0x5a000>; reg = <0x00066000 DT_SIZE_K(360)>;
}; };
scratch_partition: partition@c0000 { scratch_partition: partition@c0000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x000c0000 0x4000>; reg = <0x000c0000 DT_SIZE_K(16)>;
}; };
storage_partition: partition@c4000 { storage_partition: partition@c4000 {
label = "storage"; label = "storage";
reg = <0x000c4000 0x2000>; reg = <0x000c4000 DT_SIZE_K(8)>;
}; };
}; };

View file

@ -193,7 +193,7 @@
*/ */
storage_partition: partition@3c000 { storage_partition: partition@3c000 {
label = "storage"; label = "storage";
reg = <0x0003c000 0x00004000>; reg = <0x0003c000 DT_SIZE_K(16)>;
}; };
}; };
}; };

View file

@ -189,7 +189,7 @@ zephyr_udc0: &usbotg_fs {
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
@ -200,20 +200,20 @@ zephyr_udc0: &usbotg_fs {
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x0006C000>; reg = <0x00020000 DT_SIZE_K(432)>;
}; };
slot1_partition: partition@8c000 { slot1_partition: partition@8c000 {
label = "image-1"; label = "image-1";
reg = <0x0008C000 0x0006C000>; reg = <0x0008C000 DT_SIZE_K(432)>;
}; };
scratch_partition: partition@f8000 { scratch_partition: partition@f8000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x000F8000 0x00006000>; reg = <0x000F8000 DT_SIZE_K(24)>;
}; };
storage_partition: partition@fc000 { storage_partition: partition@fc000 {
label = "storage"; label = "storage";
reg = <0x000fc000 0x00004000>; reg = <0x000fc000 DT_SIZE_K(24)>;
}; };
}; };
}; };

View file

@ -92,7 +92,7 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00002000>; reg = <0x00000000 DT_SIZE_K(8)>;
read-only; read-only;
}; };
@ -103,15 +103,15 @@
slot0_partition: partition@4000 { slot0_partition: partition@4000 {
label = "image-0"; label = "image-0";
reg = <0x00004000 0x00004000>; reg = <0x00004000 DT_SIZE_K(16)>;
}; };
slot1_partition: partition@8000 { slot1_partition: partition@8000 {
label = "image-1"; label = "image-1";
reg = <0x00008000 0x00004000>; reg = <0x00008000 DT_SIZE_K(16)>;
}; };
scratch_partition: partition@c000 { scratch_partition: partition@c000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x0000C000 0x00004000>; reg = <0x0000C000 DT_SIZE_K(16)>;
}; };
}; };
}; };

View file

@ -182,7 +182,7 @@ zephyr_udc0: &usb {
/* Set 6Kb of storage at the end of the 256Kb of flash */ /* Set 6Kb of storage at the end of the 256Kb of flash */
storage_partition: partition@3e800 { storage_partition: partition@3e800 {
label = "storage"; label = "storage";
reg = <0x0003e800 0x00001800>; reg = <0x0003e800 DT_SIZE_K(6)>;
}; };
}; };
}; };

View file

@ -49,20 +49,20 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00010000>; reg = <0x00000000 DT_SIZE_K(64)>;
read-only; read-only;
}; };
slot0_partition: partition@20000 { slot0_partition: partition@20000 {
label = "image-0"; label = "image-0";
reg = <0x00020000 0x00020000>; reg = <0x00020000 DT_SIZE_K(128)>;
}; };
slot1_partition: partition@40000 { slot1_partition: partition@40000 {
label = "image-1"; label = "image-1";
reg = <0x00040000 0x00020000>; reg = <0x00040000 DT_SIZE_K(128)>;
}; };
scratch_partition: partition@60000 { scratch_partition: partition@60000 {
label = "image-scratch"; label = "image-scratch";
reg = <0x00060000 0x00020000>; reg = <0x00060000 DT_SIZE_K(128)>;
}; };
}; };
}; };

View file

@ -175,7 +175,7 @@ zephyr_udc0: &usbotg_fs {
slot1_partition: partition@0 { slot1_partition: partition@0 {
label = "image-1"; label = "image-1";
reg = <0x00000000 0x000a0000>; reg = <0x00000000 DT_SIZE_K(640)>;
}; };
storage_partition: partition@a0000 { storage_partition: partition@a0000 {

View file

@ -179,7 +179,7 @@ arduino_serial: &usart6 {};
slot1_partition: partition@0 { slot1_partition: partition@0 {
label = "image-1"; label = "image-1";
reg = <0x00000000 0x001a0000>; reg = <0x00000000 DT_SIZE_K(1664)>;
}; };
storage_partition: partition@1a0000 { storage_partition: partition@1a0000 {

View file

@ -91,7 +91,7 @@
/* Set 2KB of storage at the end of first 1MB flash */ /* Set 2KB of storage at the end of first 1MB flash */
storage_partition: partition@ff800 { storage_partition: partition@ff800 {
label = "storage"; label = "storage";
reg = <0x000ff800 0x00000800>; reg = <0x000ff800 DT_SIZE_K(2)>;
}; };
}; };
}; };

View file

@ -56,7 +56,7 @@
/* 2KB at the end of 512KB flash is set for storage */ /* 2KB at the end of 512KB flash is set for storage */
storage_partition: partition@7f800 { storage_partition: partition@7f800 {
label = "storage"; label = "storage";
reg = <0x0007f800 0x00000800>; reg = <0x0007f800 DT_SIZE_K(2)>;
}; };
}; };
}; };

View file

@ -41,7 +41,7 @@
partition@0 { partition@0 {
label = "storage"; label = "storage";
reg = <0x01000000 0x00800000>; reg = <0x01000000 DT_SIZE_M(8)>;
}; };
}; };
}; };

View file

@ -27,18 +27,18 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00019000>; reg = <0x00000000 DT_SIZE_K(100)>;
read-only; read-only;
}; };
/* Secure image primary slot */ /* Secure image primary slot */
slot0_partition: partition@19000 { slot0_partition: partition@19000 {
label = "image-0"; label = "image-0";
reg = <0x00019000 0x0003C000>; reg = <0x00019000 DT_SIZE_K(240)>;
}; };
/* Non-secure image primary slot */ /* Non-secure image primary slot */
slot1_partition: partition@55000 { slot1_partition: partition@55000 {
label = "image-1"; label = "image-1";
reg = <0x00055000 0x0002A000>; reg = <0x00055000 DT_SIZE_K(168)>;
}; };
/* /*
* The flash starting at 0x7F000 and ending at * The flash starting at 0x7F000 and ending at
@ -46,7 +46,7 @@
*/ */
storage_partition: partition@7f000 { storage_partition: partition@7f000 {
label = "storage"; label = "storage";
reg = <0x0007F000 0x00001000>; reg = <0x0007F000 DT_SIZE_K(4)>;
}; };
}; };
}; };

View file

@ -29,18 +29,18 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00014000>; reg = <0x00000000 DT_SIZE_K(80)>;
read-only; read-only;
}; };
/* Secure image primary slot */ /* Secure image primary slot */
slot0_partition: partition@14000 { slot0_partition: partition@14000 {
label = "image-0"; label = "image-0";
reg = <0x00014000 0x0002D000>; reg = <0x00014000 DT_SIZE_K(180)>;
}; };
/* Non-secure image primary slot */ /* Non-secure image primary slot */
slot1_partition: partition@41000 { slot1_partition: partition@41000 {
label = "image-1"; label = "image-1";
reg = <0x00041000 0x00009000>; reg = <0x00041000 DT_SIZE_K(36)>;
}; };
/* /*
* The flash starting at 0x7F000 and ending at * The flash starting at 0x7F000 and ending at
@ -48,7 +48,7 @@
*/ */
storage_partition: partition@7f000 { storage_partition: partition@7f000 {
label = "storage"; label = "storage";
reg = <0x0007F000 0x00001000>; reg = <0x0007F000 DT_SIZE_K(4)>;
}; };
}; };
}; };

View file

@ -27,18 +27,18 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00019000>; reg = <0x00000000 DT_SIZE_K(100)>;
read-only; read-only;
}; };
/* Secure image primary slot */ /* Secure image primary slot */
slot0_partition: partition@19000 { slot0_partition: partition@19000 {
label = "image-0"; label = "image-0";
reg = <0x00019000 0x0003C000>; reg = <0x00019000 DT_SIZE_K(240)>;
}; };
/* Non-secure image primary slot */ /* Non-secure image primary slot */
slot1_partition: partition@55000 { slot1_partition: partition@55000 {
label = "image-1"; label = "image-1";
reg = <0x00055000 0x0002A000>; reg = <0x00055000 DT_SIZE_K(168)>;
}; };
/* /*
* The flash starting at 0x7F000 and ending at * The flash starting at 0x7F000 and ending at
@ -46,7 +46,7 @@
*/ */
storage_partition: partition@7f000 { storage_partition: partition@7f000 {
label = "storage"; label = "storage";
reg = <0x0007F000 0x00001000>; reg = <0x0007F000 DT_SIZE_K(4)>;
}; };
}; };
}; };

View file

@ -27,18 +27,18 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00014000>; reg = <0x00000000 DT_SIZE_K(80)>;
read-only; read-only;
}; };
/* Secure image primary slot */ /* Secure image primary slot */
slot0_partition: partition@00014000 { slot0_partition: partition@00014000 {
label = "image-0"; label = "image-0";
reg = <0x00014000 0x0002A000>; reg = <0x00014000 DT_SIZE_K(168)>;
}; };
/* Non-secure image primary slot */ /* Non-secure image primary slot */
slot1_partition: partition@41000 { slot1_partition: partition@41000 {
label = "image-1"; label = "image-1";
reg = <0x00041000 0x00009000>; reg = <0x00041000 DT_SIZE_K(36)>;
}; };
/* /*
* The flash starting at 0x7F000 and ending at * The flash starting at 0x7F000 and ending at
@ -46,7 +46,7 @@
*/ */
storage_partition: partition@7F000 { storage_partition: partition@7F000 {
label = "storage"; label = "storage";
reg = <0x0007F000 0x00001000>; reg = <0x0007F000 DT_SIZE_K(4)>;
}; };
}; };
}; };

View file

@ -27,18 +27,18 @@
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 0x00019000>; reg = <0x00000000 DT_SIZE_K(100)>;
read-only; read-only;
}; };
/* Secure image primary slot */ /* Secure image primary slot */
slot0_partition: partition@19000 { slot0_partition: partition@19000 {
label = "image-0"; label = "image-0";
reg = <0x00019000 0x0003C000>; reg = <0x00019000 DT_SIZE_K(240)>;
}; };
/* Non-secure image primary slot */ /* Non-secure image primary slot */
slot1_partition: partition@55000 { slot1_partition: partition@55000 {
label = "image-1"; label = "image-1";
reg = <0x00055000 0x0002A000>; reg = <0x00055000 DT_SIZE_K(168)>;
}; };
/* /*
* The flash starting at 0x7F000 and ending at * The flash starting at 0x7F000 and ending at
@ -46,7 +46,7 @@
*/ */
storage_partition: partition@7f000 { storage_partition: partition@7f000 {
label = "storage"; label = "storage";
reg = <0x0007F000 0x00001000>; reg = <0x0007F000 DT_SIZE_K(4)>;
}; };
}; };
}; };