snippets: Add nordic-log-stm-dict snippet
Add snippet which configures logging using Coresight STM on nrf54h20. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
4b20c3d4d6
commit
89182f64dd
5 changed files with 39 additions and 0 deletions
11
snippets/nordic-log-stm-dict/README.rst
Normal file
11
snippets/nordic-log-stm-dict/README.rst
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
.. _nordic-log-stm-dict:
|
||||||
|
|
||||||
|
Nordic Dictionary-based STM logging snippet (nordic-log-stm-dict)
|
||||||
|
#################################################################
|
||||||
|
|
||||||
|
Overview
|
||||||
|
********
|
||||||
|
|
||||||
|
This snippet allows users to build Zephyr with the dictionary-based logging to
|
||||||
|
the Coresight STM stimulus ports. Data is collected in ETR buffer. Data from ETR
|
||||||
|
buffer is output on UART.
|
1
snippets/nordic-log-stm-dict/boards/nrf54h20_cpuapp.conf
Normal file
1
snippets/nordic-log-stm-dict/boards/nrf54h20_cpuapp.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_UART_ASYNC_API=y
|
14
snippets/nordic-log-stm-dict/boards/nrf54h20_cpuapp.overlay
Normal file
14
snippets/nordic-log-stm-dict/boards/nrf54h20_cpuapp.overlay
Normal 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>;
|
||||||
|
};
|
5
snippets/nordic-log-stm-dict/log_stm_dict.conf
Normal file
5
snippets/nordic-log-stm-dict/log_stm_dict.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
CONFIG_LOG=y
|
||||||
|
CONFIG_TEST_LOGGING_DEFAULTS=n
|
||||||
|
CONFIG_LOG_FRONTEND=y
|
||||||
|
CONFIG_LOG_FRONTEND_ONLY=y
|
||||||
|
CONFIG_LOG_FRONTEND_STMESP=y
|
8
snippets/nordic-log-stm-dict/snippet.yml
Normal file
8
snippets/nordic-log-stm-dict/snippet.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
name: nordic-log-stm-dict
|
||||||
|
append:
|
||||||
|
EXTRA_CONF_FILE: log_stm_dict.conf
|
||||||
|
boards:
|
||||||
|
/.*/nrf54h20/cpuapp/:
|
||||||
|
append:
|
||||||
|
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20_cpuapp.overlay
|
||||||
|
EXTRA_CONF_FILE: boards/nrf54h20_cpuapp.conf
|
Loading…
Add table
Add a link
Reference in a new issue