Eli Aaron

STM32 with SD Card and FatFs using CubeMX – Write error and write speed - Solution

Discussion created by Eli Aaron on Jul 31, 2017
Latest reply on Oct 23, 2017 by sameena shaikh

STM32 with SD Card and FatFs using CubeMX

 

Description of two problems and solutions:

 

problems 1: Random write errors 

Solution: Configuring SD Card + DMA with CubeMX and modifying the code so FatFs will use DMA (CubeMX will not override the changes)

 

problems 2: Increasing write time - The more files written, the more time it will take to write the next file

Solution: Using a small number of files (big files)

 

Outcomes