Skip to content

Commit fb3e2be

Browse files
nordic-pikrnordicjm
authored andcommitted
tests: benchmarks: multicore: idle_gpio: sysbuild
Fix sysbuild configuration for idle_gpio benchmark test. Signed-off-by: Piotr Krzyzanowski <piotr.krzyzanowski@nordicsemi.no>
1 parent 6dc5591 commit fb3e2be

4 files changed

Lines changed: 39 additions & 34 deletions

File tree

tests/benchmarks/multicore/idle_gpio/Kconfig.sysbuild

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,8 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
config RUN_PPRCORE
8-
bool "Run test on Peripheral Processor Core (PPR)"
9-
10-
choice PPRCORE
11-
default PPRCORE_REMOTE if RUN_PPRCORE
12-
13-
config PPRCORE_REMOTE
14-
bool "Remote image"
15-
16-
endchoice
17-
18-
config PPRCORE_IMAGE_NAME
19-
default "remote" if PPRCORE_REMOTE
20-
21-
config PPRCORE_IMAGE_PATH
22-
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_gpio/remote" if PPRCORE_REMOTE
23-
247
choice NETCORE
25-
default NETCORE_REMOTE if PPRCORE_NONE
26-
default NETCORE_REMOTE_SLEEP_FOREVER if !PPRCORE_NONE
8+
default NETCORE_REMOTE
279

2810
config NETCORE_REMOTE
2911
bool "Remote image"
@@ -41,4 +23,18 @@ config NETCORE_IMAGE_PATH
4123
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_gpio/remote" if NETCORE_REMOTE
4224
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever" if NETCORE_REMOTE_SLEEP_FOREVER
4325

26+
choice PPRCORE
27+
default PPRCORE_NONE
28+
29+
config PPRCORE_REMOTE
30+
bool "Remote image"
31+
32+
endchoice
33+
34+
config PPRCORE_IMAGE_NAME
35+
default "remote" if PPRCORE_REMOTE
36+
37+
config PPRCORE_IMAGE_PATH
38+
default "${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_gpio/remote" if PPRCORE_REMOTE
39+
4440
source "share/sysbuild/Kconfig"

tests/benchmarks/multicore/idle_gpio/enable_ppr.overlay

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
if(SB_CONFIG_SOC_NRF54H20 AND NOT SB_CONFIG_NETCORE_NONE)
8+
set_config_bool(idle_gpio CONFIG_SOC_NRF54H20_CPURAD_ENABLE y)
9+
endif()
10+
11+
if(NOT SB_CONFIG_PPRCORE_NONE)
12+
set(idle_gpio_SNIPPET nordic-ppr CACHE STRING "" FORCE)
13+
endif()

tests/benchmarks/multicore/idle_gpio/testcase.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ common:
99
regex:
1010
- "Multicore idle_gpio test on"
1111
- "Multicore idle_gpio test iteration 0"
12-
extra_args:
13-
- CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
1412

1513
tests:
1614
benchmarks.multicore.idle_gpio.nrf54h20dk_cpuapp_cpurad.s2ram:
@@ -20,6 +18,7 @@ tests:
2018
- nrf54h20dk/nrf54h20/cpuapp
2119
extra_args:
2220
- FILE_SUFFIX=s2ram
21+
- SB_CONFIG_NETCORE_REMOTE=y
2322
harness: pytest
2423
harness_config:
2524
fixture: ppk_power_measure
@@ -34,8 +33,8 @@ tests:
3433
- nrf54h20dk/nrf54h20/cpuapp
3534
extra_args:
3635
- FILE_SUFFIX=s2ram
37-
- SB_CONFIG_RUN_PPRCORE=y
38-
- EXTRA_DTC_OVERLAY_FILE="enable_ppr.overlay"
36+
- SB_CONFIG_NETCORE_REMOTE_SLEEP_FOREVER=y
37+
- SB_CONFIG_PPRCORE_REMOTE=y
3938
harness: pytest
4039
harness_config:
4140
fixture: ppk_power_measure
@@ -52,6 +51,7 @@ tests:
5251
- SB_CONFIG_BOOTLOADER_MCUBOOT=y
5352
- FILE_SUFFIX=s2ram
5453
- mcuboot_EXTRA_DTC_OVERLAY_FILE="${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/multicore/idle_gpio/boards/nrf54h20dk_nrf54h20_cpuapp_s2ram.overlay"
54+
- SB_CONFIG_NETCORE_REMOTE=y
5555
harness: pytest
5656
harness_config:
5757
fixture: ppk_power_measure
@@ -68,6 +68,7 @@ tests:
6868
- FILE_SUFFIX=s2ram_merged_slot
6969
- SB_CONFIG_BOOTLOADER_MCUBOOT=y
7070
- SB_EXTRA_CONF_FILE="sysbuild/sysbuild_merged_slot.conf"
71+
- SB_CONFIG_NETCORE_REMOTE=y
7172
harness: pytest
7273
harness_config:
7374
fixture: ppk_power_measure
@@ -83,6 +84,7 @@ tests:
8384
extra_args:
8485
- FILE_SUFFIX=s2ram
8586
- EXTRA_DTC_OVERLAY_FILE="wakeup_from_uart_pins.overlay"
87+
- SB_CONFIG_NETCORE_REMOTE=y
8688
- remote_EXTRA_DTC_OVERLAY_FILE="wakeup_from_uart_pins.overlay"
8789
harness: pytest
8890
harness_config:
@@ -100,6 +102,7 @@ tests:
100102
extra_args:
101103
- FILE_SUFFIX=s2ram
102104
- EXTRA_DTC_OVERLAY_FILE="wakeup_from_uart_pins.overlay"
105+
- SB_CONFIG_NETCORE_REMOTE=y
103106
- remote_EXTRA_DTC_OVERLAY_FILE="wakeup_from_uart_pins_gpiote0.overlay"
104107
harness: pytest
105108
harness_config:
@@ -117,6 +120,7 @@ tests:
117120
extra_args:
118121
- FILE_SUFFIX=s2ram
119122
- EXTRA_DTC_OVERLAY_FILE="wakeup_from_uart_pins.overlay"
123+
- SB_CONFIG_NETCORE_REMOTE=y
120124
- remote_EXTRA_DTC_OVERLAY_FILE="wakeup_from_uart_pins_gpiote0.overlay"
121125
- remote_CONFIG_TEST_GPIOTE_LATENCY_LOWPOWER=y
122126
harness: pytest
@@ -134,8 +138,9 @@ tests:
134138
- nrf54h20dk/nrf54h20/cpuapp
135139
extra_args:
136140
- FILE_SUFFIX=s2ram
137-
- SB_CONFIG_RUN_PPRCORE=y
138-
- EXTRA_DTC_OVERLAY_FILE="enable_ppr.overlay;wakeup_from_uart_pins.overlay"
141+
- EXTRA_DTC_OVERLAY_FILE="wakeup_from_uart_pins.overlay"
142+
- SB_CONFIG_NETCORE_REMOTE_SLEEP_FOREVER=y
143+
- SB_CONFIG_PPRCORE_REMOTE=y
139144
- remote_EXTRA_DTC_OVERLAY_FILE="wakeup_from_uart_pins.overlay"
140145
harness: pytest
141146
harness_config:

0 commit comments

Comments
 (0)