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