PebbleOS v4.47.0-1161-g94e3d98da
Loading...
Searching...
No Matches
SEGGER RTT

UART port over a channel of the SEGGER RTT control block. More...

Macros

#define RTT_UART   (&pbl_uart_rtt)
 The RTT port.
 

Detailed Description

UART port over a channel of the SEGGER RTT control block.

A serial port that a debug probe reads and writes over SWD while the target runs: it needs no pins, and sends from the first instruction and from the fault handler. It uses up and down channel CONFIG_UART_RTT_CHANNEL.

Bytes sent while the channel is full are dropped, so the port never blocks without a probe. Received bytes are polled every CONFIG_UART_RTT_POLL_MS while reception is enabled, which keeps the system out of its deepest idle states meanwhile. A flush from an interrupt, as the fault handler's before a reboot, waits up to CONFIG_UART_RTT_FLUSH_TIMEOUT_MS for a probe seen reading to empty the channel. Line settings have no effect.

Macro Definition Documentation

◆ RTT_UART

#define RTT_UART   (&pbl_uart_rtt)

The RTT port.