Created Thu, 09 Feb 2017 15:29:20 +0000 by thycore
Thu, 09 Feb 2017 15:29:20 +0000
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 ?
Thu, 09 Feb 2017 17:49:42 +0000
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.
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.
Fri, 10 Feb 2017 10:36:53 +0000
This worked perfectly !
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 :)
Fri, 10 Feb 2017 10:39:28 +0000
It's good to add
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.