English
Language : 

K60P100M100SF2RM Datasheet, PDF (669/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 28 Flash Memory Module (FTFL)
address being erased is the non-active block. If the erase-verify fails the
FSTAT[MGSTAT0] bit is set. The CCIF flag is set after the Erase Flash Sector operation
completes. The Erase Flash Sector command is suspendable (see the FCNFG[ERSSUSP]
bit and Figure 28-35).
Table 28-51. Erase Flash Sector Command Error Handling
Error Condition
Command not available in current mode/security
An invalid Flash address is supplied
Flash address is not phrase aligned
The selected program flash or data flash sector is protected
Any errors have been encountered during the verify operation
Error Bit
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[FPVIOL]
FSTAT[MGSTAT0]
28.4.12.7.1 Suspending an Erase Flash Sector Operation
To suspend an Erase Flash Sector operation set the FCNFG[ERSSUSP] bit (see Flash
Configuration Field Description) when CCIF is clear and the CCOB command field holds
the code for the Erase Flash Sector command. During the Erase Flash Sector operation
(see Erase Flash Sector Command), the FTFL samples the state of the ERSSUSP bit at
convenient points. If the FTFL detects that the ERSSUSP bit is set, the Erase Flash
Sector operation is suspended and the FTFL sets CCIF. While ERSSUSP is set, all writes
to FTFL registers are ignored except for writes to the FSTAT and FCNFG registers.
If an Erase Flash Sector operation effectively completes before the FTFL detects that a
suspend request has been made, the FTFL clears the ERSSUSP bit prior to setting CCIF.
When an Erase Flash Sector operation has been successfully suspended, the FTFL sets
CCIF and leaves the ERSSUSP bit set. While CCIF is set, the ERSSUSP bit can only be
cleared to prevent the withdrawal of a suspend request before the FTFL has
acknowledged it.
28.4.12.7.2 Resuming a Suspended Erase Flash Sector Operation
If the ERSSUSP bit is still set when CCIF is cleared to launch the next command, the
previous Erase Flash Sector operation resumes. The FTFL acknowledges the request to
resume a suspended operation by clearing the ERSSUSP bit. A new suspend request can
then be made by setting ERSSUSP. A single Erase Flash Sector operation can be
suspended and resumed multiple times.
There is a minimum elapsed time limit between the request to resume the Erase Flash
Sector operation (CCIF is cleared) and the request to suspend the operation again
(ERSSUSP is set). This minimum time period is required to ensure that the Erase Flash
Sector operation will eventually complete. If the minimum period is continually violated,
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
669