Skip to content

Commit 29208fe

Browse files
nordic-seglkartben
authored andcommitted
tests: boards: nrf: coresight_stm: Add performance test for STM
Extend STM testing with verification whether STM benchmark results are below predefined thresholds. Set thresholds arbitrarily. Add tests that allow code coverage calculation. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 2c5195c commit 29208fe

File tree

10 files changed

+525
-0
lines changed

10 files changed

+525
-0
lines changed

samples/boards/nordic/coresight_stm/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,7 @@ int main(void)
103103
timing_report(t_tpd, rpt_tp, "tracepoint_d32");
104104
#endif
105105

106+
/* Needed in coverage run to separate STM logs from printk() */
107+
k_msleep(400);
106108
return 0;
107109
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
cmake_minimum_required(VERSION 3.20.0)
8+
9+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10+
11+
if(NOT (CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP))
12+
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample")
13+
endif()
14+
15+
project(nrf_coresight_stm)
16+
17+
target_sources(app PRIVATE $ENV{ZEPHYR_BASE}/samples/boards/nordic/coresight_stm/src/main.c)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright 2024 Nordic Semiconductor ASA
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
source "share/sysbuild/Kconfig"
6+
7+
config APP_CPUPPR_RUN
8+
bool "Use PPR"
9+
10+
config APP_CPUFLPR_RUN
11+
bool "Use FLPR"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&cpuppr_vpr {
7+
status = "okay";
8+
};
9+
10+
&cpuppr_ram3x_region {
11+
status = "okay";
12+
};
13+
14+
&cpuflpr_vpr {
15+
status = "okay";
16+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_LOG=y

0 commit comments

Comments
 (0)