You can add remote J-Link devices that are accessible over the network to work with boards connected to remote debuggers. This allows you to flash and debug applications on devices that are not physically connected to your machine.
The following procedure shows how to connect to a device within LAN. The device is connected to the remote server using USB.
To add support for remote devices, complete the following steps:
- On the machine where the J-Link debugger is physically connected, open SEGGER J-Link Remote Server.
Use the latest version tested and recommended by Nordic Semiconductor, as per prerequisites. -
Configure the J-Link remote server to match your network configuration.
For example, the following configuration example uses USB as the J-Link connection and provides the serial number of the remote device; the server is configured to use LAN and uses the default listening port. -
Copy the listening port number.
-
Click OK.
The remote server starts and waits for client connection. -
Copy the client connection IP string.
-
Open VS Code settings.
You can do this by selecting File > Preferences > Settings. -
Search for
nrf-connect.remoteDevices. -
Click Add Item to add a new entry to the configuration array.
-
Provide the entry in the format
IP:PORT, whereIPis the IP address of the remote device andPORTis the listening port number, and click OK. -
Close VS Code settings.
-
In the Connected Devices View, click Refresh Connected Devices.
The newly added remote device is now visible in the list alongside locally connected devices.
Note
Real-time monitoring of device connection and disconnection is not available for remote devices, as the extension cannot detect when a remote device is physically connected or disconnected from the J-Link debugger. You may need to manually refresh the Connected Devices View to see connection status changes.
After adding remote devices, you can use them just like locally connected devices. For example, flash applications to them, link them to build configurations, or connect to them using RTT.