šŸ”®Adafruit sale all weekend long ā€“ use the code ADATHX for 15% off! šŸ”®
0

initialization failed, rc=-1
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: initialization failed, rc=-1

by SubjectiveCaml on Wed Jun 22, 2016 8:37 am

marke3 wrote:Your reference schematic is of the 6 pin socket but you've used it for the plug, effectively reversing the connections - most importantly vcc and gnd at their opposite corners.


Why does putting the jumper in place reverse the connections? Does it just reverse the VCC/GND or all of them?

SubjectiveCaml
 
Posts: 14
Joined: Sun Jun 19, 2016 4:20 am

Re: initialization failed, rc=-1

by marke3 on Wed Jun 22, 2016 9:00 am

No, jumper is unrelated to the burnout but it meant no power was coming through to the chip so you can't program it.

However, when the power did come through it revealed that your wiring is reversed on the breadboard. Finding it got hot was the clue that wiring was wrong so a closer look at that showed you were using the plug connections upside down, effectively reversing them. So you had vcc from the programmer going to the gnd pin on the ATTINY85, and gnd going to vcc.

marke3
 
Posts: 205
Joined: Sat Feb 08, 2014 5:24 pm

Re: initialization failed, rc=-1

by SubjectiveCaml on Wed Jun 22, 2016 9:43 am

marke3 wrote:Finding it got hot was the clue that wiring was wrong so a closer look at that showed you were using the plug connections upside down, effectively reversing them.


But I don't understand why they were upside-down to begin with. I can't tell at which point the connections got reversed.

SubjectiveCaml
 
Posts: 14
Joined: Sun Jun 19, 2016 4:20 am

Re: initialization failed, rc=-1

by marke3 on Wed Jun 22, 2016 5:33 pm

It's how you've wired jumpers into the plug. Have a look at your breadboard photo and the diagram below it. The diagram is of the socket that the plug should go into. The plug should go into the socket like below and the red line should be the top edge of the cable -note vcc at the top right marked by probe.

Picture 12.jpg
Picture 12.jpg (129.11 KiB) Viewed 652 times


You've flipped the plug upside down to wire it with jumper wires but haven't wired them to the flipped pins. The next photo shows how upside down, the vcc is at bottom right. You have that connected to gnd on the Attiny.

Picture 13.jpg
Picture 13.jpg (132.12 KiB) Viewed 652 times

marke3
 
Posts: 205
Joined: Sat Feb 08, 2014 5:24 pm

Please be positive and constructive with your questions and comments.