Difference between revisions of "J-Link RTT Viewer"

From SEGGER Wiki
Jump to: navigation, search
(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...")
 
Line 26: Line 26:
 
debugger or simply J-Link Commander. If the RTT Control Block cannot be found automatically,
 
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.
 
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.
   
 
Please find a sample script file here: [[Media:SetRTTAddr_Sample.JLinkScript | SetRTTAddr_Sample.JLinkScript]]
 
Please find a sample script file here: [[Media:SetRTTAddr_Sample.JLinkScript | SetRTTAddr_Sample.JLinkScript]]
   
 
==== J-Link GDB Server ====
 
==== 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''.
+
When using J-Link GDB Server, the script file can be passed with the command line ''-scrpitfile'' or ''-sf''.

Revision as of 13:06, 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. 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 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.