28.4.12.1 Read 1s Block CommandThe Read 1s Block command checks to see if an entire program flash or data flash blockhas been erased to the specified margin level. The FCCOB flash address bits determinewhich logical block is erase-verified.Table 28-34. Read 1s Block Command FCCOB RequirementsFCCOB Number FCCOB Contents [7:0]0 0x00 (RD1BLK)1 Flash address [23:16] in the flash block to be verified2 Flash address [15:8] in the flash block to be verified3 Flash address [7:0]1 in the flash block to be verified4 Read-1 Margin Choice1. Must be longword aligned (Flash address [1:0] = 00).After clearing CCIF to launch the Read 1s Block command, the FTFL sets the readmargin for 1s according to Table 28-35 and then reads all locations within the selectedprogram flash or data flash block.When the data flash is targeted, DEPART must be set for no EEPROM, else the Read 1sBlock command aborts setting the FSTAT[ACCERR] bit. If the FTFL fails to read all 1s(i.e. the flash block is not fully erased), the FSTAT[MGSTAT0] bit is set. The CCIF flagsets after the Read 1s Block operation has completed.Table 28-35. Margin Level Choices for Read 1s BlockRead Margin Choice Margin Level Description0x00 Use the 'normal' read level for 1s0x01 Apply the 'User' margin to the normal read-1 level0x02 Apply the 'Factory' margin to the normal read-1 levelTable 28-36. Read 1s Block Command Error HandlingError Condition Error BitCommand not available in current mode/security FSTAT[ACCERR]An invalid margin choice is specified FSTAT[ACCERR]Program flash is selected and the address is out of program flash range FSTAT[ACCERR]Data flash is selected and the address is out of data flash range FSTAT[ACCERR]Data flash is selected with EEPROM enabled FSTAT[ACCERR]Flash address is not longword aligned FSTAT[ACCERR]Read-1s fails FSTAT[MGSTAT0]Flash Operation in Low-Power ModesK51 Sub-Family Reference Manual, Rev. 6, Nov 2011650 Freescale Semiconductor, Inc.