Skip to content

Commit

Permalink
tests: boards: nrf: coresight_stm: Add performance test for STM
Browse files Browse the repository at this point in the history
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
nordic-segl committed Sep 26, 2024
1 parent 417a9e8 commit 0a42cc8
Show file tree
Hide file tree
Showing 12 changed files with 640 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/boards/nrf/coresight_stm/CMakeLists.txt
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)
31 changes: 31 additions & 0 deletions tests/boards/nrf/coresight_stm/Kconfig.sysbuild
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
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";
};
1 change: 1 addition & 0 deletions tests/boards/nrf/coresight_stm/prj.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_LOG=y
Loading

0 comments on commit 0a42cc8

Please sign in to comment.