Skip to main content
smhhadima
Associate III
July 10, 2018
Question

SD card with STM32F103C8

  • July 10, 2018
  • 1 reply
  • 682 views
Posted on July 10, 2018 at 22:47

I generated the FATFS with cubeMX.

How can I direct the driver to use the SPI to communicate with the SD card? 

Also the FatFs_Usd project under the STM32Cube F1 package is not showing how can I communicate with SPI!

thank you

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    July 10, 2018
    Posted on July 11, 2018 at 01:57

    Sorry can't help you with CubeMX

    For a HAL based solution you should review some of the examples using

    STM32Cube_FW_F1_V1.6.1\Drivers\BSP\Adafruit_Shield\stm32_adafruit_sd.c

    Supporting SPI code here

    STM32Cube_FW_F1_V1.6.1\Drivers\BSP\STM32F1xx_Nucleo\stm32f1xx_nucleo.c

    Be aware the SPI based SD card access is very slow

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..