SD Card not initializing MKR ETH SHIELD+MKR ZERO

Hi all,

I want to use an SD card on my mkr eth shield ( on top of mkr zero ) to increase my storage space for ethernet uploads. I cannot get the SD card to initialize. I've tried pin 4 for the chip select.

I'm thinking it has something to do with the SD card slot being on different SPI interface?

Has anyone managed to get this to work?

it is SDCARD_SS_PIN

  if (SD.begin(SDCARD_SS_PIN)) {

That didn't work when I tried it. Am I supposed to use the sd card slot on the mkr zero or the eth shield? If i use SDCARD_SS_PIN with the SD card in the shield it does not work

Looking at the schematic for the MKR ETH shield, the SD card and ethernet chip share the same SPI bus. If you can talk to the ethernet chip, then you are on the correct bus for the SD card.

The schematic also shows that pin 4 is the correct pin for selecting the SD card.

the SD library will only use the SD card on MKR Zero, not the card on the shield

Ok I understand. I will use the sd card slot on the mkr zero. Is there a way to use the one on the eth shield though? It seems that this would be a useful feature and so far, I haven't been able to find anything info on this.

if you select any other MKR in the Tools menu, it will use the SD card on the shield with CS pin 4

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.