Welcome! Log In Create A New Profile

Advanced

Initialization failed, rc=-1 error

Posted by marnargulus 
Initialization failed, rc=-1 error
September 15, 2011 10:09AM
Before I get into this: Yes, I know that MISO is 1. Some people did not do EE in college though, and this information is surprisingly hard to google. I'm just walking people through how to deduce this, and to point out that drawings are not the same thing as schematics (come on Arduino.cc). Another person just told me they figured this same thing out based on the fact that pins 18-25 are ground on a Parallel Port and worked back from there.

Are you getting an "Initialization failed, rc=-1" error while trying to load with DAPA (http://www.arduino.cc/en/Hacking/ParallelProgrammer)? This means you can't connect to the chip at all. Hint: wiring problem. Here is a tip I've passed to a few people so far:

The Sanguinololu pins look like this (w/ usb towards you):
O O O
O O O

and the Arduino.cc DAPA guide shows this:
1
OO
OO
OO

Very descriptive isn't it?

Based on their drawing, X isn't used. We know that is going to be the 5V because we are externally powering the chip still (why do that if we already have power)
1
OX
OO
OO

So for Sanguinololu the DAPA drawing would look like this
1
OOO
OOX

From Parallel Port to ISP headers:
Pin 1 goes to SCK
Pin 2 goes to MOSI
Pin 11 goes to MISO
Pin 16 goes to RESET
Pin 18 goes to GND

And if your silk screen is bad/missing on the board it looks like this
Reset SCK MISO
GND MOSI 5V

Hopefully this helps some people.

Edited 1 time(s). Last edit at 09/15/2011 10:10AM by marnargulus.
Sorry, only registered users may post in this forum.

Click here to login