5.3.9 Step 9: Raw Storage Erase – SFLASH
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 CC3120 or CC3220 device responds with an Ack.
- The main processor responds with an Ack.
- The main processor sends the Get Status command.
- The CC3120 or CC3220 device responds with an Ack followed by the Last Status response. Only the fourth byte should be inspected; 0x40 means success whereas other values indicate error.
- The main processor sends an Ack response.
Figure 12 shows the Raw Storage Erase command.