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

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
kchester
 
Posts: 15
Joined: Mon Jun 23, 2008 10:29 am

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

Post by kchester »

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.

Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am

Post by Hazard »

Which version of WinAVR/avrdude and USBtiny drivers are you using?

magician13134
 
Posts: 1119
Joined: Wed Jun 13, 2007 9:17 am

Post by magician13134 »

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

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

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

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

Post by kchester »

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?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

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

Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am

Post by Hazard »

Last time I installed USBtinyISP in a friend's computer, I installed the latest WinAVR and had to use 1.2 drivers.

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

Post by kchester »

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?

Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am

Post by Hazard »

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!

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

Post by kchester »

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?

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

Post by kchester »

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.

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

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

Post by jorgemariozuleta »

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

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

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

Post by chevron694 »

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.

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

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

Post by chevron694 »

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

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

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

Post by pwillard »

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

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

Return to “USBtinyISP”