0

avrdude: initialization failed, rc=-1 + SOLUTION
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

avrdude: initialization failed, rc=-1 + SOLUTION

by Andy2145 on Thu Feb 17, 2011 7:26 am

Hello,

I build an USBtinyISP based on the one from LadyAda.
I am using the latest version of LadyAda's hex file.
The circuit I used is the following: http://wiki.ehajo.de/index.php/AVR-ISP-Stick

-> means no op-amp on the outputs.

My programmer was able to talk to the pc but not to the chip (avrdude: initialization failed, rc=-1)

After a long time of debugging I found the solution: I made my self a too long programmer cable (1m).

So if you build this thing on your on, make sure the cables from the programmer to the chip are not too long (max ~ 50 cm)

Best Regards
Andy2145
 
Posts: 2
Joined: Thu Feb 17, 2011 7:17 am

Re: avrdude: initialization failed, rc=-1 + SOLUTION

by stinkbutt on Fri Feb 18, 2011 3:04 pm

I've seen so many instances of the avrdude: initialization failed, rc=-1 error message, I've come to believe it's like NullPointerException - It's the error message AVRDude prints when it doesn't know what the hell else to do. There have been so many solutions on the internet that I think, (though I'm not certain) that it's a catch-all for a variety of problems.
Red M&M, Blue M&M: They all wind up the same color
stinkbutt
 
Posts: 590
Joined: Wed Feb 17, 2010 2:40 am

Re: avrdude: initialization failed, rc=-1 + SOLUTION

by Andy2145 on Sun Feb 20, 2011 12:46 pm

Yeah thats right. I just wanted to add this solution to the long list of the other solutions, because I didn't found this elsewhere.
Andy2145
 
Posts: 2
Joined: Thu Feb 17, 2011 7:17 am

Please be positive and constructive with your questions and comments.