-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. Signed-off-by: Sebastian Głąb <[email protected]>
- Loading branch information
1 parent
417a9e8
commit 0a42cc8
Showing
12 changed files
with
640 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
|
||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
|
||
if(NOT (CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP)) | ||
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample") | ||
endif() | ||
|
||
project(nrf_coresight_stm) | ||
|
||
target_sources(app PRIVATE src/main.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
source "share/sysbuild/Kconfig" | ||
|
||
config CORESIGHT_STM_USE_REMOTE_1 | ||
bool "Use first remote core" | ||
default "y" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpuapp" | ||
|
||
config CORESIGHT_STM_USE_REMOTE_2 | ||
bool "Use second remote core" | ||
|
||
config CORESIGHT_STM_USE_REMOTE_3 | ||
bool "Use third remote core" | ||
|
||
|
||
config REMOTE_1_BOARD | ||
string | ||
default "nrf54h20dk/nrf54h20/cpurad" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpuapp" | ||
depends on CORESIGHT_STM_USE_REMOTE_1 | ||
|
||
config REMOTE_2_BOARD | ||
string | ||
default "nrf54h20dk/nrf54h20/cpuppr" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpuapp" | ||
depends on CORESIGHT_STM_USE_REMOTE_2 | ||
|
||
config REMOTE_3_BOARD | ||
string | ||
default "nrf54h20dk/nrf54h20/cpuflpr" if "$(BOARD)${BOARD_QUALIFIERS}" = "nrf54h20dk/nrf54h20/cpuapp" | ||
depends on CORESIGHT_STM_USE_REMOTE_3 |
12 changes: 12 additions & 0 deletions
12
tests/boards/nrf/coresight_stm/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&cpuppr_vpr { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuppr_ram3x_region { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_LOG=y |
Oops, something went wrong.