Can't initialize SD card

Hey, guys!

Has anybody had any luck getting a SPI SD Breakout to work with the MKR GSM 1400?

I currently have this hooked up according to the below:

(Breakout) -> (MKR GSM 1400)
CD -> NC
DO -> MISO
GND -> GND
SCK -> SCK
VCC -> VCC
DI -> MOSI
CS -> Pin 4

Tried both the SD library's Cardinfo example & the SDFat SDInfo one - both throw an error when trying to initialize the SD. I seem to see different error codes reported by SDFat depending on whether the SD is inserted in the slot or not, but I've never actually seen it initialize.

Also tried different speeds (SPI_HALF_SPEED / SPI_QUARTER_SPEED) during initialization, as suggested in the forum, to no avail.

Any ideas?

Thanks in advance!

Hey, guys! :slight_smile:

Quick update - managed to get this working by trying a bunch of different SD cards. Finally had a 32GB SDHC initialize OK and have been using that for now.

Thanks anyway!