Skip to content

Commit 2eaf99e

Browse files
nordicjmeivindj-nordic
authored andcommitted
boards: nordic: bm_nrf54l15dk: Reduce MCUboot partition size
Due to optimisations applied to MCUboot configuration, the size of the partition can be reduced to 31KiB which allows memory protection to be applied to the section using a single protection region, and even with logs enabled there is still spare space available in the slot Signed-off-by: Jamie McCrae <[email protected]>
1 parent 5240b83 commit 2eaf99e

6 files changed

+27
-21
lines changed

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l05_cpuapp_s115_softdevice_mcuboot.dts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848

4949
boot_partition: partition@0 {
5050
label = "boot";
51-
reg = <0x00000000 DT_SIZE_K(36)>;
51+
reg = <0x00000000 DT_SIZE_K(31)>;
5252
};
5353

54-
storage_partition: partition@9000 {
54+
storage_partition: partition@7c00 {
5555
compatible = "fixed-subpartitions";
5656
label = "storage";
57-
reg = <0x00009000 DT_SIZE_K(8)>;
58-
ranges = <0x0 0x9000 DT_SIZE_K(8)>;
57+
reg = <0x00007c00 DT_SIZE_K(8)>;
58+
ranges = <0x0 0x7c00 DT_SIZE_K(8)>;
5959
#address-cells = <1>;
6060
#size-cells = <1>;
6161

@@ -70,9 +70,11 @@
7070
};
7171
};
7272

73-
slot0_partition: partition@b000 {
73+
/* Area from 0x9c00 to 0xa000 is unused due to alignment */
74+
75+
slot0_partition: partition@a000 {
7476
label = "slot0";
75-
reg = <0x0000b000 DT_SIZE_K(282)>;
77+
reg = <0x0000a000 DT_SIZE_K(286)>;
7678
};
7779

7880
slot1_partition: partition@51800 {

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l05_cpuapp_s115_softdevice_mcuboot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ toolchain:
1414
- zephyr
1515
sysbuild: true
1616
ram: 78
17-
flash: 282
17+
flash: 286

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l10_cpuapp_s115_softdevice_mcuboot.dts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848

4949
boot_partition: partition@0 {
5050
label = "boot";
51-
reg = <0x00000000 DT_SIZE_K(36)>;
51+
reg = <0x00000000 DT_SIZE_K(31)>;
5252
};
5353

54-
storage_partition: partition@9000 {
54+
storage_partition: partition@7c00 {
5555
compatible = "fixed-subpartitions";
5656
label = "storage";
57-
reg = <0x00009000 DT_SIZE_K(8)>;
58-
ranges = <0x0 0x9000 DT_SIZE_K(8)>;
57+
reg = <0x00007c00 DT_SIZE_K(8)>;
58+
ranges = <0x0 0x7c00 DT_SIZE_K(8)>;
5959
#address-cells = <1>;
6060
#size-cells = <1>;
6161

@@ -70,9 +70,11 @@
7070
};
7171
};
7272

73-
slot0_partition: partition@b000 {
73+
/* Area from 0x9c00 to 0xa000 is unused due to alignment */
74+
75+
slot0_partition: partition@a000 {
7476
label = "slot0";
75-
reg = <0x0000b000 DT_SIZE_K(794)>;
77+
reg = <0x0000a000 DT_SIZE_K(798)>;
7678
};
7779

7880
slot1_partition: partition@d1800 {

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l10_cpuapp_s115_softdevice_mcuboot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ toolchain:
1414
- zephyr
1515
sysbuild: true
1616
ram: 174
17-
flash: 794
17+
flash: 798

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l15_cpuapp_s115_softdevice_mcuboot.dts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848

4949
boot_partition: partition@0 {
5050
label = "boot";
51-
reg = <0x00000000 DT_SIZE_K(36)>;
51+
reg = <0x00000000 DT_SIZE_K(31)>;
5252
};
5353

54-
storage_partition: partition@9000 {
54+
storage_partition: partition@7c00 {
5555
compatible = "fixed-subpartitions";
5656
label = "storage";
57-
reg = <0x00009000 DT_SIZE_K(8)>;
58-
ranges = <0x0 0x9000 DT_SIZE_K(8)>;
57+
reg = <0x00007c00 DT_SIZE_K(8)>;
58+
ranges = <0x0 0x7c00 DT_SIZE_K(8)>;
5959
#address-cells = <1>;
6060
#size-cells = <1>;
6161

@@ -70,9 +70,11 @@
7070
};
7171
};
7272

73-
slot0_partition: partition@b000 {
73+
/* Area from 0x9c00 to 0xa000 is unused due to alignment */
74+
75+
slot0_partition: partition@a000 {
7476
label = "slot0";
75-
reg = <0x0000b000 DT_SIZE_K(1306)>;
77+
reg = <0x0000a000 DT_SIZE_K(1310)>;
7678
};
7779

7880
slot1_partition: partition@151800 {

boards/nordic/bm_nrf54l15dk/bm_nrf54l15dk_nrf54l15_cpuapp_s115_softdevice_mcuboot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ toolchain:
1414
- zephyr
1515
sysbuild: true
1616
ram: 238
17-
flash: 1306
17+
flash: 1310

0 commit comments

Comments
 (0)