Information

Upon clearing CCIF to launch the Program Check command, the flash memory module
sets the read margin for 1s according to Table 28-41, reads the specified longword, and
compares the actual read data to the expected data provided by the FCCOB. If the
comparison at margin-1 fails, the MGSTAT0 bit is set.
The flash memory module then sets the read margin for 0s, re-reads, and compares again.
If the comparison at margin-0 fails, the MGSTAT0 bit is set. The CCIF flag is set after
the Program Check operation completes.
The supplied address must be longword aligned (the lowest two bits of the byte address
must be 00):
Byte 0 data is expected at the supplied address ('start'),
Byte 1 data is expected at byte address start + 0b01,
Byte 2 data is expected at byte address start + 0b10, and
Byte 3 data is expected at byte address start + 0b11.
NOTE
See the description of margin reads, Margin Read Commands
Table 28-41. Margin Level Choices for Program Check
Read Margin Choice Margin Level Description
0x01 Read at 'User' margin-1 and 'User' margin-0
0x02 Read at 'Factory' margin-1 and 'Factory' margin-0
Table 28-42. Program Check 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 longword aligned FSTAT[ACCERR]
An invalid margin choice is supplied FSTAT[ACCERR]
Either of the margin reads does not match the expected data FSTAT[MGSTAT0]
28.4.11.4 Read Resource Command
The Read Resource command allows the user to read data from special-purpose memory
resources located within the flash memory module. The special-purpose memory
resources available include program flash IFR space, data flash IFR space, and the
Version ID field. Each resource is assigned a select code as shown in Table 28-44.
Chapter 28 Flash Memory Module (FTFL)
K20 Sub-Family Reference Manual, Rev. 1.1, Dec 2012
Freescale Semiconductor, Inc.
Preliminary
621
General Business Information