From b95cb4e137c6486efeef1f65dc73bbffc5e4fe4a Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Sat, 19 Oct 2024 13:32:32 -0500 Subject: [PATCH] snippets: Add SystemView RTT tracing snippet Adds a new snippet to enable tracing with SEGGER SystemView and RTT. Signed-off-by: Maureen Helm --- snippets/rtt-tracing/README.rst | 20 ++++++++++++++++++++ snippets/rtt-tracing/rtt-tracing.conf | 12 ++++++++++++ snippets/rtt-tracing/snippet.yml | 6 ++++++ 3 files changed, 38 insertions(+) create mode 100644 snippets/rtt-tracing/README.rst create mode 100644 snippets/rtt-tracing/rtt-tracing.conf create mode 100644 snippets/rtt-tracing/snippet.yml diff --git a/snippets/rtt-tracing/README.rst b/snippets/rtt-tracing/README.rst new file mode 100644 index 00000000000..f41f1a2c55b --- /dev/null +++ b/snippets/rtt-tracing/README.rst @@ -0,0 +1,20 @@ +.. _snippet-rtt-tracing: + +SystemView RTT Tracing Snippet (rtt-tracing) +############################################ + +.. code-block:: console + + west build -S rtt-tracing [...] + +Overview +******** + +This snippet enables SEGGER SystemView RTT support with the tracing subsystem. + +Requirements +************ + +Hardware support for: + +- :kconfig:option:`CONFIG_HAS_SEGGER_RTT` diff --git a/snippets/rtt-tracing/rtt-tracing.conf b/snippets/rtt-tracing/rtt-tracing.conf new file mode 100644 index 00000000000..0f00c54da81 --- /dev/null +++ b/snippets/rtt-tracing/rtt-tracing.conf @@ -0,0 +1,12 @@ +# Copyright (c) 2024 Analog Devices, Inc. +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_USE_SEGGER_RTT=y + +CONFIG_DEBUG_OPTIMIZATIONS=n +CONFIG_DEBUG_THREAD_INFO=y + +CONFIG_TRACING=y +CONFIG_SEGGER_SYSTEMVIEW=y +CONFIG_SEGGER_SYSTEMVIEW_BOOT_ENABLE=n +CONFIG_SEGGER_SYSVIEW_POST_MORTEM_MODE=n diff --git a/snippets/rtt-tracing/snippet.yml b/snippets/rtt-tracing/snippet.yml new file mode 100644 index 00000000000..9a4f6b498db --- /dev/null +++ b/snippets/rtt-tracing/snippet.yml @@ -0,0 +1,6 @@ +# Copyright (c) 2024 Analog Devices, Inc. +# SPDX-License-Identifier: Apache-2.0 + +name: rtt-tracing +append: + EXTRA_CONF_FILE: rtt-tracing.conf