Skip to content

Commit 6702d3a

Browse files
nordic-seglnordic-piks
authored andcommitted
tests: benchmarks: multicore: idle_wdt: Run test on Radio core
Add test configuration that uses WDT on Radio core only. APP core sleeps forever. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 7eabde2 commit 6702d3a

File tree

3 files changed

+82
-6
lines changed

3 files changed

+82
-6
lines changed

tests/benchmarks/multicore/idle_wdt/Kconfig.sysbuild

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ config NETCORE_IMAGE_PATH
2323
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_wdt/remote" if NETCORE_REMOTE
2424
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever" if NETCORE_REMOTE_SLEEP_FOREVER
2525

26+
choice APPCORE
27+
default APPCORE_REMOTE_SLEEP_FOREVER
28+
29+
config APPCORE_REMOTE_SLEEP_FOREVER
30+
bool "Remote sleep forever image"
31+
32+
endchoice
33+
34+
config APPCORE_IMAGE_NAME
35+
default "remote_sleep_forever" if APPCORE_REMOTE_SLEEP_FOREVER
36+
37+
config APPCORE_IMAGE_PATH
38+
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever" if APPCORE_REMOTE_SLEEP_FOREVER
39+
2640
config TEST_SYNCHRONIZE_CORES
2741
bool "Synchronize both cores"
2842
depends on NETCORE_REMOTE
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
aliases {
9+
led = &led1;
10+
watchdog0 = &wdt010;
11+
};
12+
13+
leds {
14+
compatible = "gpio-leds";
15+
16+
led1: led_1 {
17+
gpios = <&gpio9 1 GPIO_ACTIVE_HIGH>;
18+
label = "Green LED 1";
19+
};
20+
};
21+
};
22+
23+
&gpio9 {
24+
status = "okay";
25+
};
26+
27+
&gpiote130 {
28+
status = "okay";
29+
};
30+
31+
&wdt010 {
32+
status = "okay";
33+
};

tests/benchmarks/multicore/idle_wdt/testcase.yaml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ common:
33
tags:
44
- ci_build
55
- ci_tests_benchmarks_multicore
6-
platform_allow:
7-
- nrf54h20dk/nrf54h20/cpuapp
8-
integration_platforms:
9-
- nrf54h20dk/nrf54h20/cpuapp
106

117
tests:
128
# cpuapp - idle_wdt test with logging
@@ -23,6 +19,10 @@ tests:
2319
extra_args:
2420
- idle_wdt_EXTRA_CONF_FILE=enable_logs.conf
2521
- remote_EXTRA_CONF_FILE=../enable_logs.conf
22+
platform_allow:
23+
- nrf54h20dk/nrf54h20/cpuapp
24+
integration_platforms:
25+
- nrf54h20dk/nrf54h20/cpuapp
2626

2727
# cpuapp - idle_wdt test (idle_retained)
2828
# cpurad - idle_wdt test (idle)
@@ -37,6 +37,10 @@ tests:
3737
fixture: ppk_power_measure
3838
pytest_root:
3939
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_pwm_and_idle"
40+
platform_allow:
41+
- nrf54h20dk/nrf54h20/cpuapp
42+
integration_platforms:
43+
- nrf54h20dk/nrf54h20/cpuapp
4044

4145
# cpuapp - idle_wdt test (idle)
4246
# cpurad - idle_wdt test (idle)
@@ -51,6 +55,10 @@ tests:
5155
fixture: ppk_power_measure
5256
pytest_root:
5357
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_pwm_and_idle"
58+
platform_allow:
59+
- nrf54h20dk/nrf54h20/cpuapp
60+
integration_platforms:
61+
- nrf54h20dk/nrf54h20/cpuapp
5462

5563
# cpuapp - idle_wdt test (s2ram)
5664
# cpurad - idle_wdt test (idle)
@@ -60,10 +68,14 @@ tests:
6068
harness_config:
6169
fixture: ppk_power_measure
6270
pytest_root:
63-
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_pwm_and_s2ram"
71+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_wdt_and_s2ram"
72+
platform_allow:
73+
- nrf54h20dk/nrf54h20/cpuapp
74+
integration_platforms:
75+
- nrf54h20dk/nrf54h20/cpuapp
6476

6577
# cpuapp - idle_wdt test (s2ram)
66-
# cpurad - remote sleep forever (idle)
78+
# cpurad - remote_sleep_forever (idle)
6779
benchmarks.multicore.idle_wdt.nrf54h20dk_cpuapp.s2ram:
6880
tags: ppk_power_measure
6981
extra_args:
@@ -77,3 +89,20 @@ tests:
7789
- nrf54h20dk/nrf54h20/cpuapp
7890
integration_platforms:
7991
- nrf54h20dk/nrf54h20/cpuapp
92+
93+
# cpuapp - empty_app_core (s2ram)
94+
# cpurad - idle_wdt test (idle)
95+
benchmarks.multicore.idle_wdt.nrf54h20dk_cpurad.s2ram:
96+
tags: ppk_power_measure
97+
extra_args:
98+
- SB_CONFIG_APPCORE_REMOTE_SLEEP_FOREVER=y
99+
- remote_sleep_forever_CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
100+
harness: pytest
101+
harness_config:
102+
fixture: ppk_power_measure
103+
pytest_root:
104+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_wdt_and_s2ram"
105+
platform_allow:
106+
- nrf54h20dk/nrf54h20/cpurad
107+
integration_platforms:
108+
- nrf54h20dk/nrf54h20/cpurad

0 commit comments

Comments
 (0)