MKR1000 - SPARKFUN microSD Shield doesn't initialize

Hi,
i have a MKR1000 connected to a microSD Shield by Sparkfun, respectively by MKR’s pin—>Shield’s pin:

  • 8—>11
  • 9—>13
  • 10—>12

and i try to execute the example sketch below, changing the SS_PIN setup like a read in other topics but it doesn’t work. Can anyone explain me what is wrong?

#include <SPI.h>
#include <SD.h>

File myFile;

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  pinMode(SS_PIN, OUTPUT);
  digitalWrite(SS_PIN, HIGH);
  Serial.print("Initializing SD card...");

  if (!SD.begin()) {
    Serial.println("initialization failed!");
    Serial.println(SD.begin());
    return;
  }
  Serial.println("initialization done.");

The SD card is 4GB, formatted FAT32, allocation space 4096 byte.
Thanks to everyone

Hi,

Did you ever solve this issue?

I am having the same problem with another microSD Shield and I very much would like to add a SD card to my MKR1000. I would have no problem getting another SD card reader if I know it works.

Thanks
José

Hi there -

I'm also trying to get the SparkFun microSD breakout board working with an MKR1000 - did you guys ever get it working? If so, would you mind sharing which pins to use?

Thanks,

Mike

Someone have solved this problem? I've lost a couple of days searching for some solution, but every time the error the error is the same:

Initializing SD card...initialization failed. Things to check:
* is a card inserted?
* is your wiring correct?
* did you change the chipSelect pin to match your shield or module?