English
Language : 

K60P100M100SF2RM Datasheet, PDF (676/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Flash Operation in Low-Power Modes
28.4.12.11 Program Once Command
The Program Once command enables programming to a reserved 64-byte field in the
program flash 0 IFR (see Program Flash IFR Map and Program Once Field). Access to
the Program Once field is via 16 records, each 4 bytes long. The Program Once field can
be read using the Read Once command (see Read Once Command) or using the Read
Resource command (see Read Resource Command). Each Program Once record can be
programmed only once since the program flash 0 IFR cannot be erased.
Table 28-59. Program Once Command FCCOB Requirements
FCCOB Number
0
1
2
3
4
5
6
7
FCCOB Contents [7:0]
0x43 (PGMONCE)
Program Once record index (0x00 - 0x0F)
Not Used
Not Used
Program Once Byte 0 value
Program Once Byte 1 value
Program Once Byte 2 value
Program Once Byte 3 value
After clearing CCIF to launch the Program Once command, the FTFL first verifies that
the selected record is erased. If erased, then the selected record is programmed using the
values provided. The Program Once command also verifies that the programmed values
read back correctly. The CCIF flag is set after the Program Once operation has
completed.
The reserved program flash 0 IFR location accessed by the Program Once command
cannot be erased and any attempt to program one of these records when the existing value
is not Fs (erased) is not allowed. Valid record index values for the Program Once
command range from 0x00 to 0x0F. During execution of the Program Once command,
any attempt to read addresses within program flash 0 returns invalid data.
Table 28-60. Program Once Command Error Handling
Error Condition
Command not available in current mode/security
An invalid record index is supplied
The requested record has already been programmed to a non-FFFF value1
Any errors have been encountered during the verify operation
Error Bit
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[MGSTAT0]
1. If a Program Once record is initially programmed to 0xFFFF_FFFF, the Program Once command is allowed to execute
again on that same record.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
676
Freescale Semiconductor, Inc.