Skip to content

Commit f528302

Browse files
committed
samples: smp_svr: Extended zephyr sample for nrf54H20 + NSIB
The support for the sample with the nrf54h20dk/nrf54h20/cpuapp/iron/b0/mcuboot board was added. Signed-off-by: Artur Hadasz <[email protected]>
1 parent 54d9b23 commit f528302

File tree

5 files changed

+72
-0
lines changed

5 files changed

+72
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@
690690
/samples/zephyr/sensor/qdec/ @nrfconnect/ncs-low-level-test
691691
/samples/zephyr/subsys/settings/ @nrfconnect/ncs-low-level-test
692692
/samples/zephyr/subsys/usb/ @nrfconnect/ncs-low-level-test
693+
/samples/zephyr/subsys/mgmt/mcumgr/smp_svr/ @nrfconnect/ncs-charon
693694

694695
/samples/**/*.svg @nrfconnect/ncs-doc-leads
695696
/samples/**/*.png @nrfconnect/ncs-doc-leads
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+
cmake_minimum_required(VERSION 3.20.0)
8+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
9+
project(smp_svr)
10+
11+
target_sources(app PRIVATE ${ZEPHYR_BASE}/samples/subsys/mgmt/mcumgr/smp_svr/src/main.c)
12+
target_sources_ifdef(CONFIG_MCUMGR_TRANSPORT_BT app PRIVATE
13+
${ZEPHYR_BASE}/samples/subsys/mgmt/mcumgt/smp_svr/src/bluetooth.c)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This sample extends the same-named Zephyr sample to verify it
2+
with Nordic development kits.
3+
4+
Source code and basic configuration files can be found in the corresponding folder structure in
5+
zephyr/samples/subsys/mgmt/mcumgr/smp_svr.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Enable MCUmgr and dependencies.
2+
CONFIG_NET_BUF=y
3+
CONFIG_ZCBOR=y
4+
CONFIG_CRC=y
5+
CONFIG_MCUMGR=y
6+
CONFIG_STREAM_FLASH=y
7+
CONFIG_FLASH_MAP=y
8+
9+
# Some command handlers require a large stack.
10+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2304
11+
CONFIG_MAIN_STACK_SIZE=2176
12+
13+
# Ensure an MCUboot-compatible binary is generated.
14+
CONFIG_BOOTLOADER_MCUBOOT=y
15+
16+
# Enable flash operations.
17+
CONFIG_FLASH=y
18+
19+
# Required by the `taskstat` command.
20+
CONFIG_THREAD_MONITOR=y
21+
22+
# Support for taskstat command
23+
CONFIG_MCUMGR_GRP_OS_TASKSTAT=y
24+
25+
# Enable statistics and statistic names.
26+
CONFIG_STATS=y
27+
CONFIG_STATS_NAMES=y
28+
29+
# Enable most core commands.
30+
CONFIG_FLASH=y
31+
CONFIG_IMG_MANAGER=y
32+
CONFIG_MCUMGR_GRP_IMG=y
33+
CONFIG_MCUMGR_GRP_OS=y
34+
CONFIG_MCUMGR_GRP_STAT=y
35+
36+
# Enable logging
37+
CONFIG_LOG=y
38+
CONFIG_MCUBOOT_UTIL_LOG_LEVEL_WRN=y
39+
40+
# Disable debug logging
41+
CONFIG_LOG_MAX_LEVEL=3
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sample:
2+
description: Simple Management Protocol sample
3+
name: smp svr
4+
common:
5+
sysbuild: true
6+
build_only: true
7+
tests:
8+
nrf.extended.sample.mcumgr.smp_svr.serial:
9+
extra_args:
10+
- EXTRA_CONF_FILE="${ZEPHYR_BASE}/samples/subsys/mgmt/mcumgr/smp_svr/overlay-serial.conf"
11+
platform_allow:
12+
- nrf54h20dk/nrf54h20/cpuapp/iron/b0/mcuboot

0 commit comments

Comments
 (0)