Fubarino 1.5 SD => "initialization failed"

Post Reply
thycore
Posts: 2
Joined: Thu Feb 09, 2017 4:25 pm

Fubarino 1.5 SD => "initialization failed"

Post by thycore » Thu Feb 09, 2017 4:29 pm

Hello fellow fubarillos !

I just received my Fubarino 1.5 SD and tried to use it with a standard Verbatim 8GB microSD.

However, I keep having troubles to access my SD Card.

With the demo file for SD I continously have the error message : "initialization failed!"

I tried to play along with the line :

const int chipSelect_SD_default = 10; // Change 10 to 53 for a Mega

I tried values 10, 53, 25, 12... no success so far.
(I made sure to format the SD card using SD Format, in FAT32)

Any clues ?

User avatar
majenko
Site Admin
Posts: 2154
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Fubarino 1.5 SD => "initialization failed"

Post by majenko » Thu Feb 09, 2017 6:49 pm

Trying random numbers for SS is not going to work. SS is pin 27 as you can see on the board. That pin, along with the rest of the SPI port on pins 24-27 go to the SD card as well as the headers.

Code: Select all

const int chipSelect_SD_default = 27;
Anyway, I'd be inclined to use the chipKIT implementation of SDFAT (examples provided with the libraries, bundled with the core). It's far superior and about 1000x faster.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

thycore
Posts: 2
Joined: Thu Feb 09, 2017 4:25 pm

Re: Fubarino 1.5 SD => "initialization failed"

Post by thycore » Fri Feb 10, 2017 11:36 am

This worked perfectly !

Code: Select all

const int chipSelect_SD_default = 27; // Change 10 to 53 for a Mega
I didn't get this "SS" stuff at all when I was trying, plus, my "COM port" would take too long to initialize so I was not seing any data coming from the Serial port :)

User avatar
majenko
Site Admin
Posts: 2154
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Fubarino 1.5 SD => "initialization failed"

Post by majenko » Fri Feb 10, 2017 11:39 am

It's good to add

Code: Select all

while (!Serial) { delay(1); }
after you initialise the serial. That way it will pause the program completely until you have opened the serial port from the PC end.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply