J-Link RTT Logger

From SEGGER Wiki
Jump to: navigation, search

The J-Link RTT Logger is part of the J-Link Software Pack for Windows, Linux and macOS. It can be used to read data from any RTT Up-Channels and log them to a file. The source of the J-Link RTT Logger is part of the J-Link SDK and can be used as a starting point to integrate RTT in other PC applications, like debuggers.

J-Link RTT Logger opens a dedicated connection to J-Link and can be used stand-alone, without a preciously established debug connection.

The RTT Logger can be used to dedicate a channel for e.g. performance analysis data to the host.

Command line options

All command line options expect a value (except for "-?").

Command Explanation
-? Shows commandline options
-Device <DeviceName> Sets target device to <DeviceName>
-if <Interface> Sets target interface to <Interface>
-Speed <SpeedInKHZ> Sets speed to <SpeedInKHZ>
-USB <SN> Connects to J-Link with serial number <SN> via USB (0 == autodetect / device selection dialog).
-IP <IPAddr> Connects to J-Link with IP <IPAddr> via TCP/IP.
-RTTAddress <RTTAddress> Sets RTT address to <RTTAddress>
-RTTSearchRanges "<Ranges>" Sets RTT search ranges to <Ranges>. Please note that quotations are required.
-RTTChannel <RTTChannel> Sets RTT channel to <RTTChannel>