Skip to content

Commit ea2994f

Browse files
nordic-bamirlubos
authored andcommitted
tests: benchmarks: Verify wakeup for NFC from s2ram for nrf54h20
Verify the NFC with s2ram for nrf54h20 Signed-off-by: Bartosz Miller <[email protected]>
1 parent 9055b6c commit ea2994f

File tree

4 files changed

+56
-5
lines changed

4 files changed

+56
-5
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"
8+
9+
config REMOTE_BOARD
10+
string
11+
default "$(BOARD)/nrf54h20/cpurad" if SOC_NRF54H20_CPUAPP
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
CONFIG_CONSOLE=n
2-
CONFIG_UART_CONSOLE=n
3-
CONFIG_SERIAL=n
4-
51
CONFIG_POWEROFF=y
62

73
CONFIG_NFC_T2T_NRFXLIB=y
@@ -10,3 +6,10 @@ CONFIG_NFC_NDEF=y
106
CONFIG_NFC_NDEF_MSG=y
117
CONFIG_NFC_NDEF_RECORD=y
128
CONFIG_NFC_NDEF_TEXT_RECORD=y
9+
10+
# Enable for debugging purpose only
11+
CONFIG_CONSOLE=n
12+
CONFIG_UART_CONSOLE=n
13+
CONFIG_SERIAL=n
14+
CONFIG_PRINTK=n
15+
CONFIG_LOG=n
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
if(SB_CONFIG_SOC_NRF54H20)
8+
# Add remote project
9+
ExternalZephyrProject_Add(
10+
APPLICATION remote
11+
SOURCE_DIR ${SYSBUILD_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever
12+
BOARD ${SB_CONFIG_REMOTE_BOARD}
13+
BOARD_REVISION ${BOARD_REVISION}
14+
)
15+
# Add a dependency so that the remote image will be built and flashed first
16+
add_dependencies(nfc_idle remote)
17+
# Add dependency so that the remote image is flashed first.
18+
sysbuild_add_dependencies(FLASH nfc_idle remote)
19+
endif()

tests/benchmarks/current_consumption/nfc_idle/testcase.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,23 @@ tests:
1212
harness_config:
1313
fixture: ppk_power_measure
1414
pytest_root:
15-
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_54L_nfc_idle"
15+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_nfc_idle"
16+
timeout: 80
17+
18+
benchmarks.current_consumption.nfc_idle_nrf54h:
19+
platform_allow:
20+
- nrf54h20dk/nrf54h20/cpuapp
21+
integration_platforms:
22+
- nrf54h20dk/nrf54h20/cpuapp
23+
extra_args:
24+
- CONFIG_PM=y
25+
- CONFIG_PM_S2RAM=y
26+
- CONFIG_PM_S2RAM_CUSTOM_MARKING=y
27+
- CONFIG_BOOT_BANNER=n
28+
- CONFIG_SOC_NRF54H20_NO_MRAM_LATENCY=n
29+
harness: pytest
30+
harness_config:
31+
fixture: ppk_power_measure
32+
pytest_root:
33+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_nfc_idle"
1634
timeout: 80

0 commit comments

Comments
 (0)