From faffbfb930b196a439c98c59913d2a8223fd9fdc Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Sat, 18 Nov 2023 16:04:08 +0100 Subject: [PATCH] ttwrplus: updated flash memory partitions --- platform/targets/ttwrplus/ttwrplus.dts | 53 +++++++++++++++++--------- 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/platform/targets/ttwrplus/ttwrplus.dts b/platform/targets/ttwrplus/ttwrplus.dts index ba2bc7cb..5ee058d1 100644 --- a/platform/targets/ttwrplus/ttwrplus.dts +++ b/platform/targets/ttwrplus/ttwrplus.dts @@ -258,34 +258,53 @@ #address-cells = <1>; #size-cells = <1>; - /* Reserve 64kB for the bootloader */ + /* Reserve 32kB for the bootloader */ boot_partition: partition@0 { - label = "mcuboot"; - reg = <0x00000000 0x00010000>; + label = "tinyuf2"; + reg = <0x00000000 0x00008000>; read-only; }; - /* Reserve 1024kB for the application in slot 0 */ + /* Reserve 4kB for the partition table */ + table_partition: partition@8000 { + label = "partition-table"; + reg = <0x00008000 0x00009000>; + }; + + /* Reserve 20kB for non-volatile storage */ + nvs_partition: partition@9000 { + label = "nvs"; + reg = <0x00009000 0x0000e000>; + }; + + /* Reserve 8kB for otadata partition */ + otadata_partition: partition@e000 { + label = "otadata"; + reg = <0x0000e000 0x00010000>; + }; + + /* Reserve 2048kB for ota_0 partition */ slot0_partition: partition@10000 { - label = "image-0"; - reg = <0x00010000 0x00100000>; + label = "ota_0"; + reg = <0x00010000 0x00210000>; }; - /* Reserve 1024kB for the application in slot 1 */ - slot1_partition: partition@110000 { - label = "image-1"; - reg = <0x00110000 0x00100000>; + /* Reserve 2048kB for ota_1 partition */ + slot1_partition: partition@210000 { + label = "ota_1"; + reg = <0x00210000 0x00410000>; }; - /* Reserve 256kB for the scratch partition */ - scratch_partition: partition@210000 { - label = "image-scratch"; - reg = <0x00210000 0x00040000>; + /* Reserve 256kB for uf2 partition */ + uf2_partition: partition@410000 { + label = "uf2"; + reg = <0x00410000 0x00450000>; }; - storage_partition: partition@250000 { - label = "storage"; - reg = <0x00250000 0x00006000>; + /* Reserve 11968kB for storage partition (ffat) */ + storage_partition: partition@450000 { + label = "ffat"; + reg = <0x00450000 0x00bb0000>; }; }; };