Skip to content

Commit a12dadb

Browse files
committed
samples: smp_svr: Add experimental support for external flash on nRF54H20
This commit adds external flash support for nRF54H20 smp_svr sample. This is an experimental feature and marked as DNM. Also, CONFIG_MCUMGR_GRP_IMG_ALLOW_CONFIRM_NON_ACTIVE_IMAGE_ANY is enabled to allow radio core image confirmation through MCUmgr commands. It is recommended to use this feature only in development - application should have means to test and confirm the image instead, for e.g. using boot_write_img_confirmed_multi() or boot_write_img_confirmed() (radio app confirming itself). Signed-off-by: Michal Kozikowski <[email protected]>
1 parent 71d2f82 commit a12dadb

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "../sysbuild/nrf54h20dk_nrf54h20_ext_flash.dtsi"

samples/zephyr/subsys/mgmt/mcumgr/smp_svr/sample.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,18 @@ tests:
4545
- nrf54h20dk/nrf54h20/cpuapp
4646
integration_platforms:
4747
- nrf54h20dk/nrf54h20/cpuapp
48+
sample.mcumgr.smp_svr.bt.nrf54h20dk.ext_flash:
49+
extra_args:
50+
- FILE_SUFFIX="ext_flash"
51+
- EXTRA_CONF_FILE="overlay-bt.conf"
52+
- mcuboot_CONFIG_MULTITHREADING=y
53+
- mcuboot_CONFIG_NRF_SECURITY=y
54+
- mcuboot_CONFIG_BOOT_IMG_HASH_DIRECTLY_ON_STORAGE=n
55+
- mcuboot_CONFIG_BOOT_MAX_IMG_SECTORS_AUTO=n
56+
- mcuboot_CONFIG_BOOT_MAX_IMG_SECTORS=512
57+
- mcuboot_CONFIG_FLASH_MSPI_NOR_LAYOUT_PAGE_SIZE=4096
58+
- SB_CONFIG_NETCORE_IPC_RADIO=y
59+
- SB_CONFIG_NETCORE_IPC_RADIO_BT_HCI_IPC=y
60+
- CONFIG_MCUMGR_GRP_IMG_ALLOW_CONFIRM_NON_ACTIVE_IMAGE_ANY=y
61+
platform_allow:
62+
- nrf54h20dk/nrf54h20/cpuapp
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "nrf54h20dk_nrf54h20_ext_flash.dtsi"
8+
9+
/ {
10+
chosen {
11+
zephyr,code-partition = &boot_partition;
12+
};
13+
};
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/delete-node/ &slot1_partition;
8+
/delete-node/ &slot3_partition;
9+
10+
/ {
11+
chosen {
12+
extmem-device = &mx25uw63;
13+
};
14+
};
15+
16+
&mx25uw63 {
17+
status = "okay";
18+
partitions {
19+
compatible = "fixed-partitions";
20+
#address-cells = <1>;
21+
#size-cells = <1>;
22+
23+
slot1_partition: partition@0 {
24+
label = "image-1";
25+
reg = <0x0 DT_SIZE_K(328)>;
26+
};
27+
28+
slot3_partition: partition@52000 {
29+
label = "image-3";
30+
reg = <0x52000 DT_SIZE_K(328)>;
31+
};
32+
};
33+
};
34+
35+
&gpio6 {
36+
status = "okay";
37+
};
38+
39+
&exmif {
40+
status = "okay";
41+
};

0 commit comments

Comments
 (0)