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

by OhmNUU on Sat Dec 29, 2012 1:28 am

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=PgGHIKSe2WU&list=PLE72E4CFE73BD1DE1



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 3228 times
error message.png
error message.png (43.46 KiB) Viewed 3228 times
deviceman.png
deviceman.png (179.86 KiB) Viewed 3228 times
OhmNUU
 
Posts: 5
Joined: Mon May 28, 2012 9:15 pm

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

by adafruit_support_bill on Sun Dec 30, 2012 12:47 pm

Moved this topic to Microcontrollers. The "Supported Products and Projects" forums are for help with Adafruit products and projects.
User avatar
adafruit_support_bill
 
Posts: 25526
Joined: Sat Feb 07, 2009 9:11 am

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

by BruceF on Sun Dec 30, 2012 7:57 pm

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.
- Bruce
BruceF
 
Posts: 205
Joined: Tue May 03, 2011 3:51 pm

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

by OhmNUU on Tue Jan 01, 2013 12:15 am

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!
OhmNUU
 
Posts: 5
Joined: Mon May 28, 2012 9:15 pm

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

by BruceF on Tue Jan 01, 2013 3:39 am

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
- Bruce
BruceF
 
Posts: 205
Joined: Tue May 03, 2011 3:51 pm

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

by OhmNUU on Wed Jan 02, 2013 12:18 am

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_comand(): 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_comand(): 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
OhmNUU
 
Posts: 5
Joined: Mon May 28, 2012 9:15 pm