Skip to content

Commit a05ecdd

Browse files
committed
tests: benchmarks: Run idle_ipc test on nrf9251dk
Add overlays required to run the idle_ipc power consumption test on nrf9251dk/nrf9251/cpuapp platform. Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
1 parent f10ff6a commit a05ecdd

9 files changed

Lines changed: 181 additions & 9 deletions

tests/benchmarks/multicore/idle_ipc/Kconfig.sysbuild

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,19 @@ config NETCORE_IMAGE_NAME
1818
config NETCORE_IMAGE_PATH
1919
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_ipc/remote" if NETCORE_REMOTE
2020

21+
choice PPRCORE
22+
default PPRCORE_REMOTE if SOC_NRF9251_CPUAPP
23+
default PPRCORE_NONE
24+
25+
config PPRCORE_REMOTE
26+
bool "Remote image"
27+
28+
endchoice
29+
30+
config PPRCORE_IMAGE_NAME
31+
default "remote_ppr" if PPRCORE_REMOTE
32+
33+
config PPRCORE_IMAGE_PATH
34+
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_ipc/remote" if PPRCORE_REMOTE
35+
2136
source "share/sysbuild/Kconfig"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Disable Logs otherwise code will not fit on PPR
8+
CONFIG_BOOT_BANNER=n
9+
CONFIG_NCS_BOOT_BANNER=n
10+
11+
CONFIG_PRINTK=n
12+
CONFIG_LOG=n
13+
CONFIG_CONSOLE=n
14+
CONFIG_UART_CONSOLE=n
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
aliases {
9+
led = &led0;
10+
};
11+
};
12+
13+
ipc0: &cpuapp_cpuppr_ipc {
14+
status = "okay";
15+
};
16+
17+
&cpuppr_vevif {
18+
status = "okay";
19+
};
20+
21+
&cpuapp_bellboard {
22+
status = "okay";
23+
};
24+
25+
/ {
26+
chosen {
27+
/delete-property/ zephyr,bt-hci;
28+
};
29+
};
30+
31+
&cpuppr_vpr {
32+
status = "okay";
33+
};
34+
35+
&uart132 {
36+
status = "reserved";
37+
interrupt-parent = <&cpuppr_clic>;
38+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
CONFIG_PM=y
8+
CONFIG_POWEROFF=y
9+
10+
CONFIG_LOG_PROCESS_THREAD_PRIORITY=-15
11+
CONFIG_LOG_PROCESS_THREAD_CUSTOM_PRIORITY=y
12+
CONFIG_IPC_SERVICE_LOG_LEVEL_INF=y
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Disable Logs otherwise code will not fit on PPR
8+
CONFIG_BOOT_BANNER=n
9+
CONFIG_NCS_BOOT_BANNER=n
10+
11+
CONFIG_PRINTK=n
12+
CONFIG_LOG=n
13+
CONFIG_CONSOLE=n
14+
CONFIG_UART_CONSOLE=n
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
aliases {
9+
led = &led1;
10+
};
11+
12+
leds {
13+
compatible = "gpio-leds";
14+
15+
/* Move to other GPIO. */
16+
led1: led_1 {
17+
gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
18+
label = "Custom GPIO";
19+
};
20+
};
21+
};
22+
23+
&gpio2 {
24+
status = "okay";
25+
};
26+
27+
&gpiote130 {
28+
status = "okay";
29+
};
30+
31+
ipc0: &cpuapp_cpuppr_ipc {
32+
status = "okay";
33+
};
34+
35+
&cpuppr_vevif {
36+
status = "okay";
37+
};
38+
39+
&cpuapp_bellboard {
40+
status = "okay";
41+
};
42+
43+
&uart132 {
44+
/delete-property/ hw-flow-control;
45+
};

tests/benchmarks/multicore/idle_ipc/remote/prj.conf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
# Copyright (c) 2024 Nordic Semiconductor ASA
22
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
33

4-
5-
CONFIG_LOG_PROCESS_THREAD_PRIORITY=-15
6-
CONFIG_LOG_PROCESS_THREAD_CUSTOM_PRIORITY=y
7-
84
CONFIG_HEAP_MEM_POOL_SIZE=2048
95

106
CONFIG_IPC_SERVICE=y
11-
CONFIG_IPC_SERVICE_LOG_LEVEL_INF=y
127

138
CONFIG_MBOX=y
149

15-
CONFIG_PM=y
1610
CONFIG_PM_DEVICE=y
17-
CONFIG_POWEROFF=y
1811
CONFIG_PM_DEVICE_RUNTIME=y
1912

2013
CONFIG_ASSERT=y

tests/benchmarks/multicore/idle_ipc/testcase.yaml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
common:
22
sysbuild: true
3-
extra_args:
4-
- CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
53

64
tests:
75
benchmarks.multicore.idle_ipc.nrf54h20dk_cpuapp_cpurad.s2ram:
@@ -81,3 +79,39 @@ tests:
8179
regex:
8280
- ".*Coverage analysis enabled.*"
8381
- ".*Coverage analysis start.*"
82+
83+
benchmarks.multicore.idle_ipc.nrf9251dk_cpuapp_cpuppr.s2ram:
84+
tags:
85+
- ci_build
86+
- ci_tests_benchmarks_multicore
87+
- ipc
88+
- ppk_power_measure
89+
filter: not CONFIG_COVERAGE
90+
harness: pytest
91+
platform_allow:
92+
- nrf9251dk/nrf9251/cpuapp
93+
integration_platforms:
94+
- nrf9251dk/nrf9251/cpuapp
95+
harness_config:
96+
fixture: ppk_power_measure
97+
pytest_root:
98+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_ipc"
99+
100+
benchmarks.multicore.idle_ipc.shifted.nrf9251dk_cpuapp_cpuppr.s2ram:
101+
tags:
102+
- ci_build
103+
- ci_tests_benchmarks_multicore
104+
- ipc
105+
- ppk_power_measure
106+
filter: not CONFIG_COVERAGE
107+
harness: pytest
108+
platform_allow:
109+
- nrf9251dk/nrf9251/cpuapp
110+
integration_platforms:
111+
- nrf9251dk/nrf9251/cpuapp
112+
extra_args:
113+
- remote_TEST_START_DELAY_MS=1000
114+
harness_config:
115+
fixture: ppk_power_measure
116+
pytest_root:
117+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_ipc"

0 commit comments

Comments
 (0)