1. Confirm the connection of the sd card with the controller
if you choose sdio bus to connect the controller with the sdcard, it looks like below.
-------------------- ----------------------
PC8 | <-- SDIO_D0 --------> | D0
PC9 | <-- SDIO_D1 --------> | D1
stm32 PC10 | <-- SDIO_D2 --------> | D2
controller PC11 | <-- SDIO_D3 --------> | D3
PC12 | <-- SDIO_CLK --------> | CLK sd card
PD2 | <-- SDIO_CMD -------> | CMD
card detect pin | <-- SD_CD (optional) --> | CD
3.3V | <-- 3.3V -----------> | 3.3V
GND | <-- GND ------------> | GND
-------------------- ----------------
2.config nuttx