Before downloading the patches to the
SFLASH, it is essential to erase the relevant memory location in the SFLASH. The
procedure for erasing the SFLASH follows:
- The main processor sends the Raw Storage Erase command. The user must provide the storage ID for
the SFLASH, offset in blocks, and number of blocks to erase. In this case, erase
two blocks starting from offset 33.
- The CC3100 or CC3200 device responds with an Ack.
- The main processor responds with an Ack.
- The main processor sends the Get Status command.
- The CC3100 or CC3200 device responds with an Ack followed by
the Last Status response. Only the fourth byte should be inspected; 0x40
means success whereas 0x4A indicates an error.
- The main processor sends an Ack response.
Figure 5-7 shows the Raw Storage Erase command.