Try SdFat, a Library for SD Cards

@whg I am trying to run the TryMeFirst example on an Electron with 0.5.2 and keep getting the following error:

Can’t access SD card. Do not reformat.
No card, wrong chip select pin, or SPI problem?
SD errorCode: 0X1,0XFF

I am using a 8GB Kingston micrSD card adapter wired to SCK => D4, MISO => D3, MOSI => D2, SS => D5 (SPI_CONFIGURATON 1)

#define SPI_CONFIGURATION 1

//------------------------------------------------------------------------------
// Setup SPI configuration.
#if SPI_CONFIGURATION == 0
// Primary SPI with DMA
// SCK => A3, MISO => A4, MOSI => A5, SS => A2 (default)
SdFat sd;
const uint8_t chipSelect = SS;
#elif SPI_CONFIGURATION == 1
// Secondary SPI with DMA
//SCK => D4, MISO => D3, MOSI => D2, SS => D1
SdFat sd;
const uint8_t chipSelect = D5;
#elif SPI_CONFIGURATION == 2

Notice that if have SdFat sd; and not sd(1); (in the rest of the code you use sd and not sd(1).

Have tried connecting to A1-A5 (SPI=0) and same error. I have tried with HALF and FULL SPEED and nothing changes. I have tried with CS on D1 and still same problem.

Any ideas?

Thanks much!