Prepare J-Link RTT
- Install the SEGGER J-Link Software and Documentation Pack on the computer running Embedder, for its operating system and architecture.
- Connect the J-Link to that computer, power the target, and wire the probe for SWD or JTAG as the board requires.
- Use a firmware build that initializes RTT and writes to the up channel you plan to read.
Connect in the Monitor
- Open a Serial Monitor tab. See Open a Serial Monitor tab.
- Select an RTT entry in Port. The RTT settings appear.
- Select Device and choose the exact J-Link device name, such as
nRF52840_xxAA. A star marks devices suggested for your project. - Set Debug interface to SWD or JTAG, and set Frequency MHz to the probe speed. The default is 4 MHz.
- Leave RTT block set to Auto-detect. If channels aren’t found, choose the current build’s
.mapfile there, or enter the control block’s Address in hex. - Select Connect.
Until Embedder finds the firmware’s RTT channels, the list shows J-Link RTT ↑ Ch.0 and J-Link RTT ↓ Ch.0. Switching between RTT channels while connected reconnects the tab automatically. The bar shows how many J-Link probes are detected.
Use the same device and interface as any J-Link debugger session that’s already running. If Embedder needs a different device, interface, or speed, it restarts the J-Link GDB server, which disconnects active GDB sessions. Its approval prompt warns you when a device or interface change will do this. Starting the probe can affect target state, so review the attachment precautions before you investigate a live fault.
Read an up channel
Up channels carry output from the target. Name the channel your firmware uses:_SEGGER_RTT, or the control block address. Another firmware revision can place the buffers elsewhere. If the selected map file lacks the symbol, the bar shows _SEGGER_RTT not found in followed by the file name.
Send through a down channel
Down channels carry input to firmware that reads them. Up and down channel numbers refer to separate directions, so a logging up channel doesn’t mean an input channel exists. To send from the Monitor, use either approach:- Select an RTT ↓ Ch.N port, connect, and type in the send box.
- On an up-channel tab, select ↓ Open down channel. In the ↓ Down channel send panel, choose the channel and type the command.
Use RTT through a bridge
The Monitor’s RTT ports use a J-Link connected to your own computer. For a board on a remote bridge, ask Embedder for an RTT capture instead:- Ask Embedder to flash the firmware through that bridge in the current session. Bridge RTT reads from the firmware Embedder flashed, so it isn’t available until then.
- Ask for a capture with a duration or a stop string, such as
READY. The capture ends at the time limit or when the stop string appears.
Reuse captured output
Ask Embedder to read the history of the active RTT tab when the event has already happened. Keep the current connection and target settings when you preserve a fault. Structured event recordings need compatible trace instrumentation in the firmware. Ordinary RTT text isn’t a trace format; see Coverage and trace.Troubleshoot
- J-Link software missing: Embedder reports that the probe is detected but the J-Link software isn’t installed. Install it on the computer running Embedder, then reconnect.
Flash before monitoring RTT: nothing was flashed to that bridge in the current session. Preserve any fault evidence before you decide to program.Select a target device to use RTT: choose a Device before you connect.J-Link failed to start: the selected device may not match the connected hardware. Check Device, power, SWD/JTAG wiring, and Frequency MHz.- No channels: confirm the firmware initializes RTT, then select the current
.mapfile or enter the control block address. - Channel is silent: check the selected up channel and whether the firmware reaches its logging code.
- Send fails: the tab shows
[Send failed: RTT ...]when the connection is lost. Reconnect, and confirm the firmware reads that down channel. - Probe is busy: close other probe programs, or finish the active debugger or trace task before you reconnect.