Skip to content

Commit 3847769

Browse files
nordic-baminordicjm
authored andcommitted
tests: benchmarks: Check idle current with uart30 for MLT
Use UART30 for nrf54l15 and verify the idle current with it Signed-off-by: Bartosz Miller <[email protected]>
1 parent 72737ae commit 3847769

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,shell-uart = &uart30;
10+
zephyr,console = &uart30;
11+
zephyr,uart-mcumgr = &uart30;
12+
zephyr,bt-mon-uart = &uart30;
13+
zephyr,bt-c2h-uart = &uart30;
14+
};
15+
};
16+
17+
/delete-node/ &uart20;
18+
19+
&uart30 {
20+
status = "okay";
21+
current-speed = <115200>;
22+
pinctrl-0 = <&uart30_default>;
23+
pinctrl-1 = <&uart30_sleep>;
24+
pinctrl-names = "default", "sleep";
25+
/delete-property/ hw-flow-control;
26+
};

tests/benchmarks/current_consumption/uart_idle/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ int main(void)
4343
int ret;
4444

4545
ret = device_is_ready(uart_dev);
46+
printk("UARTE instance: %s\n", uart_dev->name);
4647
if (ret < 0) {
4748
printk("device_is_ready: %d\n", ret);
4849
return 0;

tests/benchmarks/current_consumption/uart_idle/testcase.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,16 @@ tests:
1414
pytest_root:
1515
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_54L_uart_idle"
1616
timeout: 80
17+
benchmarks.current_consumption.uart_idle_uart30:
18+
platform_allow:
19+
- nrf54l15dk/nrf54l15/cpuapp
20+
integration_platforms:
21+
- nrf54l15dk/nrf54l15/cpuapp
22+
extra_args:
23+
- DTC_OVERLAY_FILE="boards/nrf54l15dk_nrf54l15_cpuapp_uart30.overlay"
24+
harness: pytest
25+
harness_config:
26+
fixture: ppk_power_measure
27+
pytest_root:
28+
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_with_rx_wakeup_54L_uart30_idle"
29+
timeout: 80

0 commit comments

Comments
 (0)