English
Language : 

K60P100M100SF2RM Datasheet, PDF (673/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 28 Flash Memory Module (FTFL)
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.
Table 28-53. Program Section Command Error Handling
Error Condition
Command not available in current mode/security
An invalid flash address is supplied
Flash address is not phrase aligned
The requested section crosses a program flash sector boundary
The requested number of phrases is zero
The space required to store data for the requested number of phrases is more than half the
size of the programming acceleration RAM (program flash only devices) or FlexRAM
(FlexNVM devices)
The FlexRAM is not set to function as a traditional RAM, i.e. set if RAMRDY=0
The flash address falls in a protected area
Any errors have been encountered during the verify operation
Error Bit
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[FPVIOL]
FSTAT[MGSTAT0]
28.4.12.8.1 Flash Sector Programming
The process of programming an entire flash sector using the Program Section command
is as follows:
1. If required, execute the Set FlexRAM Function command to make the FlexRAM
available as traditional RAM and initialize the FlexRAM to all ones.
2. Launch the Erase Flash Sector command to erase the flash sector to be programmed.
3. Beginning with the starting address of the programming acceleration RAM (program
flash only devices) or FlexRAM (FlexNVM devices), sequentially write enough data
to the RAM to fill an entire flash sector. This area of the RAM serves as the section
program buffer.
NOTE
In step 1, the section program buffer was initialized to all
ones, the erased state of the flash memory.
The section program buffer can be written to while the operation launched in step 2
is executing, i.e. while CCIF = 0.
4. Execute the Program Section command to program the contents of the section
program buffer into the selected flash sector.
5. If a flash sector is larger than half the FlexRAM, repeat steps 3 and 4 until the sector
is completely programmed.
6. To program additional flash sectors, repeat steps 2 through 4.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
673