2018-09-24 02:39 AM
Greetings,
I am trying to implement SPI based fat file system in stm32F0 Discovery Board. I want to use HAL SPI.
My connections are as show in image.
Any guidance or sample code for implementing fat file system will be of great help.
2018-09-24 05:48 AM
In the HAL trees are a couple of relevant examples
STM32Cube_FW_F0_V1.9.0\Drivers\BSP\Adafruit_Shield\stm32_adafruit_sd.c
STM32Cube_FW_F0_V1.9.0\Middlewares\Third_Party\FatFs\src\drivers\sd_diskio.c
STM32Cube_FW_F0_V1.9.0\Projects\STM32F091RC-Nucleo\Applications\FatFs\FatFs_uSD
port as appropriate
SPI read/write code supporting the Adafruit library is in the BSP
2018-10-03 04:24 AM
Thanks Clive for reply. I have gone through those examples. Finally i have decided to move on to STM32F103 controller with SDIO bus.