# MKR and SD CardReader not working

**URL:** <https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554>\
**Category:** MKR Shields\
**Created:** [December 16, 2021, 2:18pm UTC](https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554 "2021-12-16T14:18:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![janhsh](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@janhsh](https://forum.arduino.cc/u/janhsh)\
**Post date:** [December 16, 2021, 2:18pm UTC](https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554/1 "2021-12-16T14:18:08Z")

</div>

Hello everyone,  
_My original language is French, this is a machine translation._

Here is my problem: I would like to connect an SD cart reader to an MKR 1010 WIFI.  
To test I tried to add an MKR ETH SHIELD

and for the code, I used the example "CardInfo" by specifying "chipSelect = 4"

but I systematically got an error message .

 ![signal-2021-12-16-151411](https://europe1.discourse-cdn.com/arduino/original/4X/0/6/9/0690f0c915d3aba5107750ccb49a81181096d669.jpeg)

Does anyone have a solution?  
thanks in advance

---

<div class="post-metadata">

**Author:** ![Juraj](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/juraj/32/238785_2.png) [@Juraj](https://forum.arduino.cc/u/Juraj)\
**Post date:** [December 16, 2021, 3:01pm UTC](https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554/3 "2021-12-16T15:01:31Z")

</div>

are you sure you inserted the card the right way?

---

<div class="post-metadata">

**Author:** ![janhsh](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@janhsh](https://forum.arduino.cc/u/janhsh)\
**Post date:** [December 17, 2021, 12:52am UTC](https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554/4 "2021-12-17T00:52:52Z")

</div>

the card is inserted that way. the card reader does not allow you to put the card in another way

 ![signal-2021-12-17-015032](https://europe1.discourse-cdn.com/arduino/original/4X/0/0/5/005e2bc6169522ce1ab7ae5f1e592ececa1a1932.jpeg)

---

<div class="post-metadata">

**Author:** ![janhsh](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@janhsh](https://forum.arduino.cc/u/janhsh)\
**Post date:** [December 17, 2021, 12:54am UTC](https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554/5 "2021-12-17T00:54:23Z")

</div>

![signal-2021-12-16-150817](https://europe1.discourse-cdn.com/arduino/original/4X/c/0/f/c0f07f4c3c3da109f21d3e152e34493978339ecc.jpeg)

---

<div class="post-metadata">

**Author:** ![mike\_eng47](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@mike\_eng47](https://forum.arduino.cc/u/mike_eng47)\
**Post date:** [February 17, 2022, 12:52am UTC](https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554/6 "2022-02-17T00:52:27Z")

</div>

I've also been having problems reading an SD card on the MKR Eth shield on a MKR Zero. The card works on the MKR Zero's slot, but not on the shield's slot. The chip select is changed to point to the desired slot. This works when using a Mega2560 and Ethernet Shield 2. I think the issue is the MKR zero has two SPI busses, one of which is dedicated to the SD card, and the other one that is brought out to the header pins. The SPI library and Ethernet library do not seem to account for this. Setting the enable pin for the ethernet controller HIGH to avoid bus contention does not help, so something is missing in dealing with the two SPI busses. Any hints appreciated.

---

<div class="post-metadata">

**Author:** ![Juraj](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/juraj/32/238785_2.png) [@Juraj](https://forum.arduino.cc/u/Juraj)\
**Post date:** [February 17, 2022, 5:45am UTC](https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554/7 "2022-02-17T05:45:05Z")

</div>

the MKR Zero has SD card pins defined in board variant and the SD library uses always those

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [August 16, 2022, 5:45am UTC](https://forum.arduino.cc/t/mkr-and-sd-cardreader-not-working/936554/8 "2022-08-16T05:45:29Z")

</div>

Closed on August 16, 2022, 5:45am UTC

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