Skip to content

Commit 1e70fae

Browse files
nordic-bamitejlmand
authored andcommitted
tests: benchmarks: Run idle USB benchmark on nrf54lm20dk
nrf54lm20dk does support HSUSB, enable idle usb test for it Signed-off-by: Bartosz Miller <[email protected]>
1 parent 74ed497 commit 1e70fae

File tree

6 files changed

+32
-18
lines changed

6 files changed

+32
-18
lines changed

tests/benchmarks/multicore/idle_usb/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ cmake_minimum_required(VERSION 3.20.0)
99
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1010

1111
if(NOT SYSBUILD)
12-
message(FATAL_ERROR
13-
" This is a multi-image application that should be built using sysbuild.\n"
14-
" Add --sysbuild argument to west build command to prepare all the images.")
12+
message(FATAL_ERROR
13+
" This is a multi-image application that should be built using sysbuild.\n"
14+
" Add --sysbuild argument to west build command to prepare all the images.")
1515
endif()
1616

1717
project(idle_usb)

tests/benchmarks/multicore/idle_usb/Kconfig.sysbuild

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
source "share/sysbuild/Kconfig"
88

99
config REMOTE_BOARD
10-
string "The board used for remote target"
10+
string
11+
default "$(BOARD)/nrf54h20/cpurad" if SOC_NRF54H20
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
aliases {
9+
led = &led0;
10+
};
11+
};
12+
13+
&zephyr_udc0 {
14+
cdc_acm_uart0 {
15+
compatible = "zephyr,cdc-acm-uart";
16+
};
17+
};
18+
19+
&uart20 {
20+
zephyr,pm-device-runtime-auto;
21+
disable-rx;
22+
};

tests/benchmarks/multicore/idle_usb/sysbuild.cmake

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,11 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
if("${SB_CONFIG_REMOTE_BOARD}" STREQUAL "")
8-
message(FATAL_ERROR "REMOTE_BOARD must be set to a valid board name")
9-
endif()
10-
11-
# Add remote project
12-
ExternalZephyrProject_Add(
7+
if(SB_CONFIG_REMOTE_BOARD)
8+
ExternalZephyrProject_Add(
139
APPLICATION remote
1410
SOURCE_DIR ${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever
1511
BOARD ${SB_CONFIG_REMOTE_BOARD}
1612
BOARD_REVISION ${BOARD_REVISION}
1713
)
18-
19-
# Add a dependency so that the remote image will be built and flashed first
20-
add_dependencies(idle_usb remote)
21-
# Add dependency so that the remote image is flashed first.
22-
sysbuild_add_dependencies(FLASH idle_usb remote)
14+
endif()

tests/benchmarks/multicore/idle_usb/sysbuild/nrf54h20dk_nrf54h20_cpurad.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/benchmarks/multicore/idle_usb/testcase.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ tests:
1111
harness: pytest
1212
platform_allow:
1313
- nrf54h20dk/nrf54h20/cpuapp
14+
- nrf54lm20dk/nrf54lm20a/cpuapp
1415
integration_platforms:
1516
- nrf54h20dk/nrf54h20/cpuapp
16-
extra_args:
17-
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
17+
- nrf54lm20dk/nrf54lm20a/cpuapp
1818
harness_config:
1919
fixture: ppk_power_measure_usb
2020
pytest_root:

0 commit comments

Comments
 (0)