|
SerialRTT 1.0.0
Arduino Stream-compatible SEGGER RTT serial implementation
|
API docs: https://crabel99.github.io/SerialRTT/
SerialRTT is an Arduino Stream implementation backed by SEGGER RTT.
It is intended as a fast debug-output alternative to USB CDC serial for Cortex-M/A/R, RISC-V, and ARMv8-AR projects where a J-Link debugger is available.
Stream/Print compatible API (print, println, printf, read, available)SEGGER_RTT_MODE_NO_BLOCK_SKIPAdd as a library dependency in PlatformIO or copy into your lib/ folder.
See examples/basic_serial_rtt/basic_serial_rtt.ino for a complete example.
Example platformio.ini snippet using J-Link RTT and the bundled pre-test helper script:
Notes:
scripts/pre_test.py starts JLinkGDBServerCLExe and opens the RTT socket.$PROJECT_LIBDEPS_DIR/$PIOENV/SerialRTT/scripts/pre_test.py.JLINK_DEVICE to a SEGGER-supported device name if auto-detection is not sufficient.Standard PlatformIO options used by the pre-test script:
This repo vendors SEGGER RTT under src/SEGGER_RTT via git subtree.
One-time setup:
Updates are handled by the scheduled workflow in .github/workflows/segger-subtree.yml.
This repository includes code under multiple licenses:
LICENSE)See THIRD_PARTY_NOTICES.md for details.