2018-07-10 01:47 PM
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
2018-07-10 04:57 PM
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