Other Parts Discussed in Thread: CC3200
Hi,
I have an issue with the automatic rollback when doing an OTA update of the cc3220modasf.
I'm writing the file /sys/mcuflashimg.bin (Opened with the the flag SL_FS_WRITE_MUST_COMMIT), calling Power_shutdown and testing the new firmware. If it succeed, I call sl_FsCtl(SL_FS_CTL_COMMIT, ...).
I am expecting the file to be automatically reverted to the previous one if it does not get validated by sl_FsCtl(SL_FS_CTL_COMMIT) during its first start. But what I'm seing is that the device reboots on the new file, fails to connect to http server and goes back to hibernate with Power_shutdown, it then always restarts on the non-validated file.
As expected the SlFsFileInfo_t.Flags is 0x250 after commit, and 0x254 when commit is pending, and this also after each successive start.
My questions:
- Shall the file be automatically be reverted if there is no commit?
- If yes, what could be preventing it?
I'm using the latest sdk and service pack.