SAMD51 Thing plus, Arduino and SD card

Sorry for this question but:

I have a SAMD51 Thing plus and try to run it with Arduino.

BLINK works fine but I can not get any of the SD card examples running.

How do I have to connect the SD card to the SAMD51 Thing plus?

I connected:

MOSI with D11

MISO with D12

CLK with D13

And CS? I tried almost all other Pins but i only get

“Initializing SD card…initialization failed!”

I don’t find any information in internet.

Thank you

Hi breaky,

What SD breakout are you using here? Also, D11 and D12 are not SPI pins on the SAMD51 Thing Plus. The SPI pins are labeled as you can see in the [Graphical Datasheet. MISO is tied to D22, MOSI is on D23 and SCK is on D24. Try connecting to those pins and it should work.](https://cdn.sparkfun.com/assets/c/a/8/6/8/ThingPlusSamD51a.pdf)

Hi TS-Mark,

perhaps my mistake but I didn’t see a CS so i assumed the pins to use are the pins in the Ardunio examples.

Anyway…thank you very much for your help. Now it works fine !!

That’s great to hear it is working now. Just FYI, CS (Chip Select) can be tied to pretty much any available digital pin on a microcontroller (with a few rare exceptions) so you will not see it labeled on most development boards.