Could not find usbtiny Device (0x1781/0xc9f)

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
OhmNUU
 
Posts: 5
Joined: Mon May 28, 2012 10:15 pm

Could not find usbtiny Device (0x1781/0xc9f)

Post by OhmNUU »

Greetings!

1) Bought kit from amazon avrisp V2,
2)I have windows 7 64 bit and followed the instructions on sparkfun to install the drivers using the legacy feature.

link to sparkfun drivers installation for windows https://www.sparkfun.com/products/9825
and the work around for windows 7 64 bithttps://forum.sparkfun.com/viewtopic.php?f=7&t=27074
legacy feature explained end of video http://www.youtube.com/watch?v=PgGHIKSe ... FE73BD1DE1



3) Programming software WinAvr chip using is atmega32a
4) Usbtinyisp has never been tested until now (collecting dust but no more then a couple of months)

Programmer light turns green and is recognized by computer as such [first attachment].

However after typing the command in cmd window i get the following error [2nd attachment].

Hard wire of programmer and micro controller[3rd attachment].
Wires are attached pretty sturdy and follow the pinout of programmer.

side note is i dont get a 5v reading using a voltameter across vcc and gound when connected to computer. (this wrong? possible due to switching of arduino cable?) or unspecified device?

Best Regards,
OhmnUU
Attachments
photo (1).JPG
photo (1).JPG (726.67 KiB) Viewed 5355 times
error message.png
error message.png (43.46 KiB) Viewed 5355 times
deviceman.png
deviceman.png (179.86 KiB) Viewed 5355 times

User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: Could not find usbtiny Device (0x1781/0xc9f)

Post by adafruit_support_bill »

Moved this topic to Microcontrollers. The "Supported Products and Projects" forums are for help with Adafruit products and projects.

User avatar
brucef
 
Posts: 215
Joined: Tue May 03, 2011 4:51 pm

Re: Could not find usbtiny Device (0x1781/0xc9f)

Post by brucef »

If your programmer is an AVRISP mkII rather than a USBtiny, try "-c avrisp2" as your programmer option and see if you get any better result.

OhmNUU
 
Posts: 5
Joined: Mon May 28, 2012 10:15 pm

Re: Could not find usbtiny Device (0x1781/0xc9f)

Post by OhmNUU »

adafruit_support wrote:Moved this topic to Microcontrollers. The "Supported Products and Projects" forums are for help with Adafruit products and projects.
Thanks for move :)
BruceF wrote:If your programmer is an AVRISP mkII rather than a USBtiny, try "-c avrisp2" as your programmer option and see if you get any better result.
I am not sure why i was so set on -c usbtiny and didnt see it sooner. Thank you it worked! However now i am left with this error message.


avrdude: stk500_2_ReceiveMessage(): timeout

Ill continue searching and post here if i find anything thanks again!

Cheers!

User avatar
brucef
 
Posts: 215
Joined: Tue May 03, 2011 4:51 pm

Re: Could not find usbtiny Device (0x1781/0xc9f)

Post by brucef »

Glad to hear that worked, I wasn't certain which programmer you had from your post.

Now that we have that sorted out, you might need to specify '-P usb' on your command line too; I do to get avrdude talking to the AVRISP mkII on Mac OS. If 'usb' isn't the right parameter to use, it may well be that you need to feed some COM port specification to -P.

The full command line I use to download a program called foo.hex to an ATmega328p looks like so:

Code: Select all

avrdude -p atmega328p -c avrisp2 -P usb -v -U flash:w:foo.hex
Just getting to the point of talking to the chip, you can ditch the -U stuff, and of course the verbose -v flag:

Code: Select all

avrdude -p atmega328p -c avrisp2 -P usb

OhmNUU
 
Posts: 5
Joined: Mon May 28, 2012 10:15 pm

Re: Could not find usbtiny Device (0x1781/0xc9f)

Post by OhmNUU »

Thank you Bruce,


I am feeding COM3 as the parameter for -P (seen from attachments)

however now i am left with this mess

avrdude: stk500v2_BANNED(): command failed
avrdude: stk500v2_recv(): checksum error
avrdude: stk500v2_program_enable(): bad STK600 connection status:; Unknown (0x64)
avrdude: initialization failed, rc =-1
Double check conections and try again, or use -F to override this check.

avrdudee done. Thank you.

using override i then obtain this message.


avrdude: stk500v2_BANNED(): command failed
avrdude: stk500v2_recv(): checksum error
avrdude: stk500v2_program_enable(): bad STK600 connection status:; Unknown (0x64)
avrdude: initialization failed, rc =-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA32 is 1E 95 02


avrdudee done. Thank you.


I checked my connections and everything seems right however, ill try and get someone else to lookover them. Anyways thanks for the help :D

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

Return to “Microcontrollers”