0

avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

by kchester on Mon Jun 23, 2008 10:33 am

Hello all!

I've already read through the forum and the FAQs on how to fix this problem. As of right now I am completely stuck and can't figure this out, and I've been working at it for 2 days now.

I soldered the device together as per lady ada's instructions - this went smoothly and no issues there. I installed the drivers as she listed. EWhen I plug in the device, the green light goes on and Windows does recognize the device - it lists it as a LibUSB-Win32 Device.

When I type this into avr dude:
avrdude -c usbtiny -p t45
I get:
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)


Anyone have insight? Any help is appreciated because I am completely clueless at this point.

As for the target board I'm using, it's homemade for the ATtiny45.

kchester
 
Posts: 15
Joined: Mon Jun 23, 2008 10:29 am

by Hazard on Mon Jun 23, 2008 12:35 pm

Which version of WinAVR/avrdude and USBtiny drivers are you using?
Image
Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am
Location: Portugal

by magician13134 on Mon Jun 23, 2008 4:34 pm

Did you try simply unplugging and replugging in your USBTiny? A lot of people have that problem, it's a bit annoying, but a reset like that usually fixes it. Otherwise, I'm not sure
User avatar
magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am
Location: Ann Arbor

by adafruit on Mon Jun 23, 2008 11:36 pm

it sounds much like the library mismatch i warn about on the download page
http://ladyada.net/make/usbtinyisp/download.html

adafruit
 
Posts: 12149
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by kchester on Tue Jun 24, 2008 11:56 am

Well this morning, before I read all your posts, I moved the USBTiny over to my other PC running ubuntu. I set it up with AVRDude via apt-get install and ran it. Here's what I get now:

keithc@CityLabPC1:~$ avrdude -c usbtiny -p t45

avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted


Since this a lab PC, I do not have full root access. Is that required, or does this message mean something else?

As for the Windows XP PC that I've been trying to run it on, I installed first WinAVR and the USBTiny 1.10 drivers. AvrDude came with WinAVR and according to the page should support USBTiny out of the box. Am I wrong about this?

kchester
 
Posts: 15
Joined: Mon Jun 23, 2008 10:29 am

by adafruit on Tue Jun 24, 2008 3:00 pm

yea you may need root.
maybe try uninstalling the v10 driver and reinstalling v12 (who knows??)

adafruit
 
Posts: 12149
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by Hazard on Tue Jun 24, 2008 5:24 pm

Last time I installed USBtinyISP in a friend's computer, I installed the latest WinAVR and had to use 1.2 drivers.
Image
Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am
Location: Portugal

by kchester on Wed Jun 25, 2008 10:48 am

Ok, so I got root access to this PC. Here is my attempts to use the USBTiny ISP with an ATtiny45.
~~

keithc@CityLabPC1:~$ sudo avrdude -c usbtiny -p t45
[sudo] password for keithc:

avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude done. Thank you.

keithc@CityLabPC1:~$ sudo avrdude -c usbtiny -p t45 -F

avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATtiny45 is 1E 92 06

avrdude: safemode: Fuses OK

avrdude done. Thank you.


~~

What could be the issue?

kchester
 
Posts: 15
Joined: Mon Jun 23, 2008 10:29 am

by Hazard on Wed Jun 25, 2008 1:56 pm

This error means that the computer is connected and using USBtinyISP, but! It cannot connect to the microcontroller.
Either bad wiring between USBtinyISP and the microcontroller, or something wrong with USBtinyISP.
Check the wiring to the microcontroller first!
Image
Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am
Location: Portugal

by kchester on Wed Jun 25, 2008 2:00 pm

Hmmm ok, but I am using a homemade target board, with the pinouts/wiring done via the helpful tutorial over at Evil Mad Scientist.


Am I wrong in assuming that the red wire is pin #1 on the 6 pin?

kchester
 
Posts: 15
Joined: Mon Jun 23, 2008 10:29 am

by kchester on Wed Jun 25, 2008 3:17 pm

It was a power issue. Fixed!

~

keithc@CityLabPC1:~$ sudo avrdude -c usbtiny -p t45
[sudo] password for keithc:

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9206

avrdude: safemode: Fuses OK

avrdude done. Thank you.

keithc@CityLabPC1:~$


~

Thanks everyone for help. Go linux for just working with the darned thing and no special drivers needed.

kchester
 
Posts: 15
Joined: Mon Jun 23, 2008 10:29 am

Re: avrdude: Error: Could not find USBtiny device (0x1781/0x

by jorgemariozuleta on Wed Jan 28, 2015 1:23 pm

With love: Have you tried to upload WHILE the red led is blinking? That was what I was doing wrong. Designers (!=engineers) will understand. Regards form #CostaRica

jorgemariozuleta
 
Posts: 1
Joined: Wed Jan 28, 2015 1:19 pm

Re: avrdude: Error: Could not find USBtiny device (0x1781/0x

by chevron694 on Wed Feb 11, 2015 3:49 pm

Hello, I have been experiencing a bit of frustration
I've already read through the forum and the FAQs on how to fix this problem. As of right now I am completely stuck and can't figure this out, and I've been working at it for 2 weeks now.

I recently bought the Trinket-Powered NeoPixel Goggle Kit Pack. I first when through all the coding for it and it works just fine. I loaded the code to my Arduino Uno and it worked just fine on it. I soldered the device together as per lady ada's instructions in the PDF 100% great. I installed the drivers as she listed. When I plug in the device, the green light goes on and the red light only flashes when it first plugged in or when I push the reset button. The device manager show that it is working properly when I have the Trinket plugged in. Windows does recognize the device - it lists it as a LibUSB-Win32 Device. I have followed the enclosed instructions.
https://learn.adafruit.com/introducing- ... bootloader
https://learn.adafruit.com/introducing- ... rduino-ide
https://learn.adafruit.com/usbtinyisp/avrdude

When I type this into avr dude:
avrdude -c usbtiny -p m8 and avrdude -c usbtiny -p t2313
I get: avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

I have tried unplugging, it pushing the button, new USB cables. Alitte advisement but be a great help. for now Im just going to uninstall everything and reload it and try again.

chevron694
 
Posts: 3
Joined: Wed Feb 11, 2015 3:33 pm

Re: avrdude: Error: Could not find USBtiny device (0x1781/0x

by chevron694 on Wed Feb 11, 2015 5:23 pm

And now when I try to upload something simple to my Uno like Blink it giving me this
Binary sketch size: 1,082 bytes (of a 32,256 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x30
When I attempted to do avrdude again

chevron694
 
Posts: 3
Joined: Wed Feb 11, 2015 3:33 pm

Re: avrdude: Error: Could not find USBtiny device (0x1781/0x

by pwillard on Sun Mar 15, 2015 8:46 pm

I agree, this is really frustrating. Hours wasted... no success.

pwillard
 
Posts: 1
Joined: Fri Jan 30, 2015 1:47 pm

Please be positive and constructive with your questions and comments.