Information
Clear the CCIF to launch the command
Write 0x80 to FSTAT register
Clear the old errors
Access Error and
Protection Violation
Check
FCCOB
ACCERR/
FPVIOL
Set?
EXIT
Write to the FCCOB registers
to load the required command parameter.
More
Parameters?
Availability Check
Results from previous command
Read: FSTAT register
Write 0x30 to FSTAT register
no
yes
no
yes
Previous command complete?
no
CCIF
= ‘1’?
yes
START
Figure 28-24. Generic FTFL Command Write Sequence Flowchart
28.4.8.2 FTFL Commands
The following table summarizes the function of all FTFL commands.
FCMD Command Program flash 0 Program flash 1 Function
0x00 Read 1s Block × × Verify that a program
flash block is erased.
0x01 Read 1s Section × × Verify that a given
number of program
flash locations from a
starting address are
erased.
0x02 Program Check × × Tests previously-
programmed locations
at margin read levels.
Table continues on the next page...
Flash Operation in Low-Power Modes
K20 Sub-Family Reference Manual, Rev. 6, Nov 2011
622 Freescale Semiconductor, Inc.
