EasyManua.ls Logo

Segger J-Link - Page 365

Segger J-Link
480 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
365
Parameters
Example
//
// Send a string to terminal 1 which is used as error out.
//
SEGGER_RTT_SetTerminal(1); // Select terminal 1
SEGGER_RTT_WriteString(0, "ERROR: Buffer overflow");
SEGGER_RTT_SetTerminal(0); // Reset to standard terminal
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()
Description
Send one string to a specific "virtual" terminal.
Prototype
int SEGGER_RTT_TerminalOut (char TerminalID, const char* s);
Parameters
Return value
Example
//
// Sent a string to terminal 1 without changing the standard terminal.
//
SEGGER_RTT_TerminalOut(1, "ERROR: Buffer overflow.");
Additional information
SEGGER_RTT_TerminalOut does not affect following data which is sent via channel 0.
13.4.1.10SEGGER_RTT_Write()
Description
Send data to the host on an RTT channel.
Prototype
int SEGGER_RTT_Write (unsigned BufferIndex, const char* pBuffer, unsigned
NumBytes);
Parameter Meaning
TerminalId
Id of the virtual terminal (0-9).
Table 13.5: SEGGER_RTT_SetTerminal() parameter list
Parameter Meaning
TerminalId
Id of the virtual terminal (0-9).
s Pointer to 0-terminated string to be sent.
Table 13.6: SEGGER_RTT_TerminalOut() parameter list
>= 0 Number of bytes sent to the terminal.

Table of Contents

Other manuals for Segger J-Link

Related product manuals