Go Down

Topic: Can't initialize SD card (Read 484 times) previous topic - next topic

x2dz

Dec 21, 2018, 04:07 am Last Edit: Dec 21, 2018, 04:09 am by x2dz
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!

x2dz

Hey, guys! :)

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!

Go Up