Does FLASH_Erase always erase entire sector without restoring any part of it?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Does FLASH_Erase always erase entire sector without restoring any part of it?

596 次查看
pcpro178
Contributor III

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.

标签 (1)
0 项奖励
回复
1 回复

477 次查看
mjbcswitzerland
Specialist V

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

0 项奖励
回复