RL-ARM User's Guide

File Data Fragments

File Data Fragments are of variable size and are fully defined through the file allocation information record.

To make optimum use of the Flash Block, create big file fragments to reduce the total number of file fragments. It is not optimal to open a file for appending or writing a byte to it and close the file. This approach creates huge file allocation information records, which consumes 12 bytes of Flash in total; 8 bytes for the file allocation information and 4 bytes for the information. In addition, such an approach creates slow access times to files.