Olimex Support Forum

ARM => JTAG => Topic started by: celebrariel on February 06, 2015, 12:06:57 PM

Title: ARM-USB-TINY-H with VMware Player
Post by: celebrariel on February 06, 2015, 12:06:57 PM
Hello,

my system configuration:

- Host system: Windows 7 64bit
- Guest system: Xubuntu 32bit

On my Linux machine openocd 0.8 is installed. When I want to connect to my device I get the following error message:

QuoteError: no device found
Error: unable to open ftdi device with vid 15ba, pid 002a, description 'Olimex OpenOCD JTAG ARM-USB-TINY-H' and serial '*'

I suppose that there is a problem with the usb adapter itself (correct me if I am wrong).
When I enter lsusb in the console I get the following output:

QuoteBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

When I check the dmesg log I can see that the adapter does connect/disconnect every few seconds:

Quote[   89.775019] usb 1-1: new high-speed USB device number 3 using ehci-pci
[   90.014300] usb 1-1: New USB device found, idVendor=15ba, idProduct=002a
[   90.014302] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   90.014304] usb 1-1: Product: Olimex OpenOCD JTAG ARM-USB-TINY-H
[   90.014305] usb 1-1: SerialNumber: OLY1ALYI
[  110.064768] usb 1-1: USB disconnect, device number 3
[  114.077114] usb 1-1: new high-speed USB device number 4 using ehci-pci
[  114.317708] usb 1-1: New USB device found, idVendor=15ba, idProduct=002a
[  114.317711] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  114.317713] usb 1-1: Product: Olimex OpenOCD JTAG ARM-USB-TINY-H
[  114.317714] usb 1-1: SerialNumber: OLY1ALYI
[  134.368981] usb 1-1: USB disconnect, device number 4
[  143.483824] usb 1-1: new high-speed USB device number 5 using ehci-pci
[  143.734701] usb 1-1: New USB device found, idVendor=15ba, idProduct=002a
[  143.734704] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  143.734706] usb 1-1: Product: Olimex OpenOCD JTAG ARM-USB-TINY-H
[  143.734707] usb 1-1: SerialNumber: OLY1ALYI
[  163.840694] usb 1-1: USB disconnect, device number 5
[  201.097500] usb 1-1: new high-speed USB device number 6 using ehci-pci
[  201.441889] usb 1-1: New USB device found, idVendor=15ba, idProduct=002a
[  201.441892] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  201.441894] usb 1-1: Product: Olimex OpenOCD JTAG ARM-USB-TINY-H
[  201.441895] usb 1-1: SerialNumber: OLY1ALYI

Does anybody know what could the reason that the USB connection is somewhat "unstable"?

Greets
Title: Re: ARM-USB-TINY-H with VMware Player
Post by: JohnS on February 06, 2015, 01:40:58 PM
Mine works on Linux so I think it's down to a bad USB port or what else you've got connected either to the TINY or the laptop.  Oh, might be a cable fault.

John
Title: Re: ARM-USB-TINY-H with VMware Player
Post by: LubOlimex on February 06, 2015, 02:48:24 PM
Hey there,

Did you set the proper permissions? When plugging in the arm-usb-tiny-h, you will not be granted access by default. To handle this you have to create a udev rule to give the debugger permissions. This rule assigns the device to the plugdev group – which was introduced in Linux for hot-pluggable devices – and then gives the group read and write access.

Did you stumble upon page 15 of the user's manual: https://www.olimex.com/Products/ARM/JTAG/_resources/ARM-USB-TINY_and_TINY_H_manual.pdf (https://www.olimex.com/Products/ARM/JTAG/_resources/ARM-USB-TINY_and_TINY_H_manual.pdf) ?

Can you also try with OpenOCD 0.7.0 ?

Best regards,
Lub/OLIMEX
Title: Re: ARM-USB-TINY-H with VMware Player
Post by: JohnS on February 06, 2015, 03:15:26 PM
Wrong permissions won't cause the disconnect/reconnect stuff.

I think it's bad port/power/cable or some such.

John
Title: Re: ARM-USB-TINY-H with VMware Player
Post by: celebrariel on February 06, 2015, 03:48:23 PM
QuoteDid you set the proper permissions?
Yes I did. In addition I tested running openocd as root.

QuoteDid you stumble upon page 15 of the user's manual?
Yes. The page you are referring to is for Windows systems. As I use windows just as host system for my virtual machine, do I still have to install the drivers on the windows machine?

If that's the case: Windows does not recognize the device, I get the message that a to the computer connected USB device is not working correctly. In addition, I don't see the device in the device manager as shown in the manual on page 15. The third party tool "Zadig" does not show the device, if connected, too.

QuoteCan you also try with OpenOCD 0.7.0 ?
I compiled this version and tried it but I get the same error.
Title: Re: ARM-USB-TINY-H with VMware Player
Post by: LubOlimex on February 06, 2015, 04:20:50 PM
Since we are wondering if the problem is with the debugger in general why don't you try if it works under the Windows 7? Or test with another Windows computer if it is possible?

This would somehow give us the idea if the problem is hardware related or software related.

As usual, avoid using: USB 3.0 ports, external USB hubs, long and cheap USB cables.

Best regards,
Lub/OLIMEX
Title: Re: ARM-USB-TINY-H with VMware Player
Post by: JohnS on February 06, 2015, 05:26:24 PM
I expect you would need to tell the Linux VM about the device via Windows somehow.

It will be much easier to use Linux itself e.g. dual boot.

John