Difference between revisions of "WSL"

From SEGGER Wiki
Jump to: navigation, search
(J-Link specifics)
Line 24: Line 24:
 
# Switch to the command-line prompt of your WSL Linux system
 
# Switch to the command-line prompt of your WSL Linux system
 
# Insert the target device and interface in the following command and execute it: '''JLinkExe -device <your-device> -ip localhost -if <target-interface> -speed 4000 -autoconnect 1'''
 
# Insert the target device and interface in the following command and execute it: '''JLinkExe -device <your-device> -ip localhost -if <target-interface> -speed 4000 -autoconnect 1'''
# Now you should be able to make use of [[J-Link_Commander#Commands | commands]] of the Commander.
+
# Now you should be able to make use of the [[J-Link_Commander#Commands | commands]] of the J-Link Commander.

Revision as of 14:12, 11 May 2020

Windows subsystem for Linux (WSL) is a part of Windows 10, that allows the user to run Linux applications on Windows.

J-Link specifics

As of now WSL does not fully support USB devices.

In order to connect to a J-Link from WSL you either have to use the Ethernet / WiFi interface (if present, see Model overview) or make use of the J-Link Remote Server that runs on an another machine, capable of USB.

For more details please refer to the following article: Connecting to J-Link using J-Link Remote Server

Example setup with USB

J-Link Commander

In this example we will connect to our J-Link (connected via USB to the host) from WSL using the J-Link Remote Server on the host side and the J-Link Commander on the WSL side.

Requirements

Steps

  1. Start the J-Link Remote Server in LAN mode on the Windows 10 host system and select the correct J-Link if prompted.
  2. Switch to the command-line prompt of your WSL Linux system
  3. Insert the target device and interface in the following command and execute it: JLinkExe -device <your-device> -ip localhost -if <target-interface> -speed 4000 -autoconnect 1
  4. Now you should be able to make use of the commands of the J-Link Commander.