Skip to content

Commit 65cb5af

Browse files
ahasztagtomchy
authored andcommitted
samples: dfu: single_slot nrf54ls05 support
This commit adds support for the nrf54ls05dk/nrf54ls05b/cpuapp in the single_slot sample. Signed-off-by: Artur Hadasz <artur.hadasz@nordicsemi.no>
1 parent f15912e commit 65cb5af

6 files changed

Lines changed: 81 additions & 2 deletions

File tree

samples/dfu/single_slot/Kconfig.sysbuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ config PARTITION_MANAGER
88
default n
99

1010
config MCUBOOT_SIGNATURE_USING_KMU
11-
default y if SOC_SERIES_NRF54L
11+
default y if SOC_SERIES_NRF54L && !SOC_NRF54LS05B
1212

1313
config MCUBOOT_GENERATE_DEFAULT_KMU_KEYFILE
14-
default y if SOC_SERIES_NRF54L
14+
default y if SOC_SERIES_NRF54L && !SOC_NRF54LS05B
1515

1616
config MCUBOOT_IMAGES_ROM_END_OFFSET_AUTO
1717
default "single_slot;fw_loader_ipc_radio" if MCUBOOT_SIGN_MERGED_BINARY && SUPPORT_NETCORE
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(508)>;
14+
15+
partitions {
16+
boot_partition: partition@0 {
17+
label = "mcuboot";
18+
reg = <0x0 DT_SIZE_K(28)>;
19+
};
20+
21+
slot0_partition: partition@7000 {
22+
label = "image-0";
23+
reg = <0x7000 DT_SIZE_K(348)>;
24+
};
25+
26+
slot1_partition: partition@5e000 {
27+
label = "image-1";
28+
reg = <0x5e000 DT_SIZE_K(116)>;
29+
};
30+
31+
storage_partition: partition@7b000 {
32+
label = "storage";
33+
reg = <0x7b000 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
@@ -22,7 +22,9 @@ tests:
2222
- nrf54l15dk/nrf54l15/cpuapp
2323
- nrf54h20dk/nrf54h20/cpuapp
2424
- nrf54lm20dk/nrf54lm20a/cpuapp
25+
- nrf54ls05dk/nrf54ls05b/cpuapp
2526
integration_platforms:
2627
- nrf54l15dk/nrf54l15/cpuapp
2728
- nrf54h20dk/nrf54h20/cpuapp
2829
- nrf54lm20dk/nrf54lm20a/cpuapp
30+
- nrf54ls05dk/nrf54ls05b/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/nrf54ls05dk_nrf54ls05b_cpuapp.overlay"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CONFIG_FLASH=y
2+
CONFIG_MAIN_STACK_SIZE=10240
3+
CONFIG_FPROTECT=n
4+
5+
CONFIG_SERIAL=n
6+
CONFIG_CONSOLE=n
7+
CONFIG_UART_CONSOLE=n
8+
9+
CONFIG_NRF_OBERON=y
10+
CONFIG_BOOT_ECDSA_NRF_OBERON=y
11+
12+
CONFIG_NCS_BOOT_BANNER=n
13+
CONFIG_MCUBOOT_BOOT_BANNER=n
14+
CONFIG_BOOT_BANNER=n
15+
CONFIG_PRINTK=n
16+
CONFIG_MINIMAL_LIBC=y
17+
CONFIG_SYS_CLOCK_EXISTS=n
18+
CONFIG_GPIO=n
19+
20+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
21+
CONFIG_LTO=y
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+
#include "../../../boards/nrf54ls05dk_nrf54ls05b_cpuapp.overlay"
8+
9+
/ {
10+
chosen {
11+
zephyr,code-partition = &boot_partition;
12+
};
13+
};

0 commit comments

Comments
 (0)