Information
28.4.11.8 Program Section Command
The Program Section operation programs the data found in the section program buffer to
previously erased locations in the flash memory using an embedded algorithm. Data is
preloaded into the section program buffer by writing to the FlexRAM while it is set to
function as traditional RAM (see Flash Sector Programming).
The section program buffer is limited to the lower half of the RAM. Data written to the
upper half of the RAM is ignored and may be overwritten during Program Section
command execution.
CAUTION
A flash memory location must be in the erased state before
being programmed. Cumulative programming of bits (back-to-
back program operations without an intervening erase) within a
flash memory location is not allowed. Re-programming of
existing 0s to 0 is not allowed as this overstresses the device.
Table 28-51. Program Section Command FCCOB Requirements
FCCOB Number FCCOB Contents [7:0]
0 0x0B (PGMSEC)
1 Flash address [23:16]
2 Flash address [15:8]
3 Flash address [7:0]
1
4 Number of longwords to program [15:8]
5 Number of longwords to program [7:0]
1. Must be longword aligned (Flash address [1:0] = 00).
After clearing CCIF to launch the Program Section command, the flash memory module
blocks access to the FlexRAM and programs the data residing in the section program
buffer into the flash memory starting at the flash address provided.
The starting address must be unprotected (see the description of the FPROT and
FDPROT registers) to permit execution of the Program Section operation. Programming,
which is not allowed to cross a flash sector boundary, continues until all requested
longwords have been programmed. The Program Section command also verifies that after
programming, all bits requested to be programmed are programmed.
After the Program Section operation completes, the CCIF flag is set and normal access to
the FlexRAM is restored. The contents of the section program buffer may be changed by
the Program Section operation.
Chapter 28 Flash Memory Module (FTFL)
K20 Sub-Family Reference Manual, Rev. 2, Feb 2012
Freescale Semiconductor, Inc. 545
