English
Language : 

K60P100M100SF2RM Datasheet, PDF (674/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Flash Operation in Low-Power Modes
7. To restore EEPROM functionality, execute the Set FlexRAM Function command to
make the FlexRAM available as EEPROM.
28.4.12.9 Read 1s All Blocks Command
The Read 1s All Blocks command checks if the program flash blocks, data flash blocks,
EEPROM backup records, and data flash IFR have been erased to the specified read
margin level, if applicable, and releases security if the readout passes, i.e. all data reads as
'1'.
Table 28-54. Read 1s All Blocks Command FCCOB Requirements
FCCOB Number
0
1
FCCOB Contents [7:0]
0x40 (RD1ALL)
Read-1 Margin Choice
After clearing CCIF to launch the Read 1s All Blocks command, the FTFL :
• sets the read margin for 1s according to Table 28-55,
• checks the contents of the program flash, data flash, EEPROM backup records, and
data flash IFR are in the erased state.
If the FTFL confirms that these memory resources are erased, security is released by
setting the FSEC[SEC] field to the unsecure state. The security byte in the flash
configuration field (see Flash Configuration Field Description) remains unaffected by the
Read 1s All Blocks command. If the read fails, i.e. all memory resources are not in the
fully erased state, the FSTAT[MGSTAT0] bit is set.
The EEERDY and RAMRDY bits are clear during the Read 1s All Blocks operation and
are restored at the end of the Read 1s All Blocks operation.
The CCIF flag sets after the Read 1s All Blocks operation has completed.
Table 28-55. Margin Level Choices for Read 1s All Blocks
Read Margin Choice
0x00
0x01
0x02
Margin Level Description
Use the 'normal' read level for 1s
Apply the 'User' margin to the normal read-1 level
Apply the 'Factory' margin to the normal read-1 level
Table 28-56. Read 1s All Blocks Command Error Handling
Error Condition
An invalid margin choice is specified
Error Bit
FSTAT[ACCERR]
Table continues on the next page...
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
674
Freescale Semiconductor, Inc.