cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4Discovery with FatFS in SPI mode

tgoin
Associate II
Posted on April 27, 2014 at 20:47

Hi all,

Is someone else tried to implement solution about Fatfs (sd card) on discovery card with SPI communication ?

I tried

http://eliaselectronics.com/reading-sd-cards-with-the-stm32f4-discovery/

with

http://elm-chan.org/fsw/ff/00index_e.html

solution but never worked correctly ...

f_mount() never answer, there is no time_out, soft is bloked !!!

I'm very happy to received help about this.

Thanks a lot

Thierry
2 REPLIES 2
Posted on April 28, 2014 at 16:06

I modified the SD SPI example (ST) for the F1 series to work with SDHC/HX cards, it was however pretty slow, and I've used SDIO on the F2/F4 parts.

Are you pin constrained to SPI? As I recall you can keep the SDIO in 1-bit mode on boards like the STM32F429I-DISCO which has a pin clash on the 4-bit implementation with the LCD Red signals.
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
moniuse98780
Associate
Posted on May 01, 2014 at 02:32

Hi, Thierry.

Why not try

http://nemuisan.blog.bai.ne.jp/?eid=192848#STM32F4

?

It contains recent fatfs0.10a(with SDIO/SPI HAL driver) and ton of tft-lcd drivers.