damellis / attiny

ATtiny microcontroller support for the Arduino IDE
719 stars 224 forks source link

TinyAVR Programmer - initialization failed, rc=-1 #24

Closed luxxnatura closed 9 years ago

luxxnatura commented 11 years ago

I'm trying to program an ATtiny85 dip chip using the TinyAVR programmer, but with no success. I was able to bootload successfully, but when I try to upload the blink sketch, I get the following error (using verbose output):

avrdude: Using SCK period of 10 usec CMD: [ac 53 00 00] [00 00 00 00] CMD: [ac 53 00 00] [00 00 00 00] avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. avrdude done. Thank you.

The chip orientation is correct, none of the legs are bent, and the reset jumper is open. I have tried across two chips with the same error resulting in both.
Please assist!

Thanks :)

damellis commented 11 years ago

What board menu item do you have selected? What operating system are you on?

luxxnatura commented 11 years ago

I am using a 20Mhz ATtiny85 and have tried with all available board options for the ATtiny85: external 20Mhz clock, Internal 8 Mhz clock, and Internal 1 Mhz clock. I am using Arduino 1.0.3 on with OSX 10.8.

On Tue, Apr 9, 2013 at 4:19 PM, David A. Mellis notifications@github.comwrote:

What board menu item do you have selected? What operating system are you on?

— Reply to this email directly or view it on GitHubhttps://github.com/damellis/attiny/issues/24#issuecomment-16137440 .

damellis commented 11 years ago

If you did "burn bootloader" with the 20 MHz (external) clock option selected in the boards menu, you configured the fuses on the ATtiny to expect there to be an external 20 MHz clock present. You'll need to attach one to the appropriate pins to get the microcontroller to work (e.g. to upload sketches or burn new fuses). To use the ATtiny without an external clock, you need to use one of the "internal clock" settings.