cancel
Showing results for 
Search instead for 
Did you mean: 

SD card with STM32F103C8

smhhadima
Associate II
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

1 REPLY 1
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
Up vote any posts that you find helpful, it shows what's working..