usbtiny not working at all

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
WeldaSB
 
Posts: 8
Joined: Wed Jan 02, 2013 12:15 am

usbtiny not working at all

Post by WeldaSB »

1) kit from adafruit
2) custom-built desktop running linux mint
also tested on winxp laptop
3)AVRdude with uno-328 and an unprogrammed 328
4)nope, not once
5)
Image
Image
(the stuff on the back is just flux)

The only output I can get is

Code: Select all

# avrdude -c usbtiny -p ATmega328P -B8

avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.
and

Code: Select all

# avrdude -c usbtiny -p ATmega328P -B8 -F

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 ATMEGA328P is 1E 95 0F                                                                                                                              
                                                                                                                                                                                    
avrdude done.  Thank you.                                                                                                                                                           
I asked on avrfreaks on this, but I also wanted the manufacturer's input:
http://www.avrfreaks.net/index.php?name ... 73#1038873

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: usbtiny not working at all

Post by adafruit_support_rick »

Actually, that output means that the USBtiny is working, but it's not able to communicate with the target chip.
See here: http://www.ladyada.net/make/usbtinyisp/help.html

WeldaSB
 
Posts: 8
Joined: Wed Jan 02, 2013 12:15 am

Re: usbtiny not working at all

Post by WeldaSB »

I have confirmed everything on that list, and I get the same output. I have tried it with an uno, and a breadboard atmega, but I get the same output

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: usbtiny not working at all

Post by adafruit_support_rick »

I don't know. Your build looks OK in the pictures.
On the Uno, are you sure you had the 6-pin cable oriented the right way? Did you try it both ways?
Did you try removing the power jumper on the USBtiny and powering the Uno through the barrel jack instead?

WeldaSB
 
Posts: 8
Joined: Wed Jan 02, 2013 12:15 am

Re: usbtiny not working at all

Post by WeldaSB »

I tried both ways on the uno, and broken out connected to the correct uno pins, and on a breadboard with another atmega328 that had no bootloader, but I always got the same message. Could the buffer chip be broken or something? I am learning c and need something to program with.

WeldaSB
 
Posts: 8
Joined: Wed Jan 02, 2013 12:15 am

Re: usbtiny not working at all

Post by WeldaSB »

Couldn't find the edit button
Yes, I have tried it separately powered.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: usbtiny not working at all

Post by adafruit_support_rick »

Let's try something different. There is another ICSP 6-pin header next to the USB jack on your Uno. Attach the programming cable there, as in this picture.
uno.JPG
uno.JPG (167.67 KiB) Viewed 3589 times
Don't attach any power or usb cables to the uno. Make sure the ON LED is illuminated. Then, issue the following command to avrdude:

avrdude -c usbtiny -p m16u2

Post the response here.

WeldaSB
 
Posts: 8
Joined: Wed Jan 02, 2013 12:15 am

Re: usbtiny not working at all

Post by WeldaSB »

Code: Select all

avrdude -c usbtiny -p m16u2

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9489

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
But I still get the old output with a breadboard 328 or the uno 328

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: usbtiny not working at all

Post by adafruit_support_rick »

Well, that's pretty definitive. The USBTiny is working. Your problem is going to be with the 328.

I had a look at the AVRFreaks topic you linked to. As I understand it, you broke a pin and installed a ZIF socket? The pin you broke isn't related to ICSP, so I have to conclude that there's a problem with your ZIF socket - either the socket itself has a problem, or its connection to the UNO is not secure.

Did you solder the ZIF socket in place of the DIP socket? Check your solders. If you'd like, feel free to post some pictures of your UNO, and we'll see if we can spot any problems.

WeldaSB
 
Posts: 8
Joined: Wed Jan 02, 2013 12:15 am

Re: usbtiny not working at all

Post by WeldaSB »

i have 2 atmega328p. one is just plain with no bootloader, the other has arduino bootloader and a broken pin. i got the plain one to work:Image

the bootloader programmed one will not work:
Image

I had the zif socket pushed into the dip slot, but removed it for these tests.

WeldaSB
 
Posts: 8
Joined: Wed Jan 02, 2013 12:15 am

Re: usbtiny not working at all

Post by WeldaSB »

i had the zif socket out because the isp header won't go on when it is in.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: usbtiny not working at all

Post by adafruit_support_rick »

Sounds like you must have damaged more than just pin 15 on that 328. If there's nothing else obvious, the chip is probably toasted.

WeldaSB
 
Posts: 8
Joined: Wed Jan 02, 2013 12:15 am

Re: usbtiny not working at all

Post by WeldaSB »

Well thanks so much for helping me. the bbroken chip still seems to work with the arduino ide, so i guess i can still use it. thank yoiu for this product and not having to pay $40.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: usbtiny not working at all

Post by adafruit_support_rick »

No problem :D
Good luck!

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

Return to “USBtinyISP”