snippets: Add nordic-log-stm for logging using STMESP

Add snippet which allows configuration of logging using STMESP
frontend using standalone mode.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2024-05-07 08:59:44 +02:00 committed by Anas Nashif
commit a21a1b073d
5 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,11 @@
.. _nordic-log-stm:
Nordic Standalone STM logging snippet (nordic-log-stm)
######################################################
Overview
********
This snippet allows users to build Zephyr with the logging to the Coresight STM
stimulus ports. Data is collected in ETR buffer. Data from ETR buffer is
decoded and human-readable data is output on the UART.

View file

@ -0,0 +1 @@
CONFIG_UART_ASYNC_API=y

View file

@ -0,0 +1,14 @@
/*
* Copyright (c) 2024 Nordic Semiconductor
* SPDX-License-Identifier: Apache-2.0
*/
&tbm {
status = "okay";
};
&tddconf {
status = "okay";
stmsink = "etr";
portconfig = <0>;
};

View file

@ -0,0 +1,6 @@
CONFIG_LOG=y
CONFIG_TEST_LOGGING_DEFAULTS=n
CONFIG_LOG_FRONTEND=y
CONFIG_LOG_FRONTEND_ONLY=y
CONFIG_LOG_FRONTEND_STMESP=y
CONFIG_LOG_FRONTEND_STMESP_FSC=y

View file

@ -0,0 +1,8 @@
name: nordic-log-stm
append:
EXTRA_CONF_FILE: log_stm.conf
boards:
/.*/nrf54h20/cpuapp/:
append:
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20_cpuapp.overlay
EXTRA_CONF_FILE: boards/nrf54h20_cpuapp.conf