How to use alternative RTT viewer tools

See original GitHub issue

In our application firmware, we’re using Segger RTT over SWD (without an SWO pin) for console output.

Following cortex-debug release V0.4.0, we changed our project’s .vscode/launch.json in a branch to utilize the new built-in RTT support (diff pictured below). Now with that change, I can no longer connect to the console output with other tools, such as Segger’s RTT Viewer, or a telnet client on port 19021. How can I get that working again?

I see in the changelog, it says,

It is perfectly fine to have Cortex-Debug enable RTT but not use any display features. This way you can use external tools (like JLink tools or custom ones)

That seems to be referring to what I’m asking, but how do I “not use any display features”? And does that mean I need to edit the launch.json whenever I want to use a different tool?

I tried removing the "decoders" key & value from the "rttConfig" section in launch.json, and was able to connect with Segger RTT Viewer, but not a telnet client (KiTTY on port 19021). Is this what the quote above means? If so, why doesn’t it work with the telnet client?

Is there a way to make it both output to the built-in Terminal, and support support external viewers simultaneously? Or to let me choose between them at runtime (without making config file changes)?

… Currently, the main features that have me wanting to use other viewers are (1) logging to (uniquely named) files, and (2) per-line timestamping. If those were possible with VSCode / Cortex Debug, I would probably just use that, and not care about the external viewers, at least for the time being. But I don’t mind using external viewers to get those features. I just need some way to do it.

Thanks for your work on these tools and features. 😃

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
haneefdmcommented, Oct 6, 2021

I think we are done with this issue

1reaction
hwmaiercommented, Sep 25, 2021

Btw, in the next release, you will be able to add timestamps. Here is a sample output using SEGGERs RTT demo

Probably should go into a different thread, but you mentioned now time stamping here. This would be a very useful addition. Regards the time format, Wireshark for example allows to show absolute time or relative time. For a lot of cases I find time stamping with relative time in seconds.ms format since system start more easier to read. Just a suggestion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alternatives to SEGGER RTT and SystemView? : r/embedded
** SystemView is an extension to RTT, which allows you to view RTOS scheduling and events, which is very helpful if a complicated...
Read more >
RTT Viewer - J-Link Tools - Segger
RTT Viewer – GUI app for using all RTT features in a single application. Available for Windows, macOS and Linux. Learn more at...
Read more >
Top 10 RTT Software Alternatives 2022 - G2
Top 10 Alternatives to RTT Software · Acronis Cyber Backup · Veeam Backup & Replication · Arcserve UDP · Asigra Tigris Backup ·...
Read more >
How to use RTT Viewer (or similar) on GNU/Linux? - Nordic Q&A
It is pretty straight-forward to use J-Link RTT Viewer on Windows (as described in the Debugging with Real Time Terminal tutorial ).
Read more >
SEGGER_RTT Gives You the Debug Output You Wished ...
RTT can be readily employed as a bi-directional communications link — a lighter weight alternative to the occasionally cumbersome and resource heavy Arduino ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found