Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

LAUNCHCC3220MODASF: Rollback of firmware after OTA

$
0
0

Part Number:LAUNCHCC3220MODASF

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:

  1. Shall the file be automatically be reverted if there is no commit?
  2. If yes, what could be preventing it?

I'm using the latest sdk and service pack.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>