Skip to content

Commit

Permalink
tests: benchmarks: Verify wakeup for NFC from s2ram for nrf54h20
Browse files Browse the repository at this point in the history
Verify the NFC with s2ram for nrf54h20

Signed-off-by: Bartosz Miller <[email protected]>
  • Loading branch information
nordic-bami authored and rlubos committed Nov 22, 2024
1 parent 9055b6c commit ea2994f
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 5 deletions.
11 changes: 11 additions & 0 deletions tests/benchmarks/current_consumption/nfc_idle/Kconfig.sysbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

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

config REMOTE_BOARD
string
default "$(BOARD)/nrf54h20/cpurad" if SOC_NRF54H20_CPUAPP
11 changes: 7 additions & 4 deletions tests/benchmarks/current_consumption/nfc_idle/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n

CONFIG_POWEROFF=y

CONFIG_NFC_T2T_NRFXLIB=y
Expand All @@ -10,3 +6,10 @@ CONFIG_NFC_NDEF=y
CONFIG_NFC_NDEF_MSG=y
CONFIG_NFC_NDEF_RECORD=y
CONFIG_NFC_NDEF_TEXT_RECORD=y

# Enable for debugging purpose only
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n
CONFIG_SERIAL=n
CONFIG_PRINTK=n
CONFIG_LOG=n
19 changes: 19 additions & 0 deletions tests/benchmarks/current_consumption/nfc_idle/sysbuild.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

if(SB_CONFIG_SOC_NRF54H20)
# Add remote project
ExternalZephyrProject_Add(
APPLICATION remote
SOURCE_DIR ${SYSBUILD_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever
BOARD ${SB_CONFIG_REMOTE_BOARD}
BOARD_REVISION ${BOARD_REVISION}
)
# Add a dependency so that the remote image will be built and flashed first
add_dependencies(nfc_idle remote)
# Add dependency so that the remote image is flashed first.
sysbuild_add_dependencies(FLASH nfc_idle remote)
endif()
20 changes: 19 additions & 1 deletion tests/benchmarks/current_consumption/nfc_idle/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,23 @@ tests:
harness_config:
fixture: ppk_power_measure
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_54L_nfc_idle"
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_nfc_idle"
timeout: 80

benchmarks.current_consumption.nfc_idle_nrf54h:
platform_allow:
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
extra_args:
- CONFIG_PM=y
- CONFIG_PM_S2RAM=y
- CONFIG_PM_S2RAM_CUSTOM_MARKING=y
- CONFIG_BOOT_BANNER=n
- CONFIG_SOC_NRF54H20_NO_MRAM_LATENCY=n
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_with_rx_wakeup_nfc_idle"
timeout: 80

0 comments on commit ea2994f

Please sign in to comment.