Skip to content

Commit

Permalink
tests: benchmarks: power_consumption: spi: multicore app for nrf54h20
Browse files Browse the repository at this point in the history
Add code for radio core so that it can be put into sleep
and release resources.

Signed-off-by: Piotr Kosycarz <[email protected]>
  • Loading branch information
nordic-piks committed Nov 12, 2024
1 parent 3ef8d8c commit 659aff0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/benchmarks/power_consumption/spi/Kconfig.sysbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"

config REMOTE_BOARD
string "The board used for remote target"
17 changes: 17 additions & 0 deletions tests/benchmarks/power_consumption/spi/sysbuild.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

if(NOT "${SB_CONFIG_REMOTE_BOARD}" STREQUAL "")
ExternalZephyrProject_Add(
APPLICATION remote_sleep_forever
SOURCE_DIR ${APP_DIR}/../common/remote_sleep_forever
BOARD ${SB_CONFIG_REMOTE_BOARD}
)

add_dependencies(spi remote_sleep_forever)
sysbuild_add_dependencies(FLASH spi remote_sleep_forever)

endif()
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpurad"
2 changes: 2 additions & 0 deletions tests/benchmarks/power_consumption/spi/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ tests:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_thread_suspend_resume_spi_54L"
benchmarks.power_consumption.spi_nrf54h:
harness: pytest
sysbuild: true
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- SHIELD=pca63566
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness_config:
fixture: pca63566
pytest_root:
Expand Down

0 comments on commit 659aff0

Please sign in to comment.