Skip to main content
mailmail9116
Associate III
February 20, 2013
Question

FATFS - slow

  • February 20, 2013
  • 2 replies
  • 944 views
Posted on February 20, 2013 at 14:41

Hi ,

A general question about fatfs and SDIO interface , i have a relative many read/seek operations in my program flow,and its taking a segnificant time of the all ''runtime''.

Is there anyway to speed things up? anything i could tweak to make seek/read faster ?

Thanks

michael
    This topic has been closed for replies.

    2 replies

    Andrew Neil
    Super User
    February 20, 2013
    Posted on February 20, 2013 at 15:09

    Have you (also) asked on the FatFS forum?

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Tesla DeLorean
    Guru
    February 20, 2013
    Posted on February 20, 2013 at 15:53

    Don't Seek if the file pointer is already where it's supposed to be.

    Caching Reads, Prefetching and Lazy Writes implementation in you diskio.c

    Async IO. ie non-blocking implementation.

    File system access threaded.

    Efficient SDIO implementation, DMA, multi-block, higher clock rate, faster SDHC/SDXC cards.

    Better implementation of your algorithm and buffering.

    Better understanding of the file system, and time invested in understanding the FatFs implementation, and ways to optimize it.

    Smaller file system, smaller FAT. ie don't use a 32 GB partition if you only need 64 MB.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..