Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add segger RTT as a logger output implementation #658

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alloyed
Copy link

@Alloyed Alloyed commented Dec 8, 2024

with this PR, applications can use using Log = daisy::Logger<LOGGER_RTT>; to print their outputs using RTT over the ST-Link debug connection. this is faster than LOGGER_SEMIHOST, and a little easier to set up.

upstream docs: https://wiki.segger.com/RTT
origin of the vendored code: https://github.com/SEGGERMicro/RTT
The library is unmodified except for the CMakeLists.txt added.

I wrote this for myself, but if this is interesting I can definitely work on getting it merge ready!
(thanks to @stellar-aria for her existing RTT example)

TODO/Open questions:

  • Can we exclude this code for applications that aren't using it? (ala fatfs)
  • Makefile support
  • Should I be using git submodules instead?
  • Add an example to DaisyExamples (with vscode configuration)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant