English
Language : 

K60P100M100SF2RM Datasheet, PDF (667/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 28 Flash Memory Module (FTFL)
Upon clearing CCIF to launch the Program Longword command, the FTFL programs the
data bytes into the flash using the supplied address. The swap indicator address in each
program flash block is implicitly protected from programming. The targeted flash
locations must be currently unprotected (see the description of the FPROT and FDPROT
registers) to permit execution of the Program Longword operation.
The programming operation is unidirectional. It can only move NVM bits from the erased
state ('1') to the programmed state ('0'). Erased bits that fail to program to the '0' state are
flagged as errors in MGSTAT0. The CCIF flag is set after the Program Longword
operation completes.
The supplied address must be longword aligned (flash address [1:0] = 00):
• Byte 0 data is written to the supplied address ('start'),
• Byte 1 data is programmed to byte address start+0b01,
• Byte 2 data is programmed to byte address start+0b10, and
• Byte 3 data is programmed to byte address start+0b11.
Table 28-47. Program Longword Command Error Handling
Error Condition
Command not available in current mode/security
An invalid flash address is supplied
Flash address is not longword aligned
Flash address points to a protected area
Any errors have been encountered during the verify operation
Error Bit
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[FPVIOL]
FSTAT[MGSTAT0]
28.4.12.6 Erase Flash Block Command
The Erase Flash Block operation erases all addresses in a single program flash or data
flash block.
Table 28-48. Erase Flash Block Command FCCOB Requirements
FCCOB Number
0
1
2
3
FCCOB Contents [7:0]
0x08 (ERSBLK)
Flash address [23:16] in the flash block to be erased
Flash address [15:8] in the flash block to be erased
Flash address [7:0]1 in the flash block to be erased
1. Must be longword aligned (Flash address [1:0] = 00).
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
667