Page 1 of 1

[DONE] avrdude:did not find any USB device "usb"

PostPosted: Dec 14th, '15, 08:12
by janpihlgren
I whish to use Arduino IDE in MGA5x64.
When I try to load a sketch to an Arduino as root I get the following message:
[root@Humlan trinket-arduino-1.0.5]# Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7

Binary sketch size: 1 084 bytes (of a 28 672 byte maximum)
Binary sketch size: 1 084 bytes (of a 28 672 byte maximum)
avrdude: usbdev_open(): did not find any USB device "usb"

As serial port I only have the choice: /dev/ttyS0
What to do?

Re: avrdude:did not find any USB device "usb"

PostPosted: Dec 14th, '15, 14:46
by doktor5000
Seems a known issue, see http://forum.arduino.cc/index.php?topic=150690.0
or maybe http://arduino.stackexchange.com/questi ... device-usb
FWIW, those are the two top results when searching for the error message ...

Re: avrdude:did not find any USB device "usb"

PostPosted: Dec 14th, '15, 14:59
by janpihlgren
Thanks for information.
Switching from
programmer = AVRISP mkII
to
programmer = USBtinyISP
solved the problem-
Thanks! :)
Edit.
To fast with my answer.
Trying to switch between different programmers doesn't solv the problem.
The Arduino IDE can't find the USB-device.
I get the following message:
averdude: Error: Could not find USBtiny device (0x1781/0xc9f)

Re: avrdude:did not find any USB device "usb"

PostPosted: Dec 14th, '15, 16:20
by doktor5000
Some search results on that one:
http://stackoverflow.com/questions/3085 ... 1781-0xc9f
https://forum.sparkfun.com/viewtopic.php?f=7&t=29243
https://forum.arduino.cc/index.php?topic=264769.0
https://learn.adafruit.com/usbtinyisp/help

You can also take a look at some older threads for related issues, e.g. viewtopic.php?f=8&t=8922 and viewtopic.php?f=41&t=7893
or hope that someone who's actually using avrdude chimes in and might have an idea.

Otherwise you might be better off asking directly in some Arduino-related forum like the ones linked to above.

Re: avrdude:did not find any USB device "usb"

PostPosted: Dec 14th, '15, 21:31
by juergen_harms
That looks like the USB device handler not recognising the characteristics of the programmer when it tries to match a USB device to the list of known ids, and therefore complaining. But I verified: both, the avrdude programme and the udev rules file, know about the USBtiny, and expect it to have 0x1781 and 0x0c9f as provider-id and device-id respectively. That might not be correct, providers may modify these ids when they do important upgrades.

To verify this, I suggest you do lsusb (on a command line, no need to be root - but better do an unplug-replug sequence of your programmer to start with). In the list you obtain in reply, there should be a line that refers to your programmer and which contains these 2 hex values. Not having a USBtiny programmer, I cannot do much more than guesswork.

Juergen

Re: avrdude:did not find any USB device "usb"

PostPosted: Dec 14th, '15, 21:51
by juergen_harms
Some afterthought: make sure you use avrdude version 6.1.-7 - avrdude 6.1 contains quite some re-coding with respect to 5.1 (including USB communication). And, I can confirm that avrdude-6.1 correctly talks to Mageia-5 usb": my jtagice3 is a USB device and works perfectly with avrdude. I have no experience with the USB-2 / USB-3 issues mentioned in one of the references mentioned in this thread - I suggest you try to stick with USB-2.

Re: avrdude:did not find any USB device "usb"

PostPosted: Dec 15th, '15, 04:09
by janpihlgren
I checked MCC and avrdude is:
avrdude.png
avrdude.png (7.13 KiB) Viewed 3952 times


lsusb is giving this result:
$ lsusb
Bus 002 Device 005: ID 1781:0c9f Multiple Vendors USBtiny
Bus 002 Device 004: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 002 Device 003: ID 17ef:1008 Lenovo Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0bc2:50a5 Seagate RSS LLC FreeAgent GoFlex Desk USB 3.0
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 17ef:4816 Lenovo Integrated Webcam
Bus 001 Device 008: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 007: ID 413c:2005 Dell Computer Corp. RT7D50 Keyboard
Bus 001 Device 005: ID 17ef:1007 Lenovo
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. BCM2045B (BDC-2.1)
Bus 001 Device 003: ID 147e:2016 Upek Biometric Touchchip/Touchstrip Fingerprint Sensor
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$

and I can see the tinyUSB on the first row.

When I started my laptop this morning avrdude find the USB-device and I could upload the program.
Mybee the problem have to do with the laptop. Because I some times can have the Arduino IDE to work correctly.
Now I know where to look when I get in trouble.
Thanks for help!

Re: avrdude:did not find any USB device "usb"

PostPosted: Dec 15th, '15, 12:37
by doktor5000
FWIW, some other threads mentioned that there are issues with USB3 ports and also with USB hubs, so best try an USB 2.0 port, directly attached.

And please mark the thread accordingly by editing the topic of the first post and prefix it by [DONE], thanks