Skip to content

Commit a8bcdbd

Browse files
nordic-bamitejlmand
authored andcommitted
tests: benchmarks: Enable current consumption tests on the legacy platforms
Run current consumtpion benchamrks on nrf52840 and nrf5340 Signed-off-by: Bartosz Miller <[email protected]>
1 parent 7dd62e2 commit a8bcdbd

File tree

14 files changed

+165
-48
lines changed

14 files changed

+165
-48
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
common:
2+
sysbuild: true
3+
tags:
4+
- ci_tests_benchmarks_current_consumption
5+
- ppk_power_measure
6+
- bluetooth
7+
harness: pytest
8+
harness_config:
9+
fixture: ppk_power_measure
10+
pytest_root:
11+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_power_consumption_beacon_vs_supply_voltage"
12+
tests:
13+
benchmarks.current_consumption.beacon_vs_vdd:
14+
platform_allow:
15+
- nrf52840dk/nrf52840
16+
- nrf54l15dk/nrf54l15/cpuapp
17+
integration_platforms:
18+
- nrf52840dk/nrf52840
19+
- nrf54l15dk/nrf54l15/cpuapp
20+
benchmarks.current_consumption.beacon_vs_vdd.with_netcore:
21+
platform_allow:
22+
- nrf5340dk/nrf5340/cpuapp
23+
- nrf54h20dk/nrf54h20/cpuapp
24+
integration_platforms:
25+
- nrf5340dk/nrf5340/cpuapp
26+
- nrf54h20dk/nrf54h20/cpuapp
27+
extra_args:
28+
- SB_CONFIG_NETCORE_IPC_RADIO=y
29+
- SB_CONFIG_NETCORE_IPC_RADIO_BT_HCI_IPC=y

tests/benchmarks/current_consumption/beacon_vs_vddh/testcase.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
8+
/ {
9+
/*
10+
* Redefine sw0/button0 to use RXD1 - P0.08
11+
* Thus, when sending character from host, there will be gpio interrupt,
12+
* the same as originally triggered by sw0 button.
13+
*/
14+
buttons {
15+
compatible = "gpio-keys";
16+
button0: button_0 {
17+
gpios = <&gpio0 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
18+
label = "Push button 0";
19+
zephyr,code = <INPUT_KEY_0>;
20+
};
21+
};
22+
};
23+
24+
&gpio0 {
25+
status = "okay";
26+
};
27+
28+
/*
29+
* Redefine RX -> P0.04 (not used)
30+
*/
31+
&pinctrl {
32+
uart0_default: uart0_default {
33+
group1 {
34+
psels = <NRF_PSEL(UART_TX, 0, 6)>,
35+
<NRF_PSEL(UART_RTS, 0, 5)>;
36+
};
37+
38+
group2 {
39+
psels = <NRF_PSEL(UART_RX, 0, 4)>,
40+
<NRF_PSEL(UART_CTS, 0, 7)>;
41+
bias-pull-up;
42+
};
43+
};
44+
45+
uart0_sleep: uart0_sleep {
46+
group1 {
47+
psels = <NRF_PSEL(UART_TX, 0, 6)>,
48+
<NRF_PSEL(UART_RX, 0, 4)>,
49+
<NRF_PSEL(UART_RTS, 0, 5)>,
50+
<NRF_PSEL(UART_CTS, 0, 7)>;
51+
low-power-enable;
52+
};
53+
};
54+
};
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
8+
/ {
9+
/*
10+
* Redefine sw0/button0 to use RXD1 - P0.22
11+
* Thus, when sending character from host, there will be gpio interrupt,
12+
* the same as originally triggered by sw0 button.
13+
*/
14+
buttons {
15+
compatible = "gpio-keys";
16+
button0: button_0 {
17+
gpios = <&gpio0 22 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
18+
label = "Push button 0";
19+
zephyr,code = <INPUT_KEY_0>;
20+
};
21+
};
22+
};
23+
24+
&gpio0 {
25+
status = "okay";
26+
};
27+
28+
/*
29+
* Redefine RX -> P0.29 (not used)
30+
*/
31+
&pinctrl {
32+
uart0_default: uart0_default {
33+
group1 {
34+
psels = <NRF_PSEL(UART_TX, 0, 20)>,
35+
<NRF_PSEL(UART_RTS, 0, 19)>;
36+
};
37+
38+
group2 {
39+
psels = <NRF_PSEL(UART_RX, 0, 29)>,
40+
<NRF_PSEL(UART_CTS, 0, 21)>;
41+
bias-pull-up;
42+
};
43+
};
44+
45+
uart0_sleep: uart0_sleep {
46+
group1 {
47+
psels = <NRF_PSEL(UART_TX, 0, 20)>,
48+
<NRF_PSEL(UART_RX, 0, 29)>,
49+
<NRF_PSEL(UART_RTS, 0, 19)>,
50+
<NRF_PSEL(UART_CTS, 0, 21)>;
51+
low-power-enable;
52+
};
53+
};
54+
};

tests/benchmarks/current_consumption/gpio_idle/testcase.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ common:
66
tests:
77
benchmarks.current_consumption.gpio_idle:
88
platform_allow:
9+
- nrf52840dk/nrf52840
10+
- nrf5340dk/nrf5340/cpuapp
911
- nrf54l15dk/nrf54l15/cpuapp
1012
- nrf54lm20dk/nrf54lm20a/cpuapp
1113
- nrf54lv10dk/nrf54lv10a/cpuapp
1214
integration_platforms:
15+
- nrf52840dk/nrf52840
16+
- nrf5340dk/nrf5340/cpuapp
1317
- nrf54l15dk/nrf54l15/cpuapp
1418
- nrf54lm20dk/nrf54lm20a/cpuapp
1519
- nrf54lv10dk/nrf54lv10a/cpuapp
1620
harness: pytest
1721
harness_config:
1822
fixture: ppk_power_measure
1923
pytest_root:
20-
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_54L_gpio_idle"
24+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_gpio_idle"
2125
timeout: 80

tests/benchmarks/current_consumption/grtc_idle/testcase.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ common:
66
tests:
77
benchmarks.current_consumption.grtc_idle:
88
platform_allow:
9+
- nrf52840dk/nrf52840
10+
- nrf5340dk/nrf5340/cpuapp
911
- nrf54l15dk/nrf54l15/cpuapp
1012
- nrf54lm20dk/nrf54lm20a/cpuapp
1113
- nrf54lv10dk/nrf54lv10a/cpuapp
1214
integration_platforms:
15+
- nrf52840dk/nrf52840
16+
- nrf5340dk/nrf5340/cpuapp
1317
- nrf54l15dk/nrf54l15/cpuapp
1418
- nrf54lm20dk/nrf54lm20a/cpuapp
1519
- nrf54lv10dk/nrf54lv10a/cpuapp
1620
harness: pytest
1721
harness_config:
1822
fixture: ppk_power_measure
1923
pytest_root:
20-
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_54L_grtc_idle"
24+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_grtc_idle"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
2+
CONFIG_PM=y
3+
CONFIG_PM_S2RAM=y
4+
CONFIG_PM_S2RAM_CUSTOM_MARKING=y

0 commit comments

Comments
 (0)