6.4 Erase Subroutine

The erase subroutine is shown in Figure 6-5. The erase subroutine consists of the following steps:

  1. Once the program enters Erase mode, the target memory is initialized to perform an erase operation.
  2. An erase command is sent. If internal memory is used, the erase command needs to be sent for each page to be erased.
  3. When the erase is complete, the audio metadata is updated in the EEPROM.
Figure 6-5. Erase Subroutine