Information
Table 28-52. Program Once Command FCCOB Requirements (continued)
FCCOB Number FCCOB Contents [7:0]
7 Program Once Byte 3 value
After clearing CCIF to launch the Program Once command, the FTFL first verifies that
the selected record is erased. If erased, then the selected record is programmed using the
values provided. The Program Once command also verifies that the programmed values
read back correctly. The CCIF flag is set after the Program Once operation has
completed.
The reserved program flash 0 IFR location accessed by the Program Once command
cannot be erased and any attempt to program one of these records when the existing value
is not Fs (erased) is not allowed. Valid record index values for the Program Once
command range from 0x00 to 0x0F. During execution of the Program Once command,
any attempt to read addresses within program flash 0 returns invalid data.
Table 28-53. Program Once Command Error Handling
Error Condition Error Bit
Command not available in current mode/security FSTAT[ACCERR]
An invalid record index is supplied FSTAT[ACCERR]
The requested record has already been programmed to a non-FFFF value
1
FSTAT[ACCERR]
Any errors have been encountered during the verify operation FSTAT[MGSTAT0]
1. If a Program Once record is initially programmed to 0xFFFF_FFFF, the Program Once command is allowed to execute
again on that same record.
28.4.10.12 Erase All Blocks Command
The Erase All Blocks operation erases all flash memory, verifies all memory contents,
and releases MCU security.
Table 28-54. Erase All Blocks Command FCCOB Requirements
FCCOB Number FCCOB Contents [7:0]
0 0x44 (ERSALL)
After clearing CCIF to launch the Erase All Blocks command, the FTFL erases all
program flash memory, program flash 1 IFR space, then verifies that all are erased.
If the FTFL verifies that all flash memories were properly erased, security is released by
setting the FSEC[SEC] field to the unsecure state and the FCNFG[RAMRDY] bit is set.
The Erase All Blocks command aborts if any flash region is protected. The swap
indicator address in each program flash block is not implicitly protected from the Erase
Flash Operation in Low-Power Modes
K20 Sub-Family Reference Manual, Rev. 6, Nov 2011
640 Freescale Semiconductor, Inc.
