Part Number: CC3220
Tool/software: TI C/C++ Compiler
Hi,
We want to use the external flash file system to store some limited information.
• if any state variable changes, we could either rewrite the entire state of the system or just store the update in the variable that changed
(depending on implementation)
• one approach is to introduce, say, 100 files that are labelled through and that we cycle through to store state information updates.
The assumption here is that when we overwrite a file the new copy will be written in the same sector as the original file.
• a different approach would be to try and append to a file until it reaches the 4k sector size.
The idea is that we declare the file as 4k max size but initially only write the 100 bytes state info.
Then, whenever a state change occurs, we just want to append a record of the state variable that changed.
I’m not sure if the CC3220 file system allows us to do that?
Can we append to a file while it remains stored in a single sector? Or will the file system always create a new copy in a new sector whenever we append any data?