That is, if I only need to erase 12 bytes, will the entire 1K sector be erased without the other 1012 bytes being retained/restored? The KSDK v2.0 API reference manual is unclear about this. I need to know if I need to manually backup the data to be retained and restore it after the erasure.
Hi Jim
It is always necessary to erase a complete sector at a time. You can make a backup of the data in the first in SRAM if there is not a serious problem if they are lost in case of a reset or power loss during the operation. If fail-safe operation is needed you can use a swap block as described in
http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF
Regards
Mark
uTasker developer and supporter (+5'000 hours experience on +60 Kinetis derivatives in +80 product developments)
Kinetis: http://www.utasker.com/kinetis.html