Skip to content

Commit

Permalink
tests: benchmarks: power_consumption: timer_waiting: multicore app fo…
Browse files Browse the repository at this point in the history
…r nrf54h20

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 659aff0 commit 4eb91e2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/benchmarks/power_consumption/timer_waiting/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/timer_waiting/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(timer_waiting remote_sleep_forever)
sysbuild_add_dependencies(FLASH timer_waiting remote_sleep_forever)

endif()
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpurad"
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,28 @@ tests:
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_for_timer_waiting_54L_16M"
benchmarks.power_consumption.timer_waiting_16M_nrf54h:
sysbuild: true
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_16M.overlay"
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness: pytest
harness_config:
fixture: ppk_power_measure
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_for_timer_waiting_54H_16M"
benchmarks.power_consumption.timer_waiting_320M_nrf54h:
sysbuild: true
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_320M.overlay"
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness: pytest
harness_config:
fixture: ppk_power_measure
Expand Down

0 comments on commit 4eb91e2

Please sign in to comment.