cancel
Showing results for 
Search instead for 
Did you mean: 

Implement fat file system using SPI in stm32F0 Disco Board.

Nimit Vachhani
Associate III

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.

2 REPLIES 2

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Nimit Vachhani
Associate III

Thanks Clive for reply. I have gone through those examples. Finally i have decided to move on to STM32F103 controller with SDIO bus.