Rtt Communication - Segger J-Link User Manual

Hide thumbs Also See for J-Link:
Table of Contents

Advertisement

360

13.3 RTT Communication

Communication with the RTT implementation on the target can be done with different
applications. The functionality can even be integrated into custom applications using
the J-Link SDK.
Using RTT in the target application is made easy. The implementation code is freely
available for download and can be integrated into any existing application. To com-
municate via RTT any J-Link can be used.
The simple way to communicate via the Terminal (Channel 0) is to create a connec-
tion to localhost:19021 with a Telnet client or similar, when a connection to J-Link
(e.g. via a debug session) is active.
The J-Link Software Package comes with some more advanced applications, which
demonstrates RTT functionality for different purposes.
13.3.1 RTT Viewer
The J-Link RTT Viewer is described in
13.3.2 RTT Client
J-Link RTT Client acts as a Telnet client, but automatically tries to reconnect to a J-
Link connection when a debug session is closed.
The J-Link RTT Client is part of the J-Link Software and Documentation Pack for Win-
dows, Linux and OS X and can be used for simple RTT use cases.
13.3.3 RTT Logger
With J-Link RTT Logger, data from Up-Channel 1 can be read and logged to a file. This
channel can for example be used to send performance analysis data to the host.
J-Link RTT Logger opens a dedicated connection to J-Link and can be used stand-
alone, without running a debugger.
The application is part of the J-Link Software and Documentation Pack for Windows,
Linux and OS X.
The source of J-Link RTT Logger can be used as a starting point to integrate RTT in
other PC applications, like debuggers, and is part of the J-Link SDK.
13.3.4 RTT in other host applications
RTT can also be integrated in any other PC application like a debugger or a data visu-
alizer in either of two ways.
1.
The application can establish a socket connection to the RTT Telnet Server which
is opened on localhost:19021 when a J-Link connection is active.
2.
The application creates its own connection to J-Link and uses the J-Link RTT API
which is part of the J-Link SDK to directly configure and use RTT.
J-Link / J-Trace (UM08001)
CHAPTER 13
J-Link RTT Viewer
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
.
RTT

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the J-Link and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

J-trace

Table of Contents

Save PDF