-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB Device not detected: Olimex ARM-USB-OCD-H JTAG Debugger #2185
Comments
@gojimmypi - Your Windows Build is 14393. From Windows Build 16176, it looks like to be able to use USB drives, CD drives, Network drives, etc.
And... WSL does not support any real physical devices outside Windows yet, so... "other devices" with warnig look like windows side problem. UPDATE: Hmm.... I'd like to say all devices are used throuh windows and no devices are dedicated to WSL only like vbox block usb while it's set to use that. Thanks @therealkenc :). |
With the exception of |
@sunjoong ah yes, there is mention of Version 16176 back in April: |
@gojimmypi - That could be available to you as preview version before public relase if you be join https://insider.windows.com/ . |
@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 |
@gojimmypi - For "There are no compatible drivers for this device", I found https://www.olimex.com/Products/ARM/JTAG/_resources/Installing-OpenOcd-Rev.G-drivers-for-Windows-7.pdf and https://www.olimex.com/Products/ARM/JTAG/_resources/OpenOCD_OnlinePackage_v1.1.zip , I'm not sure those be helpful but hope to. |
@sunjoong and @therealkenc - thanks for reply; the Olimex JTAG debugger is usually "natively" supported in Linux & despite that link, above - I have gotten it to work with Windows 10 in Visual Studio using things like VisualGDB without problems. I don't think it is a traditional "RS232" device, even though it shows up as /dev/ttyUSB0 - I thought I was an "insider" and recently received "creator" build at home (when I click on the link, I eventually end up on a page that says "welcome home"). Well, I suppose I'll just need to be patient and hopefully build 16176 will support it :) |
If your process on Real Linux is to install |
@therealkenc I believe
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. |
Agree with @therealkenc that opening a new user voice is the right thing to do here. The user voice mentioned above was crazy overloaded with anything usb (e.g. usb drives, usb serial, libusb, proprietary usb, ...) which made it hard to track. We closed it out after the usb drives and usb serial devices work with the hope more specific requests would come up like this one for libusb that can be more easily prioritized. |
I have been successful running the win32 openocd and eclipse + build tools in wsl. |
Could you share how you did that? I'm trying to do the same thing but with VS Code. Did you install OpenOCD in windows or WSL? |
Hi,
Run the win32 version of openocd in a command prompt and all the rest in
wsl. They will talk through the localhost.
Look at visualgdb as it makes developing a lot easier.
…On Mon, Jul 1, 2019, 04:14 wildwildwilliam ***@***.***> wrote:
I have been successful running the win32 openocd and eclipse + build tools
in wsl.
Could you share how you did that? I'm trying to do the same thing but with
VS Code. Did you install OpenOCD in windows or WSL?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2185?email_source=notifications&email_token=ABYLTJEKA4OE7EH5SFC5R3LP5GVEXA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY5GWCI#issuecomment-507144969>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYLTJAONNV7C7ZH7RDBARLP5GVEXANCNFSM4DN3NGKQ>
.
|
Thank you, that's brilliant! I didn't realize the WSL and Win share the
same IP address, so they are on the same local host.
On Mon, Jul 1, 2019 at 4:20 AM Marcio Barbiani <[email protected]>
wrote:
… Hi,
Run the win32 version of openocd in a command prompt and all the rest in
wsl. They will talk through the localhost.
Look at visualgdb as it makes developing a lot easier.
On Mon, Jul 1, 2019, 04:14 wildwildwilliam ***@***.***>
wrote:
> I have been successful running the win32 openocd and eclipse + build
tools
> in wsl.
>
> Could you share how you did that? I'm trying to do the same thing but
with
> VS Code. Did you install OpenOCD in windows or WSL?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
#2185?email_source=notifications&email_token=ABYLTJEKA4OE7EH5SFC5R3LP5GVEXA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY5GWCI#issuecomment-507144969
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/ABYLTJAONNV7C7ZH7RDBARLP5GVEXANCNFSM4DN3NGKQ
>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2185?email_source=notifications&email_token=ABF3A3ZYBL7QDBZ4I7WJ2NLP5HSAVA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY5Z4FY#issuecomment-507223575>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABF3A3Y6SWQEJZ2BKR2ATULP5HSAVANCNFSM4DN3NGKQ>
.
|
For whoever comes after me, I followed the VS Code config in this post (https://higaski.at/vscode-esp32-debugging/), but ran OpenOCD in Windows (modify the command in tasks.json) so it can connect to the USB debugger. Everything works fine now! Finally! Here is my setup: VS Code + source code + OpenOCD in Win, toolchain+esp-gdb in WSL. The tricky part to run OpenOCD in Win because USB is not forwarded to WSL like serial ports. My debugger is ESP-Prog |
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 |
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 ***@***.***> 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
<#2185?email_source=notifications&email_token=ABF3A37XZF3E537M6QHMW6DP55G5FA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZJSOIQ#issuecomment-508765986>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABF3A3YU5QLK75IJB7LRS43P55G5FANCNFSM4DN3NGKQ>
.
|
Yes, that does work, however there are some snags. The Windows OpenOCD cannot open files from the Linux filesystem, only the Windows filesystem. If I open the source folder where it exists in my Windows filesystem as a WSL remote folder, then various other Linux apps fail or misbehave (e.g. git) because the line endings are wrong. There are ways to fix/workaround the latter but it's still a pain in the ass. |
I execute the windows version of OpenOCD in the WSL bash. eg.
/mnt/C/....blah blah ../openocd.exe -f interface/... -f board/...
…On Fri, Jul 5, 2019 at 1:25 PM Gordon Tyler ***@***.***> wrote:
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.
Yes, that does work, however there are some snags. The Windows OpenOCD
cannot open files from the Linux filesystem, only the Windows filesystem.
If I open the source folder where it exists in my Windows filesystem as a
WSL remote folder, then various other Linux apps fail or misbehave (e.g.
git) because the line endings are wrong. There are ways to fix/workaround
the latter but it's still a pain in the ass.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2185?email_source=notifications&email_token=ABF3A3ZP4OWS22PCSPJV2TTP56U35A5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZKIHVY#issuecomment-508855255>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABF3A37AOV5KRS3YTEZAR43P56U35ANCNFSM4DN3NGKQ>
.
|
That's not the problem. If I execute an |
Oh I see. I strictly build and flash in WSL. So OpenOCD is only for debugging.
——
Sent on a mobile phone
… On Jul 5, 2019, at 4:36 PM, Gordon Tyler ***@***.***> wrote:
That's not the problem. If I execute an openocd command from WSL bash to flash the device with a file that is in the Linux filesystem (e.g. /home/gtyler/dev/myproject/output/myproject.hex) then the Windows OpenOCD won't find that file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
What tool do you use for flashing from WSL?
On Fri, 5 Jul 2019 at 20:30, wildwildwilliam <[email protected]>
wrote:
… Oh I see. I strictly build and flash in WSL. So OpenOCD is only for
debugging.
——
Sent on a mobile phone
> On Jul 5, 2019, at 4:36 PM, Gordon Tyler ***@***.***>
wrote:
>
> That's not the problem. If I execute an openocd command from WSL bash to
flash the device with a file that is in the Linux filesystem (e.g.
/home/gtyler/dev/myproject/output/myproject.hex) then the Windows OpenOCD
won't find that file.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2185?email_source=notifications&email_token=AAFFQNEFLAYORJJ2WDXIWRLP57RSLA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZKPIIA#issuecomment-508884000>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFFQNH3ZC5HMBONV5ON3ZDP57RSLANCNFSM4DN3NGKQ>
.
|
Since I'm working with ESP32, so I'm using the factory provided make script
(command: "make flash"). Under the hood, the script calls esptool.py (
https://github.com/espressif/esptool). It flashes using the serial port.
On Sat, Jul 6, 2019 at 8:21 AM Gordon Tyler <[email protected]>
wrote:
… What tool do you use for flashing from WSL?
On Fri, 5 Jul 2019 at 20:30, wildwildwilliam ***@***.***>
wrote:
> Oh I see. I strictly build and flash in WSL. So OpenOCD is only for
> debugging.
>
> ——
> Sent on a mobile phone
>
> > On Jul 5, 2019, at 4:36 PM, Gordon Tyler ***@***.***>
> wrote:
> >
> > That's not the problem. If I execute an openocd command from WSL bash
to
> flash the device with a file that is in the Linux filesystem (e.g.
> /home/gtyler/dev/myproject/output/myproject.hex) then the Windows OpenOCD
> won't find that file.
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub, or mute the thread.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <
#2185?email_source=notifications&email_token=AAFFQNEFLAYORJJ2WDXIWRLP57RSLA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZKPIIA#issuecomment-508884000
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AAFFQNH3ZC5HMBONV5ON3ZDP57RSLANCNFSM4DN3NGKQ
>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2185?email_source=notifications&email_token=ABF3A33A6LTTZOLHIUSTH6TP6CZ53A5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZK3N6Q#issuecomment-508933882>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABF3A36F5R3BMIDOXS4G5P3P6CZ53ANCNFSM4DN3NGKQ>
.
|
I may be able to get the XDS110 to flash via serial port as well. Thanks
for the tip!
On Sun, 7 Jul 2019 at 12:23, wildwildwilliam <[email protected]>
wrote:
… Since I'm working with ESP32, so I'm using the factory provided make script
(command: "make flash"). Under the hood, the script calls esptool.py (
https://github.com/espressif/esptool). It flashes using the serial port.
On Sat, Jul 6, 2019 at 8:21 AM Gordon Tyler ***@***.***>
wrote:
> What tool do you use for flashing from WSL?
>
> On Fri, 5 Jul 2019 at 20:30, wildwildwilliam ***@***.***>
> wrote:
>
> > Oh I see. I strictly build and flash in WSL. So OpenOCD is only for
> > debugging.
> >
> > ——
> > Sent on a mobile phone
> >
> > > On Jul 5, 2019, at 4:36 PM, Gordon Tyler ***@***.***>
> > wrote:
> > >
> > > That's not the problem. If I execute an openocd command from WSL bash
> to
> > flash the device with a file that is in the Linux filesystem (e.g.
> > /home/gtyler/dev/myproject/output/myproject.hex) then the Windows
OpenOCD
> > won't find that file.
> > >
> > > —
> > > You are receiving this because you are subscribed to this thread.
> > > Reply to this email directly, view it on GitHub, or mute the thread.
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub
> > <
>
#2185?email_source=notifications&email_token=AAFFQNEFLAYORJJ2WDXIWRLP57RSLA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZKPIIA#issuecomment-508884000
> >,
> > or mute the thread
> > <
>
https://github.com/notifications/unsubscribe-auth/AAFFQNH3ZC5HMBONV5ON3ZDP57RSLANCNFSM4DN3NGKQ
> >
> > .
> >
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <
#2185?email_source=notifications&email_token=ABF3A33A6LTTZOLHIUSTH6TP6CZ53A5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZK3N6Q#issuecomment-508933882
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/ABF3A36F5R3BMIDOXS4G5P3P6CZ53ANCNFSM4DN3NGKQ
>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2185?email_source=notifications&email_token=AAFFQNF72Q6JKQNOIWBENT3P6IJ7JA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZLOWCI#issuecomment-509012745>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFFQNA2F5BJNGWUH3UR4CTP6IJ7JANCNFSM4DN3NGKQ>
.
|
The XDS110 can't be used to flash via a serial port, unfortunately. However, in Windows 10 1903, Windows OpenOCD can access files in the WSL filesystem. WSL sets the current working directory to the correct |
Thanks for sharing. I found this post with more detail:
https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-windows-10-version-1903/
…On Wed, Jul 10, 2019 at 6:31 AM Gordon Tyler ***@***.***> wrote:
The XDS110 can't be used to flash via a serial port, unfortunately.
However, in Windows 10 1903, Windows OpenOCD can access files in the WSL
filesystem. WSL sets the current working directory to the correct
\\wsl$\... path when executing a Windows app, so the Windows OpenOCD is
able to resolve relative paths on its command-line.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2185?email_source=notifications&email_token=ABF3A35CHDP6K3WQZ34HOJTP6XQBPA5CNFSM4DN3NGK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZTOYSQ#issuecomment-510061642>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABF3A32KNOJU3JC6FTHDUTDP6XQBPANCNFSM4DN3NGKQ>
.
|
Landing zone for |
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
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.
The text was updated successfully, but these errors were encountered: