Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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!