6.1.9.1 Bulk Erase

Note: The entire Bulk Erase section is internal only.

Bulk erase performs a complete erase of the Main Program (PFM), sector redundancy and all of the NVR Flash. It may only be used in the private test mode.

A bulk erase sequence comprises the following steps:

  1. Run the following unlock sequence using the bulk erase command to start the sequence:
    1. Set NVMCON.WREN = 1 (allow writes to NVMCON.NVMWR), and set NVMCON.NVMOP to BULK_ERASE (using a single write).
    2. Set NVMKEY = 0x00000000 (reset key).
    3. Set NVMKEY = 0xAA996655.
    4. Set NVMKEY = 0x556699AA.
    5. Write to the target register NVMCON to set the NVMWR bit. This starts the FC operation.
    Note:
    1. The erase sequence completes when the hardware clears the NVMCON.NVMWR bit.
    2. Do not pulse the output after a bulk erase.
  2. Clear the NVMCON.NVMWREN bit.
  3. Check the NVMCON.NVMERR and NVMCON.BORERR bits to ensure that the erase sequence completes successfully.
Table 6-8. Erase Options
Flash Partition Memory RegionPage ErasePanel EraseChip EraseBulk Erase
BFMBoot FlashYes, ConfigurableNoYesYes
Device/Boot ConfigYes, ConfigurableNoYesYes
OTP (One Time Programmable)NoNoNoYes
PFMProgram Flash MemoryYes, ConfigurableYesYesYes