Page 1 of 1

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

Posted: Tue Jul 26, 2011 7:16 pm
by tohlizzle
I am having trouble connecting to my Pocket AVR Programmer.

I am using an Atmega328p-pu on Windows 7 64 with WinAVR. I am fairly certain I have everything plugged up correctly (my multimeter can detect power when the programmer is connected to my computer). I have tried switching MISO and MOSI. I downloaded the driver from the SparkFun product catalog page and have since rebooted my computer.

I get the following error message when I attempt to program my avr:
Code: Select all
C:\Users\Owner\Programs\WinAVR\Demo>avrdude -c usbtiny -B1 -patmega328p -U flash
:w:demo.hex -v -P usb:xx

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : usb:xx
         Using Programmer              : usbtiny
         Setting bit clk period        : 1.0
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


C:\Users\Owner\Programs\WinAVR\Demo>

Please instruct me how to download programs to my AVR. I apologize I am unable to upload photographs of my set-up (The "Img" button in the "Post a new topic" editor requires a URI and the "Upload attachment" box only allows attachments of a size less than one megabyte.)

Thank you in advance.
P.S. What do MISO, MOSI, and SCK stand for?

Re: Error: could not find USBtiny device (0x1781/0xc9f)

Posted: Thu Jul 28, 2011 4:12 pm
by dr-snipe
It looks like in the port parameter you specified 'usb:xx' I would try changing that to just: -P usb because I believe it may be confused as to which USB port you are referring to.

Just a guess :?

Re: Error: could not find USBtiny device (0x1781/0xc9f)

Posted: Fri Jul 29, 2011 12:38 pm
by tohlizzle
Thank you for the suggestion, nevertheless, it did not work:
Code: Select all
C:\Users\Owner\Programs\WinAVR\Demo>avrdude -c usbtiny -B1 -patmega328p -U flash
:w:demo.hex -v -P usb

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : usb
         Using Programmer              : usbtiny
         Setting bit clk period        : 1.0
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


C:\Users\Owner\Programs\WinAVR\Demo>

Re: Error: could not find USBtiny device (0x1781/0xc9f)

Posted: Fri Jul 29, 2011 1:40 pm
by dr-snipe
Hm, it looks like it still can't find the programmer itself. I'd try changing the port parameter to COM1 through COM3 because on my computer the USB port I use is called COM3

If that doesn't work then there might be firmware problems on the programmer or maybe something wrong with your driver installation :? Hope that helps :D

Re: Error: could not find USBtiny device (0x1781/0xc9f)

Posted: Fri Jul 29, 2011 3:57 pm
by tohlizzle
That did not work either.
Code: Select all
C:\Users\Owner\Programs\WinAVR\Demo>avrdude -c usbtiny -B1 -patmega328p -U flash
:w:demo.hex -v -P com1

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com1
         Using Programmer              : usbtiny
         Setting bit clk period        : 1.0
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


C:\Users\Owner\Programs\WinAVR\Demo>avrdude -c usbtiny -B1 -patmega328p -U flash
:w:demo.hex -v -P com2

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com2
         Using Programmer              : usbtiny
         Setting bit clk period        : 1.0
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


C:\Users\Owner\Programs\WinAVR\Demo>avrdude -c usbtiny -B1 -patmega328p -U flash
:w:demo.hex -v -P com3

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : com3
         Using Programmer              : usbtiny
         Setting bit clk period        : 1.0
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


C:\Users\Owner\Programs\WinAVR\Demo>avrdude -c usbtiny -B1 -patmega328p -U flash
:w:demo.hex -v -P COM3

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : COM3
         Using Programmer              : usbtiny
         Setting bit clk period        : 1.0
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


C:\Users\Owner\Programs\WinAVR\Demo>avrdude -c usbtiny -B1 -patmega328p -U flash
:w:demo.hex -v -P COM2

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : COM2
         Using Programmer              : usbtiny
         Setting bit clk period        : 1.0
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


C:\Users\Owner\Programs\WinAVR\Demo>avrdude -c usbtiny -B1 -patmega328p -U flash
:w:demo.hex -v -P COM1

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\WinAVR-20100110\bin\avrdude.conf"


         Using Port                    : COM1
         Using Programmer              : usbtiny
         Setting bit clk period        : 1.0
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done.  Thank you.


C:\Users\Owner\Programs\WinAVR\Demo>
My programmer's Stat2 light has never come on. Does this mean something is wrong with the driver?

Re: Error: could not find USBtiny device (0x1781/0xc9f)

Posted: Sun Nov 11, 2012 5:43 pm
by farnoise
Hello guys,
i am having teh exact same issue, my programmer's state LEDs never came on and I have no idea what else to do. I am thinking maybe the unit is defective there is only the Blue Power LED which is on and the device is not being picked up by windows new device notifier
i am using Win 7 - 64 bit

Please help
Thans

Re: Error: could not find USBtiny device (0x1781/0xc9f)

Posted: Wed Nov 13, 2013 12:47 pm
by rullywowr
When programming by ISP in the Arduino IDE you need to hold the shift button while clicking upload. Maybe you already did this but it's easy to overlook.

Re: Error: could not find USBtiny device (0x1781/0xc9f)

Posted: Thu Sep 11, 2014 7:51 am
by iliask
https://learn.adafruit.com/usbtinyisp/faq

How do I program a bootloader onto an Arduino?
Put a fresh AVR chip (such as an Atmega328) into the Arduino in the correct orientation
Remove the jumper from the USBtinyISP
Plug in the USBtiny to USB
Plug the Arduino into DC or USB so it is powered
Plug the 6 pin cable from the USBtinyISP into the Arduino so that pin 1 mark is lined up with the red wire on the cable
Start up Arduino IDE
Select the chip/Arduino you are using in the Tools->Board menu
Do not select a COM/Serial port
Select Tools->Burn Bootloader->w/USBtinyISP
The USBtinyISP red LED should light up. It will take a minute or two to program the chip
When it is done, the IDE will tell you it has completed and the red LED will be off.

Re: Error: could not find USBtiny device (0x1781/0xc9f)

Posted: Thu Sep 11, 2014 5:31 pm
by Ross Robotics
Well thanks for stating that on a year old thread.