Information

After the Program Section operation completes, the CCIF flag is set. The contents of the
section program buffer may be changed by the Program Section operation.
Table 28-46. Program Section Command Error Handling
Error Condition Error Bit
Command not available in current mode/security FSTAT[ACCERR]
An invalid flash address is supplied FSTAT[ACCERR]
Flash address is not phrase aligned FSTAT[ACCERR]
The requested section crosses a program flash sector boundary FSTAT[ACCERR]
The requested number of phrases is zero FSTAT[ACCERR]
The space required to store data for the requested number of phrases is more than half the
size of the programming acceleration RAM
FSTAT[ACCERR]
The flash address falls in a protected area FSTAT[FPVIOL]
Any errors have been encountered during the verify operation FSTAT[MGSTAT0]
28.4.10.8.1 Flash Sector Programming
The process of programming an entire flash sector using the Program Section command
is as follows:
1. Launch the Erase Flash Sector command to erase the flash sector to be programmed.
2. Beginning with the starting address of the programming acceleration RAM,
sequentially write enough data to the RAM to fill an entire flash sector. This area of
the RAM serves as the section program buffer. The section program buffer can be
written to while the operation launched in step 1 is executing, i.e. while CCIF = 0.
3. Execute the Program Section command to program the contents of the section
program buffer into the selected flash sector.
4. To program additional flash sectors, repeat steps 1 through 3.
28.4.10.9 Read 1s All Blocks Command
The Read 1s All Blocks command checks if the program flash blocks have been erased to
the specified read margin level, if applicable, and releases security if the readout passes,
i.e. all data reads as '1'.
Table 28-47. Read 1s All Blocks Command FCCOB Requirements
FCCOB Number FCCOB Contents [7:0]
0 0x40 (RD1ALL)
1 Read-1 Margin Choice
Chapter 28 Flash Memory Module (FTFL)
K20 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc. 637