5.3.5 Step 5: Raw Storage Erase – SRAM
Before downloading the patches to SRAM, it is essential to erase the relevant memory location in the SRAM. The procedure for erasing the SRAM follows:
- The main processor sends the Raw Storage Erase command. The user must provide the storage ID for the SRAM, offset in blocks, and number of blocks to erase. In this case, erase three blocks starting from offset 0.
- 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 8 shows the Raw Storage Erase command.