Information

program flash (=0) block
data flash (=1) block
CAUTION
Flash data must be in the erased state before being
programmed. Cumulative programming of bits (adding more
zeros) is not allowed.
28.4.11.1 Read 1s Block Command
The Read 1s Block command checks to see if an entire program flash or data flash block
has been erased to the specified margin level. The FCCOB flash address bits determine
which logical block is erase-verified.
Table 28-33. Read 1s Block Command FCCOB Requirements
FCCOB Number FCCOB Contents [7:0]
0 0x00 (RD1BLK)
1 Flash address [23:16] in the flash block to be verified
2 Flash address [15:8] in the flash block to be verified
3 Flash address [7:0]
1
in the flash block to be verified
4 Read-1 Margin Choice
1. Must be longword aligned (Flash address [1:0] = 00).
After clearing CCIF to launch the Read 1s Block command, the flash memory module
sets the read margin for 1s according to Table 28-34 and then reads all locations within
the selected program flash or data flash block.
When the data flash is targeted, DEPART must be set for no EEPROM, else the Read 1s
Block command aborts setting the FSTAT[ACCERR] bit. If the flash memory module
fails to read all 1s (i.e. the flash block is not fully erased), the FSTAT[MGSTAT0] bit is
set. The CCIF flag sets after the Read 1s Block operation has completed.
Table 28-34. Margin Level Choices for Read 1s Block
Read Margin Choice Margin Level Description
0x00 Use the 'normal' read level for 1s
0x01 Apply the 'User' margin to the normal read-1 level
0x02 Apply the 'Factory' margin to the normal read-1 level
Chapter 28 Flash Memory Module (FTFL)
K20 Sub-Family Reference Manual, Rev. 2, Feb 2012
Freescale Semiconductor, Inc. 533