6 years, 3 months ago.

Read aligned sectors on FAT32

Hey guys! I'm working on a project that reads data from files on a FAT32 volume, and I just have a quick question about the sector arrangement. According to the FatFs Application Note, it's more efficient to read aligned sectors than unaligned sectors since aligned sectors don't use an intermediate sector buffer. How can I go about ensuring that my reads are reading aligned sectors? Is it as simple as only reading data in multiples of 512B, or is it possible for the file's data to be unaligned? Thanks!

Why don't you ask the question at following site?
http://elm-chan.org/fsw/ff/bd/

posted by Yoshi Mimura 11 Aug 2014
Be the first to answer this question.