Selecting this option frees a UART port that the serial port would use. However, you always need a SEGGER J-Link debugger connected for RTT to work.
To connect to a device using RTT:
-
Connect the device to the same machine you are using to run the extension.
The device appears as an entry in the Connected Device View.Important
SEGGER J-Link compatibility is required for devices to show up in the Connected Devices View.
- If you are working on Windows and your device does not show up in the View, but it does have the J-Link OB on-board debug probe, check if you have SEGGER USB Driver for J-Link installed (required for support of older Nordic Semiconductor devices in nRF Util, as per extension prerequisites).
- Some devices, such as the BBC micro:bit, do not have J-Link by default. You can convert the onboard debug interface to a J-Link OB using the J-Link upgrade instructions.
-
Expand the device entry.
-
Click the Connect to RTT button to the right of the RTT entry to start an RTT connection.
The extension prompts you for configuration settings for the given connection type.
-
If you are using a multi-core device, select the core to connect to.
- Select the device to connect to.
-
Select one of the following memory address strategies:
- Search for RTT memory address automatically - This option scans the device memory for the control block.
- Choose from predefined options - This option scans the build configuration for predefined memory address. (This option is not available when you connect using the nRF RTT Terminal launch profile.)
- Specify RTT memory address - This option lets you type in the memory address.
After the connection is established, a new terminal entry is added in the Panel View, with its name corresponding to the name of your device if you renamed the device.
Tip
The extension saves the RTT connection settings for future use for each device. Next time you connect, you can select the previous connection settings from the quick pick menu or change them using the Change port settings button.