J-Link RTT Viewer

From SEGGER Wiki
Revision as of 12:04, 28 February 2020 by Fabian (talk | contribs) (Created page with "J-Link RTT Viewer is a GUI application available for Windows, MacOS and Linux. It enables you to use all features of RTT in one application. It supports: * Displaying terminal...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

J-Link RTT Viewer is a GUI application available for Windows, MacOS and Linux. It enables you to use all features of RTT in one application. It supports:

  • Displaying terminal output of Channel 0.
  • Up to 16 virtual Terminals on Channel 0.
  • Sending text input to Channel 0.
  • Interpreting text control codes for colored text and controlling the Terminal.
  • Logging terminal data into a file.
  • Logging data on Channel 1.

This article is still under construction. For more information about J-Link RTT Viewer please refer to the J-Link user manual (UM08001)

The RTT Control Block

Specifying the RTT Control Block address

Under some circumstances, the RTT Control Block cannot be detected automatically. This happens for example when the RTT Control Block is not located in the RAM address range specified in the J-Link DLL. This can be done via the RTT Viewer Configuration Dialog, section RTT Control Block.

Existing session mode

In attach mode RTT Viewer does not need any settings. Select Existing Session. For attach mode a connection to J-Link has to be opened and configured by another application like a debugger or simply J-Link Commander. If the RTT Control Block cannot be found automatically, configuration of its location has to be done by the debugger / application. When using an IDE, the easiest way to achieve this is to use a J-Link Script File which can be passed to the DLL via the IDE.

Please find a sample script file here: SetRTTAddr_Sample.JLinkScript

J-Link GDB Server

When using J-Link GDB Server, the script file can be the GDB Server with the command line -scrpitfile or -sf.