Skip to main content
Visitor II
September 10, 2024
Question

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

  • September 10, 2024
  • 3 replies
  • 1279 views

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?

    This topic has been closed for replies.

    3 replies

    Explorer
    September 10, 2024

    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

     

    EnaitzOAuthor
    Visitor II
    September 16, 2024

    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.

    Graduate II
    September 16, 2024

    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

    EnaitzOAuthor
    Visitor II
    September 17, 2024

    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?

    Visitor II
    March 16, 2025