Skip to content

Commit

Permalink
snippets: Add SystemView RTT tracing snippet
Browse files Browse the repository at this point in the history
Adds a new snippet to enable tracing with SEGGER SystemView and RTT.

Signed-off-by: Maureen Helm <maureen.helm@analog.com>
  • Loading branch information
MaureenHelm authored and carlescufi committed Oct 23, 2024
1 parent 94a6b82 commit b95cb4e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
20 changes: 20 additions & 0 deletions snippets/rtt-tracing/README.rst
Original file line number Diff line number Diff line change
@@ -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`
12 changes: 12 additions & 0 deletions snippets/rtt-tracing/rtt-tracing.conf
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions snippets/rtt-tracing/snippet.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b95cb4e

Please sign in to comment.