Table 27-46. Erase All Blocks Command FCCOB RequirementsFCCOB Number FCCOB Contents [7:0]0 0x44 (ERSALL)After clearing CCIF to launch the Erase All Blocks command, the flash memory moduleerases all program flash memory, then verifies that all are erased.If the flash memory module verifies that all flash memories were properly erased,security is released by setting the FSEC[SEC] field to the unsecure state. The Erase AllBlocks command aborts if any flash region is protected. The security byte and all othercontents of the flash configuration field (see Flash Configuration Field Description) areerased by the Erase All Blocks command. If the erase-verify fails, theFSTAT[MGSTAT0] bit is set. The CCIF flag is set after the Erase All Blocks operationcompletes.Table 27-47. Erase All Blocks Command Error HandlingError Condition Error BitCommand not available in current mode/security FSTAT[ACCERR]Any region of the program flash memory is protected FSTAT[FPVIOL]Any errors have been encountered during the verify operation1 FSTAT[MGSTAT0]1. User margin read may be run using the Read 1s All Blocks command to verify all bits are erased.27.4.10.9.1 Triggering an Erase All External to the Flash Memory ModuleThe functionality of the Erase All Blocks command is also available in an uncommandedfashion outside of the flash memory. Refer to the device's Chip Configuration details forinformation on this functionality.Before invoking the external erase all function, the FSTAT[ACCERR and PVIOL] flagsmust be cleared and the FCCOB0 register must not contain 0x44. When invoked, theerase-all function erases all program flash memory regardless of the protection settings. Ifthe post-erase verify passes, the routine then releases security by setting the FSEC[SEC]field register to the unsecure state. The security byte in the Flash Configuration Field isalso programmed to the unsecure state. The status of the erase-all request is reflected inthe FCNFG[ERSAREQ] bit. The FCNFG[ERSAREQ] bit is cleared once the operationcompletes and the normal FSTAT error reporting is available as described in Erase AllBlocks Command.Functional DescriptionKL04 Sub-Family Reference Manual, Rev. 3.1, November 2012412 Freescale Semiconductor, Inc.