I have an
Adafruit MicroSD card breakout board and an Adafruit Feather HUZZAH with ESP8266 WiFi
I wired that up according to this link's last picture.
The code I am using:
#include <SPI.h>
#include <SD.h>
...
const int chipSelect = 15;
...
Serial.print("Initializing SD card...");
pinMode(SS, OUTPUT);
if (!SD.begin(chipSelect)) {
Serial.println("initialization failed!");
return;
}
Serial.println("initialization done.");
...
I always get the message "initialization failed", I also tried to format my SD card to be sure to have fat32 file system on it, but had no success with that.
What can I do to debug this error further?
TIA