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:
- Run the following unlock sequence
using the bulk erase command to start the sequence:
- Set NVMCON.WREN =
1
(allow writes to NVMCON.NVMWR), and set NVMCON.NVMOP to BULK_ERASE (using a single write). - Set NVMKEY = 0x00000000 (reset key).
- Set NVMKEY = 0xAA996655.
- Set NVMKEY = 0x556699AA.
- Write to the target register NVMCON to set the NVMWR bit. This starts the FC operation.
Note:- The erase sequence completes when the hardware clears the NVMCON.NVMWR bit.
- Do not pulse the output after a bulk erase.
- Set NVMCON.WREN =
- Clear the NVMCON.NVMWREN bit.
- Check the NVMCON.NVMERR and NVMCON.BORERR bits to ensure that the erase sequence completes successfully.
Flash Partition | Memory Region | Page Erase | Panel Erase | Chip Erase | Bulk Erase |
---|---|---|---|---|---|
BFM | Boot Flash | Yes, Configurable | No | Yes | Yes |
Device/Boot Config | Yes, Configurable | No | Yes | Yes | |
OTP (One Time Programmable) | No | No | No | Yes | |
PFM | Program Flash Memory | Yes, Configurable | Yes | Yes | Yes |