April 27, 2024, 09:44:24 AM

ARM-USB-TINY-H with VMware Player

Started by celebrariel, February 06, 2015, 12:06:57 PM

Previous topic - Next topic

celebrariel

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

JohnS

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

LubOlimex

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 ?

Can you also try with OpenOCD 0.7.0 ?

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

JohnS

Wrong permissions won't cause the disconnect/reconnect stuff.

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

John

celebrariel

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.

LubOlimex

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
Technical support and documentation manager at Olimex

JohnS

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