31.1.12.3 PFM All Panel Erase
The PFM Erase NVMOP command erases the entire PFM region. This includes the PFM region in both panels of a dual panel system. This mode leaves the BFM and CFM pages intact and are intended to be used by a field upgradeable device. To guard against accidental erasure user code can setup PWP for protection.
A Single or Dual Panel Erase sequence comprises the following steps:
- <Desired NVMOP> is both Upper and Lower PFM Erase.
- Follow the Start Sequencer from Start Sequencer.
- Wait for NVM Interrupt from Interrupts.
- Check the INTFLAG bits to ensure that the program sequence completed successfully, and then clear all bits in INTFLAG. See Errors and Flags about error flags.
All PFM panels can be erased only if all associated page write protection is not enabled, see Debug Access Level.
If in mission mode, the application must NOT be executing from the erased region. If any initiator reads from the panel containing the region being erased, all Flash accesses are stalled until the erase completes.