Segger J-Link User Manual page 306

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

Advertisement

306
13.4.1.8
SEGGER_RTT_SetTerminal()
Set the "virtual" terminal to send following data on channel 0.
Syntax
void SEGGER_RTT_SetTerminal(char TerminalId);
Parameter
TerminalId
Example
//
// Send a string to terminal 1 which is used as error out.
//
SEGGER_RTT_SetTerminal(1);
SEGGER_RTT_WriteString(0,
SEGGER_RTT_SetTerminal(0);
Additional information
All following data which is sent via channel 0 will be printed on the set terminal until the
next change.
13.4.1.9
SEGGER_RTT_TerminalOut()
Send one string to a specific "virtual" terminal.
Syntax
int SEGGER_RTT_TerminalOut (char TerminalID, const char* s);
Parameter
TerminalId
s
Return value
Value
≥ 0
Number of bytes sent to the terminal.
< 0
Error
Example
//
// Sent a string to terminal 1 without changing the standard terminal.
//
SEGGER_RTT_TerminalOut(1,
Additional information
SEGGER_RTT_TerminalOut does not affect following data which is sent via channel 0.
13.4.1.10
SEGGER_RTT_Write()
Send data to the host on an RTT channel.
J-Link / J-Trace (UM08001)
CHAPTER 13
Id of the virtual terminal (0-9).
// Select terminal 1
"ERROR: Buffer
// Reset to standard terminal
Id of the virtual terminal (0-9).
Pointer to 0-terminated string to be sent.
Meaning
"ERROR: Buffer
Meaning
overflow");
Meaning
overflow.");
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
Implementation

Advertisement

Table of Contents

Troubleshooting

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