English
Language : 

K60P100M100SF2RM Datasheet, PDF (663/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 28 Flash Memory Module (FTFL)
28.4.12.2 Read 1s Section Command
The Read 1s Section command checks if a section of program flash or data flash memory
is erased to the specified read margin level. The Read 1s Section command defines the
starting address and the number of phrases to be verified.
Table 28-37. Read 1s Section Command FCCOB Requirements
FCCOB Number
0
1
2
3
4
5
6
FCCOB Contents [7:0]
0x01 (RD1SEC)
Flash address [23:16] of the first phrase to be verified
Flash address [15:8] of the first phrase to be verified
Flash address [7:0]1 of the first phrase to be verified
Number of phrases to be verified [15:8]
Number of phrases to be verified [7:0]
Read-1 Margin Choice
1. Must be phrase aligned (Flash address [2:0] = 000).
Upon clearing CCIF to launch the Read 1s Section command, the FTFL sets the read
margin for 1s according to Table 28-38 and then reads all locations within the specified
section of flash memory. If the FTFL fails to read all 1s (i.e. the flash section is not
erased), the FSTAT(MGSTAT0) bit is set. The CCIF flag sets after the Read 1s Section
operation completes.
Table 28-38. Margin Level Choices for Read 1s Section
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-39. Read 1s Section Command Error Handling
Error Condition
Command not available in current mode/security
An invalid margin code is supplied
An invalid flash address is supplied
Flash address is not phrase aligned
The requested section crosses a Flash block boundary
The requested number of phrases is zero
Read-1s fails
Error Bit
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[MGSTAT0]
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
663