English
Language : 

K60P100M100SF2RM Datasheet, PDF (668/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Flash Operation in Low-Power Modes
Upon clearing CCIF to launch the Erase Flash Block command, the FTFL erases the
main array of the selected flash block and verifies that it is erased. When the data flash is
targeted, DEPART must be set for no EEPROM (see Table 28-4) else the Erase Flash
Block command aborts setting the FSTAT[ACCERR] bit. The Erase Flash Block
command aborts and sets the FSTAT[FPVIOL] bit if any region within the block is
protected (see the description of the FPROT and FDPROT registers). The swap indicator
address in each program flash block is implicitly protected from block erase unless the
swap system is in the UPDATE or UPDATE-ERASED state and the program flash block
being erased is the non-active block. If the erase verify fails, the MGSTAT0 bit in
FSTAT is set. The CCIF flag will set after the Erase Flash Block operation has
completed.
Table 28-49. Erase Flash Block Command Error Handling
Error Condition
Command not available in current mode/security
Program flash is selected and the address is out of program flash range
Data flash is selected and the address is out of data flash range
Data flash is selected with EEPROM enabled
Flash address is not longword aligned
Any area of the selected flash block is protected
Any errors have been encountered during the verify operation
Error Bit
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[FPVIOL]
FSTAT[MGSTAT0]
28.4.12.7 Erase Flash Sector Command
The Erase Flash Sector operation erases all addresses in a Flash sector.
Table 28-50. Erase Flash Sector Command FCCOB Requirements
FCCOB Number
0
1
2
3
FCCOB Contents [7:0]
0x09 (ERSSCR)
Flash address [23:16] in the flash sector to be erased
Flash address [15:8] in the flash sector to be erased
Flash address [7:0]1 in the flash sector to be erased
1. Must be phrase aligned (flash address [2:0] = 000).
After clearing CCIF to launch the Erase Flash Sector command, the FTFL erases the
selected program flash or data flash sector and then verifies that it is erased. The Erase
Flash Sector command aborts if the selected sector is protected (see the description of the
FPROT and FDPROT registers). The swap indicator address in each program flash block
is implicitly protected from sector erase unless the swap system is in the UPDATE or
UPDATE-ERASED state and the program flash sector containing the swap indicator
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
668
Freescale Semiconductor, Inc.