Skip to content

Commit

Permalink
snippets: rtt console
Browse files Browse the repository at this point in the history
Adds a snippet to enable RTT as console backend.

Signed-off-by: Helmut Lord <[email protected]>
  • Loading branch information
hlord2000 authored and nashif committed May 21, 2024
1 parent 7c06739 commit ddc1d87
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions snippets/rtt-console/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. _snippet-rtt-console:

RTT Console Snippet (rtt-console)
#########################################

.. code-block:: console
west build -S rtt-console [...]
Overview
********

This snippet redirects serial console output to SEGGER RTT.

Requirements
************

Hardware support for:

- :kconfig:option:`CONFIG_HAS_SEGGER_RTT`
- :kconfig:option:`CONFIG_CONSOLE`
3 changes: 3 additions & 0 deletions snippets/rtt-console/rtt-console.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
3 changes: 3 additions & 0 deletions snippets/rtt-console/snippet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: rtt-console
append:
EXTRA_CONF_FILE: rtt-console.conf

0 comments on commit ddc1d87

Please sign in to comment.