Skip to main content
Nimit Vachhani
Associate III
September 24, 2018
Question

Implement fat file system using SPI in stm32F0 Disco Board.

  • September 24, 2018
  • 2 replies
  • 963 views

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.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
September 24, 2018

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Nimit Vachhani
Associate III
October 3, 2018

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