SWRU577 July 2021 CC3100 , CC3200
Programming the SFLASH is done in chunks. The chunk size is 4096 bytes (4KB).
It is important to note that the image must be programmed in two phases. First, the image is programmed from offset 8 to the end. Then, program the first 8 bytes. This is mandatory since the first 8 bytes is a header that indicates to the bootloader that the image is valid. If the programming procedure is aborted for any reason such as an unexpected power failure the presence of a valid header will make the device unresponsive, as it will try to extract the corrupt image. As such, the 8 byte header must be programmed last.
Figure 5-8 shows the SFLASH programming procedure in a zoomed-out pane. As observed, the procedure is divided into three separate programming instances.