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

Discussions on the software and hardware for Atmel's STK standard.

Moderator: phalanx

Post Reply
tohlizzle
Posts: 6
Joined: Mon Jul 25, 2011 1:24 pm

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

Post by tohlizzle » Tue Jul 26, 2011 7:16 pm

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?

dr-snipe
Posts: 6
Joined: Fri Jul 22, 2011 9:59 am

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

Post by dr-snipe » Thu Jul 28, 2011 4:12 pm

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 :?

tohlizzle
Posts: 6
Joined: Mon Jul 25, 2011 1:24 pm

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

Post by tohlizzle » Fri Jul 29, 2011 12:38 pm

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>

dr-snipe
Posts: 6
Joined: Fri Jul 22, 2011 9:59 am

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

Post by dr-snipe » Fri Jul 29, 2011 1:40 pm

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

tohlizzle
Posts: 6
Joined: Mon Jul 25, 2011 1:24 pm

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

Post by tohlizzle » Fri Jul 29, 2011 3:57 pm

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?

farnoise
Posts: 5
Joined: Sun Nov 11, 2012 8:48 am

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

Post by farnoise » Sun Nov 11, 2012 5:43 pm

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

rullywowr
Posts: 3
Joined: Wed Sep 04, 2013 5:48 am

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

Post by rullywowr » Wed Nov 13, 2013 12:47 pm

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.

iliask
Posts: 1
Joined: Thu Sep 11, 2014 7:48 am

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

Post by iliask » Thu Sep 11, 2014 7:51 am

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.

User avatar
Ross Robotics
Support Volunteer
Posts: 2007
Joined: Thu Jun 07, 2012 9:33 pm
Contact:

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

Post by Ross Robotics » Thu Sep 11, 2014 5:31 pm

Well thanks for stating that on a year old thread.
------------------------------------------------------------------------------------------------------------------------------------------------------------
//codlink
Available for circuit and PCB design, just PM me!

Post Reply