Skip to content

Commit 84910af

Browse files
committed
tests: benchmarks: multicore: idle_flpr: Update the test
Recently, there were improvements in the idle_ppr test. Apply similar changes to the idle_flpr test. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent e7f2134 commit 84910af

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

tests/benchmarks/multicore/idle_flpr/prj.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ CONFIG_NCS_BOOT_BANNER=n
44
CONFIG_LOG=y
55
CONFIG_ASSERT=y
66
CONFIG_GPIO=y
7-
8-
CONFIG_NRF_REGTOOL_VERBOSITY=1

tests/benchmarks/multicore/idle_flpr/remote/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ project(remote)
1111

1212
target_sources(app PRIVATE src/main.c)
1313

14-
if(DEFINED CONFIG_SOC_NRF54H20_CPUFLPR)
15-
message(STATUS "Power Mode handler for RISC V is included.")
16-
target_sources(app PRIVATE ../../common/power_off.c)
14+
if(CONFIG_SOC_NRF54H20_CPUFLPR)
15+
message(STATUS "Power Mode handler for RISC V is included.")
16+
target_sources(app PRIVATE ../../common/power_off.c)
1717
endif()
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CONFIG_LOG=y
1+
CONFIG_LOG=n
22
CONFIG_CONSOLE=n
33
CONFIG_UART_CONSOLE=n
44
CONFIG_SERIAL=n
@@ -7,5 +7,3 @@ CONFIG_NCS_BOOT_BANNER=n
77
CONFIG_PRINTK=n
88

99
CONFIG_ASSERT=y
10-
11-
CONFIG_NRF_REGTOOL_VERBOSITY=1

tests/benchmarks/multicore/idle_flpr/src/main.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ int main(void)
4646
while (1) {
4747
timer_expired = false;
4848

49+
/* Turn ON LED */
50+
ret = gpio_pin_set_dt(&led, 1);
51+
4952
/* start a one-shot timer that expires after 1 second */
5053
k_timer_start(&my_timer, K_MSEC(1000), K_NO_WAIT);
5154

52-
/* Turn ON LED */
53-
ret = gpio_pin_set_dt(&led, 1);
5455
if (ret < 0) {
5556
LOG_ERR("Unable to turn on LED");
5657
}
@@ -62,16 +63,16 @@ int main(void)
6263
k_yield();
6364
}
6465

66+
LOG_INF("Run %d", counter);
67+
counter++;
68+
6569
/* Turn OFF LED */
6670
ret = gpio_pin_set_dt(&led, 0);
6771
if (ret < 0) {
6872
LOG_ERR("Unable to turn off LED");
6973
}
7074
__ASSERT(ret == 0, "Unable to turn off LED\n");
7175

72-
LOG_INF("Run %d", counter);
73-
counter++;
74-
7576
/* Sleep / enter low power state */
7677
k_msleep(CONFIG_TEST_SLEEP_DURATION_MS);
7778
}

tests/benchmarks/multicore/idle_flpr/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ tests:
2626
benchmarks.multicore.idle_flpr.idle_retained:
2727
tags: ppk_power_measure
2828
extra_args:
29+
- CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
2930
- idle_flpr_CONF_FILE=prj_s2ram.conf
3031
- remote_flpr_CONF_FILE=prj_s2ram.conf
3132
- idle_flpr_CONFIG_TEST_SLEEP_DURATION_MS=500
@@ -40,6 +41,7 @@ tests:
4041
benchmarks.multicore.idle_flpr.idle:
4142
tags: ppk_power_measure
4243
extra_args:
44+
- CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
4345
- idle_flpr_CONF_FILE=prj_s2ram.conf
4446
- remote_flpr_CONF_FILE=prj_s2ram.conf
4547
- idle_flpr_CONFIG_TEST_SLEEP_DURATION_MS=500
@@ -54,6 +56,7 @@ tests:
5456
benchmarks.multicore.idle_flpr.s2ram:
5557
tags: ppk_power_measure
5658
extra_args:
59+
- CONFIG_SOC_NRF54H20_CPURAD_ENABLE=y
5760
- idle_flpr_CONF_FILE=prj_s2ram.conf
5861
- remote_flpr_CONF_FILE=prj_s2ram.conf
5962
harness: pytest

0 commit comments

Comments
 (0)