CAUTIONA flash memory location must be in the erased state beforebeing programmed. Cumulative programming of bits (back-to-back program operations without an intervening erase) within aflash memory location is not allowed. Re-programming ofexisting 0s to 0 is not allowed as this overstresses the device.Table 27-35. Program Longword Command FCCOB RequirementsFCCOB Number FCCOB Contents [7:0]0 0x06 (PGM4)1 Flash address [23:16]2 Flash address [15:8]3 Flash address [7:0]14 Byte 0 program value5 Byte 1 program value6 Byte 2 program value7 Byte 3 program value1. Must be longword aligned (Flash address [1:0] = 00).Upon clearing CCIF to launch the Program Longword command, the flash memorymodule programs the data bytes into the flash using the supplied address. The targetedflash locations must be currently unprotected (see the description of the FPROT registers)to permit execution of the Program Longword operation.The programming operation is unidirectional. It can only move NVM bits from the erasedstate ('1') to the programmed state ('0'). Erased bits that fail to program to the '0' state areflagged as errors in FSTAT[MGSTAT0]. The CCIF flag is set after the ProgramLongword operation completes.The supplied address must be longword aligned (flash address [1:0] = 00):• Byte 3 data is written to the supplied byte address ('start'),• Byte 2 data is programmed to byte address start+0b01,• Byte 1 data is programmed to byte address start+0b10, and• Byte 0 data is programmed to byte address start+0b11.Table 27-36. Program Longword Command Error HandlingError Condition Error BitCommand not available in current mode/security FSTAT[ACCERR]An invalid flash address is supplied FSTAT[ACCERR]Flash address is not longword aligned FSTAT[ACCERR]Flash address points to a protected area FSTAT[FPVIOL]Table continues on the next page...Chapter 27 Flash Memory Module (FTFA)KL04 Sub-Family Reference Manual, Rev. 3.1, November 2012Freescale Semiconductor, Inc. 405