Skip to content

Commit f29e12a

Browse files
ahasztagmaciejpietras
authored andcommitted
samples: dfu: Add nrf54lm20b support to DFU samples
Add nrf54lm20dk/nrf54lm20b/cpuapp to Twister platform lists and board-specific overlays and sysbuild MCUboot configuration for single_slot, smp_svr, compressed_update, and mcuboot_with_encryption. Memory layout matches the existing nrf54lm20a definitions. Signed-off-by: Artur Hadasz <artur.hadasz@nordicsemi.no>
1 parent d9f1cc9 commit f29e12a

19 files changed

Lines changed: 346 additions & 0 deletions
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/delete-node/ &boot_partition;
8+
/delete-node/ &slot0_partition;
9+
/delete-node/ &slot1_partition;
10+
/delete-node/ &storage_partition;
11+
12+
&cpuapp_rram {
13+
partitions {
14+
compatible = "fixed-partitions";
15+
#address-cells = <1>;
16+
#size-cells = <1>;
17+
18+
boot_partition: partition@0 {
19+
label = "mcuboot";
20+
reg = <0x00000000 0x00010000>;
21+
};
22+
23+
slot0_partition: partition@10000 {
24+
label = "image-0";
25+
reg = <0x00010000 0x00123000>;
26+
};
27+
28+
slot1_partition: partition@133000 {
29+
label = "image-1";
30+
reg = <0x00133000 0x000a2000>;
31+
};
32+
33+
storage_partition: partition@1d5000 {
34+
label = "storage";
35+
reg = <0x001d5000 0x00010000>;
36+
};
37+
};
38+
};

samples/dfu/compressed_update/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ tests:
1919
- nrf5340dk/nrf5340/cpuapp
2020
- nrf54l15dk/nrf54l15/cpuapp
2121
- nrf54lm20dk/nrf54lm20a/cpuapp
22+
- nrf54lm20dk/nrf54lm20b/cpuapp
2223
- nrf54lv10dk/nrf54lv10a/cpuapp
2324
integration_platforms:
2425
- nrf52840dk/nrf52840
2526
- nrf5340dk/nrf5340/cpuapp
2627
- nrf54l15dk/nrf54l15/cpuapp
2728
- nrf54lm20dk/nrf54lm20a/cpuapp
29+
- nrf54lm20dk/nrf54lm20b/cpuapp
2830
- nrf54lv10dk/nrf54lv10a/cpuapp
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Ensure that the SPI NOR driver is disabled by default
8+
CONFIG_SPI_NOR=n
9+
10+
# TODO: below are not yet supported and need fixing
11+
CONFIG_FPROTECT=n
12+
13+
CONFIG_BOOT_WATCHDOG_FEED=n
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "../../../boards/nrf54lm20dk_nrf54lm20b_cpuapp.overlay"
2+
#include "../app.overlay"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/delete-node/ &boot_partition;
8+
/delete-node/ &slot0_partition;
9+
/delete-node/ &slot1_partition;
10+
11+
&cpuapp_rram {
12+
partitions {
13+
boot_partition: partition@0 {
14+
label = "mcuboot";
15+
reg = <0x0 DT_SIZE_K(72)>;
16+
};
17+
18+
slot0_partition: partition@12000 {
19+
label = "image-0";
20+
reg = <0x12000 DT_SIZE_K(916)>;
21+
};
22+
23+
slot1_partition: partition@f7000 {
24+
label = "image-1";
25+
reg = <0xf7000 DT_SIZE_K(916)>;
26+
};
27+
};
28+
};

samples/dfu/mcuboot_with_encryption/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ tests:
1313
platform_allow:
1414
- nrf54l15dk/nrf54l15/cpuapp
1515
- nrf54lm20dk/nrf54lm20a/cpuapp
16+
- nrf54lm20dk/nrf54lm20b/cpuapp
1617
- nrf54lv10dk/nrf54lv10a/cpuapp
1718
integration_platforms:
1819
- nrf54l15dk/nrf54l15/cpuapp
1920
- nrf54lm20dk/nrf54lm20a/cpuapp
21+
- nrf54lm20dk/nrf54lm20b/cpuapp
2022
- nrf54lv10dk/nrf54lv10a/cpuapp
2123

2224
sample.mcuboot_with_encryption.multicore:
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "../../../boards/nrf54lm20dk_nrf54lm20b_cpuapp.overlay"
8+
9+
/* Need to add this here as the app.overlay is not picked
10+
* with board overlay.
11+
*/
12+
13+
/ {
14+
chosen {
15+
zephyr,code-partition = &boot_partition;
16+
};
17+
};
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/delete-node/ &boot_partition;
8+
/delete-node/ &slot0_partition;
9+
/delete-node/ &slot1_partition;
10+
/delete-node/ &storage_partition;
11+
12+
&cpuapp_rram {
13+
reg = <0x0 DT_SIZE_K(1940)>;
14+
15+
partitions {
16+
boot_partition: partition@0 {
17+
label = "mcuboot";
18+
reg = <0x0 DT_SIZE_K(24)>;
19+
};
20+
21+
slot0_partition: partition@6000 {
22+
label = "image-0";
23+
reg = <0x6000 DT_SIZE_K(1784)>;
24+
};
25+
26+
slot1_partition: partition@1c4000 {
27+
label = "image-1";
28+
reg = <0x1c4000 DT_SIZE_K(116)>;
29+
};
30+
31+
storage_partition: partition@1e1000 {
32+
label = "storage";
33+
reg = <0x1e1000 DT_SIZE_K(16)>;
34+
};
35+
};
36+
};

samples/dfu/single_slot/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ tests:
2323
- nrf54h20dk/nrf54h20/cpuapp
2424
- nrf54lm20dk/nrf54lm20a/cpuapp
2525
- nrf54ls05dk/nrf54ls05b/cpuapp
26+
- nrf54lm20dk/nrf54lm20b/cpuapp
2627
integration_platforms:
2728
- nrf54l15dk/nrf54l15/cpuapp
2829
- nrf54h20dk/nrf54h20/cpuapp
2930
- nrf54lm20dk/nrf54lm20a/cpuapp
3031
- nrf54ls05dk/nrf54ls05b/cpuapp
32+
- nrf54lm20dk/nrf54lm20b/cpuapp
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "../../../boards/nrf54lm20dk_nrf54lm20b_cpuapp.overlay"

0 commit comments

Comments
 (0)