WSL: USB Device not detected: Olimex ARM-USB-OCD-H JTAG Debugger

  • Windows build number:

Microsoft Windows [Version 10.0.14393] No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty

  • What I doing and what’s happening:
  1. plug in USB Debugger
  2. type at bash prompt:
sudo apt-get install libtool # installed; required ?
sudo apt-get install libusb-1.0 # installed; required ?
sudo apt-get update
sudo apt-get upgrade
ls /dev/
  • What’s wrong / what should be happening instead:

I expect to see /dev/ttyUSB0 (instead no new USB device found)

The device is otherwise visible in device manager (listed under “other devices”, but with warning “There are no compatible drivers for this device.” ), I can still connect the device to an Ubuntu VM, and it works there on the same physical machine and properly recognized / operational in the Ubuntu VM.

wsl-olimex

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 27

Most upvoted comments

I believe my work-around will also work for you. Run OpenOCD in Windows, but use your WSL GDB connects to the OpenOCD host in Windows.

On Fri, Jul 5, 2019 at 6:53 AM Gordon Tyler notifications@github.com wrote:

I have a similar problem with the XDS110 Debug Probe from Texas Instruments or the MSP-EXP432E401Y Launchpad development board (with builtin debug probe). It connects via USB and in Windows, OpenOCD detects it automatically. However, the Linux version of OpenOCD running under WSL does not detect it.

The debug probe’s COM port, which provides access to the connected device’s UART I/O, passed through as a /dev/ttyS device in WSL does work when I configure it with stty and access it with cu as described in that WSL blog https://blogs.msdn.microsoft.com/wsl/2017/04/14/serial-support-on-the-windows-subsystem-for-linux/ .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/WSL/issues/2185?email_source=notifications&email_token=ABF3A37XZF3E537M6QHMW6DP55G5FA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZJSOIQ#issuecomment-508765986, or mute the thread https://github.com/notifications/unsubscribe-auth/ABF3A3YU5QLK75IJB7LRS43P55G5FANCNFSM4DN3NGKQ .

I have been successful running the win32 openocd and eclipse + build tools in wsl.

@therealkenc I believe libusb is required for the Olimex JTAG debugger. I have it installed:

0 $ apt-cache policy libusb-1.0
libusb-1.0-0:
  Installed: 2:1.0.17-1ubuntu2
  Candidate: 2:1.0.17-1ubuntu2
  Version table:
 *** 2:1.0.17-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
libusb-1.0-0-dbg:
  Installed: 2:1.0.17-1ubuntu2
  Candidate: 2:1.0.17-1ubuntu2
  Version table:
 *** 2:1.0.17-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
libusb-1.0-0-dev:
  Installed: 2:1.0.17-1ubuntu2
  Candidate: 2:1.0.17-1ubuntu2
  Version table:
 *** 2:1.0.17-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
libusb-1.0-doc:
  Installed: 2:1.0.17-1ubuntu2
  Candidate: 2:1.0.17-1ubuntu2
  Version table:
 *** 2:1.0.17-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

From the User Voice link, it sounds like some folks don’t agree that “Add USB Device” is complete, as the completion is for “USB serial & mounting of FAT*/NTFS formatted USB sticks”. Probably right: may need to open a new issue for this type of device.

@gojimmypi - I am guessing your device is i2c (or something) rather than RS232? If so yeah, not supported yet.

The cool part is the original User Voice says quoth: “This ask is specifically for adding USB Device support to WSL - i.e. exposing USB busses and devices to the OS.” In other words support for libusb, exactly what you want. It’s closed now. Doing that is kind of their thing. I guess open another one. Possibly with the same title.