STM32 Thing Plus: Which Pin For MicroSD?

I just got an STM32 Thing Plus and am trying the SD card sample sketches, but none of them detect a card. No pin # value I provide for the init function works, including the most common ones listed in the sketch as well as any number I could plausibly derive from the product schematic.

First, to confirm, the pertinent pin is chip select, correct? Second, which pin is that on this board?

Thanks!

PS: SDCARD_SS_PIN doesn’t appear to be defined in SPI.h or SD.h, unless my editor is very confused.

Which one is the SS pin of this board? This is neither marked in its body nor clear from the datasheet of the chip. Team Sparkfun, please help.

#SS is indeed chip select. For most processors in master mode, there is no dedicated chip select pin; you would use any GPIO pin and connect it the chip select on the SD card or other device. Depending on implementation, you likely need to control the #SS pin manually by setting it low before an SPI transfer and setting it high at the end

/mike

I think the clear take-away here is, I need to do a lot of reading up on SPI, because as it stands, it’s still mush to me how to interface with the SD card slot on this unit. Time to hit the books!

UPDATE: the actual answer is to use the STM32SD library that I had overlooked previously, which works seamlessly.