Erase All Blocks Command - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

Functional Description
Table 32-64. Program Once Command Error Handling (continued)
Error Condition
Any errors have been encountered during the verify operation
1. If a Program Once record is initially programmed to 0xFFFF_FFFF (0xFFFF_FFFF_FFFF_FFFF for index 0x10 - 0x13),
the Program Once command is allowed to execute again on that same record.

32.4.10.9 Erase All Blocks Command

The Erase All Blocks operation erases all flash memory, verifies all memory contents,
and releases MCU security.
Table 32-65. Erase All Blocks Command FCCOB Requirements
FCCOB Number
0
After clearing CCIF to launch the Erase All Blocks command, the flash memory module
erases all program flash memory, then verifies that all are erased.
If the flash memory module verifies that all flash memories were properly erased, access
control is disabled and security is released by setting the FSEC[SEC] field to the
unsecure state. The Erase All Blocks command aborts if any flash region is protected.
The security byte and all other contents of the flash configuration field (see
Configuration Field
Description) are erased by the Erase All Blocks command. If the
erase-verify fails, the FSTAT[MGSTAT0] bit is set. The CCIF flag is set after the Erase
All Blocks operation completes.
Access control determined by the contents of the FXACC registers will not block
execution of the Erase All Blocks command. While most Flash memory will be erased,
the program flash IFR space containing the Program Once XACC and SACC fields will
not be erased and, therefore, the contents of the Program Once XACC and SACC fields
will not change. The contents of the FXACC and FSACC registers will not be impacted
by the execution of the Erase All Blocks command. After completion of the Erase All
Blocks command, access control is disabled until the next reset of the flash module or the
Read 1s All Blocks command is executed and fails (FSTAT[MGSTAT0] is set).
Table 32-66. Erase All Blocks Command Error Handling
Error Condition
Command not available in current mode/security
Any region of the program flash memory is protected
Any errors have been encountered during the verify operation
646
FCCOB Contents [7:0]
0x44 (ERSALL)
1
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Error Bit
FSTAT[MGSTAT0]
Flash
Error Bit
FSTAT[ACCERR]
FSTAT[FPVIOL]
FSTAT[MGSTAT0]
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents