Other Parts Discussed in Thread: CC3200
As I understand it, if we open a file on the CC3200 FLASH for write and get reset without closing it, it's content is gone.
However if we use the flag _FS_FILE_OPEN_FLAG_COMMIT we should have a fail safe, insuring that in case of reset when the file is open, the old content of the file will be reserved.
My questions are as follows:
1. Can we always relay on this mechanism? i.e if we open a file for write with the fail-safe flag and get reset (interior or exterior) before closing the file, is it 100% guaranteed that the file will still be available, with the old content?
2. Can we use this mechanism with the FW code file (/sys/mcuimg.bin)? if we imlement a code update in which the FW code file is opened with the above mentioned flag, will a reset prior to closing always result in the old code running (rather than some corrupted code, unable to run)?
3. In the terms of this fail-safe mechanism, is there a difference between various types of reset (power-down, RESET_N being LOW, calling PRCMMCUReset, returning from WD interrupt without clearing it, etc)?
Thanks,
Tal