Difference between revisions of "J-Link RTT Viewer"

From SEGGER Wiki
Jump to: navigation, search
Line 19: Line 19:
 
Under some circumstances, the RTT Control Block cannot be detected automatically.
 
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 happens for example when the RTT Control Block is not located in the RAM address range specified in the J-Link DLL.
The J-Link RTT Control block can set in the J-Link RTT Viewer Configuration Dialog, section ''RTT Control Block''.
+
The J-Link RTT Control Block can be set in the J-Link RTT Viewer Configuration Dialog, section ''RTT Control Block''.
   
 
=== Existing session mode ===
 
=== Existing session mode ===
In attach mode RTT Viewer does not need any settings. Select Existing Session. For attach
+
In attach mode RTT Viewer does not need any settings. For attach mode a connection to J-Link has to be opened
  +
and configured by another application like an IDE, debugger or simply J-Link Commander.
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,
+
If the RTT Control Block cannot be found automatically, configuration of its location has to be done by the debugger / application.
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
 
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
 
or via the J-Link - Web control panel.
 
or via the J-Link - Web control panel.

Revision as of 12:13, 28 February 2020

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. The J-Link RTT Control Block can be set in the J-Link RTT Viewer Configuration Dialog, section RTT Control Block.

Existing session mode

In attach mode RTT Viewer does not need any settings. For attach mode a connection to J-Link has to be opened and configured by another application like an IDE, 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 or via the J-Link - Web control panel.

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 passed with the command line -scrpitfile or -sf.