cancel
Showing results for 
Search instead for 
Did you mean: 

Data loss when saving data to SD using the FATFS library.

EnaitzO
Associate II

I have problems saving data at just under 1Mbit per second to SD, when the SD clock is 25Mbits per second, using the FatFS library. Data is lost, and it is because of the time consumed in performing the ‘f_write’ function for saving data to SD.

Could this be due to some limitation of the FatFS library? And if so, do you know of a more reliable library for SD management?

4 REPLIES 4
MLe M.1
Associate II

May be you can try a lower Fat stack like Fat16 Interface (Michigan State University 2004) ?

https://teslabs.com/openplayer/docs/docs/prognotes/appnote_fat16.pdf

 

EnaitzO
Associate II

The FatFs Middleware I am using is the one found in the following link and provided by ST : https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Middlewares/Third_Party/FatFs.

The FatFs provided by ST is OLD, and has been replaced many years ago. For large volumes I'd want to use the NEWER version.

However, these things are dependent on the functionality and robustness of the DISKIO layer. Validate the viability of READing before attempting to WRITE

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

Do you know where I can find the newer version you mention? I can't find it anywhere.

Is it possible to provide me with the link?