avrdude "did not find any USB device" error

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
PoorCoco
 
Posts: 3
Joined: Wed Dec 09, 2015 11:48 am

avrdude "did not find any USB device" error

Post by PoorCoco »

Hi all,

I purchased the USBtinyISP kit some time ago, and just came across it recently. It was one of the first devices I assembled from a kit, and back then I was using a crappy old RadioShack soldering iron, so I will state right off the bat that a faulty connection is far from impossible. I now own a decent SparkFun temp-controlled iron, and so if ripping it open and reheating the joints is a possible solution then I will try that.

Okay, all the details:
USBtinyISP kit v2.0
Ubuntu 15.04 on a System76 Gazelle Professional laptop
avrdude 6.1
Currently attempting to connect with a cheap Chinese Uno knockoff with a terrible USB interface chip I'm trying to circumvent, FWIW

Here's what lsusb has to say:
avrdude output information
avrdude output information
USBtinyISP-avrdude.png (18.1 KiB) Viewed 1482 times
And here's Arduino IDE grumbling when I attempt to upload through the programmer:
Arduino IDE error output
Arduino IDE error output
IDE-error-USBtinyISP.png (11.78 KiB) Viewed 1482 times
Also I have added a udev rule, as suggested:

Code: Select all

st@MajorTom:~$ more /etc/udev/rules.d/USBTinyISP.rules 
UBSYSTEM=="usb", ATTR{product}=="USBtiny", ATTR{idProduct}=="0c9f", ATTRS{idVendor}=="1781", MODE="0660", GROUP="dialout"
and I am a member of the dialout group.

Finally, the behaviour of the device. The green LED illuminates but the red one does not; the Arduino board powers up when the ICSP cable is connected.

Any suggestions?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

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

Post by adafruit_support_rick »

I'd expect the error message to refer to "USBtiny", not to "USB". You've got the programmer set to USBtinyISP?

User avatar
PoorCoco
 
Posts: 3
Joined: Wed Dec 09, 2015 11:48 am

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

Post by PoorCoco »

Oh, silly me: I was uploading using the normal process, not Upload Using Programmer.

But that gives me another error:

Code: Select all

avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted
Now, I can successfully overcome this by running Arduino as root (just did this, hooray!), but for obvious reasons I don't want to do this regularly. What do I have to change to grant my usual account permission to execute this?

I'm glad to see this is not a hardware issue, and I can finally start using my ISP. :-)

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

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

Post by adafruit_support_rick »

rc=-1 means that the USBtiny can't talk to the ATmega328. You have it powered? You're on the right 2x3 connector?

User avatar
PoorCoco
 
Posts: 3
Joined: Wed Dec 09, 2015 11:48 am

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

Post by PoorCoco »

Derp, I just saw this now.

Yes, it's correctly powered. But the programmer only works when Arduino IDE is run with root permissions. It's baffling.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”