Skip to content

Commit

Permalink
tests: benchmarks: power_consumption: uart: 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 d1e75ef commit cb18831
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/benchmarks/power_consumption/uart_async/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/uart_async/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(uart_async remote_sleep_forever)
sysbuild_add_dependencies(FLASH uart_async remote_sleep_forever)

endif()
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpurad"
3 changes: 3 additions & 0 deletions tests/benchmarks/power_consumption/uart_async/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ tests:
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_thread_suspend_resume_uart_async_54L"
benchmarks.power_consumption.uart_async_nrf54h:
sysbuild: true
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness: pytest
harness_config:
fixture: ppk_power_measure
Expand Down
10 changes: 10 additions & 0 deletions tests/benchmarks/power_consumption/uart_polling/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/uart_polling/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(uart_polling remote_sleep_forever)
sysbuild_add_dependencies(FLASH uart_polling remote_sleep_forever)

endif()
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpurad"
3 changes: 3 additions & 0 deletions tests/benchmarks/power_consumption/uart_polling/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ tests:
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_thread_suspend_resume_uart_polling_54L"
benchmarks.power_consumption.uart_poll_nrf54h:
sysbuild: true
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness: pytest
harness_config:
fixture: ppk_power_measure
Expand Down

0 comments on commit cb18831

Please sign in to comment.