Go Down

Topic: mkr1400 + SD proto shield - card read error (Read 1 time) previous topic - next topic


I recently purchased an MKR1400 board and an SD proto shield. I formatted the SD card (16GB) and ran the SD card test script (CardInfo.ino) using chipselect = 4. However i get the following error:

Initializing SD card...Wiring is correct and a card is present.

Card type:         SD2
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card

I have tried other cards (4GB and 16GB) and i either get the same error or a failed initialization error.

I have also tried another SD proto shield (I bought 6) with the same result.

What am i doing wrong here?

Any help is much appreciated.



Oct 20, 2019, 03:13 am Last Edit: Oct 20, 2019, 03:16 am by rtek1000
The SD library supports all the Arduino boards, communicating with the SD card via SPI.
Data Logging Examples for the MKR series Arduino Microcontrollers

Try to find the corresponding pins of the SPI port.

Some shields have different names for SPI port pins:

DI (Data Input) = MOSI (Master Output, Slave Input)
DO (Data Output) = MISO (Master Input, Slave Output)
CS (Chip Select) = SS (Slave Select)
CLK (Clock) = SCK (Synchronous Clock)

I don't know your board, but some boards have multi-function pins and may need to enable the SPI port, or remap.
Please avoid private messages, your question may be someone's answer in the future!


Hi rtek1000,
Thanks for your reply.

It turned out to be a problem with the SD proto shield as a standard SD break out board worked fine and the SD proto shield also didn't work on  a standard Arduino uno. The suppliers are sending out replacements.

Thanks again for your help with this.


Go Up