Difference between revisions of "WSL"
Line 4: | Line 4: | ||
As of now WSL does not fully support USB devices. |
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 |
+ | In order to connect to a J-Link from WSL you either have to use the Ethernet / WiFi interface (if present, see [https://www.segger.com/products/debug-probes/j-link/models/model-overview/ Model overview]) |
or make use of the [[J-Link_Remote_Server | J-Link Remote Server ]] that runs on an another machine, capable of USB. |
or make use of the [[J-Link_Remote_Server | J-Link Remote Server ]] that runs on an another machine, capable of USB. |
||
Line 12: | Line 12: | ||
=== Requirements === |
=== Requirements === |
||
+ | * Windows 10 system which has the [[J-Link_Software_and_Documentation_Pack | J-Link Software and Documentation Pack]] installed |
||
+ | * WSL system which has the [[J-Link_Software_and_Documentation_Pack | J-Link Software and Documentation Pack]] installed |
||
* J-Link connected via USB to the host Windows 10 system |
* J-Link connected via USB to the host Windows 10 system |
||
− | * WSL system that has the [[J-Link_Software_and_Documentation_Pack | J-Link Software and Documentation Pack]] installed |
||
=== Steps === |
=== Steps === |
Revision as of 14:41, 27 April 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.
Example setup with USB
In this example we will connect to our J-Link (connected via USB) from WSL using the J-Link Remote Server on the host side and the J-Link Commander on the WSL side.
Requirements
- Windows 10 system which has the J-Link Software and Documentation Pack installed
- WSL system which has the J-Link Software and Documentation Pack installed
- J-Link connected via USB to the host Windows 10 system
Steps
- Start the J-Link Remote Server in LAN mode on the Windows 10 host system.
- Switch to the command-line prompt of your WSL Linux system
- Insert your target device into the following command and execute it:
JLinkExe -device <insert-your-device> -ip localhost -if SWD -speed 4000 -autoconnect 1