28.4.12.8 Program Section CommandThe Program Section operation programs the data found in the section program buffer topreviously erased locations in the flash memory using an embedded algorithm. Data ispreloaded into the section program buffer by writing to the FlexRAM while it is set tofunction as traditional RAM (see Flash Sector Programming).The section program buffer is limited to the lower half of the RAM. Data written to theupper half of the RAM is ignored and may be overwritten during Program Sectioncommand execution.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 28-52. Program Section Command FCCOB RequirementsFCCOB Number FCCOB Contents [7:0]0 0x0B (PGMSEC)1 Flash address [23:16]2 Flash address [15:8]3 Flash address [7:0]14 Number of phrases to program [15:8]5 Number of phrases to program [7:0]1. Must be phrase aligned (Flash address [2:0] = 000).After clearing CCIF to launch the Program Section command, the FTFL blocks access tothe programming acceleration RAM (program flash only devices) or FlexRAM(FlexNVM devices) and programs the data residing in the section program buffer into theflash memory starting at the flash address provided.The starting address must be unprotected (see the description of the FPROT andFDPROT registers) to permit execution of the Program Section operation. The swapindicator address in each program flash block is implicitly protected from erase. If theswap indicator address is encountered during the Program Section operation, it isbypassed without setting FPVIOL and the contents are not programmed. Programming,which is not allowed to cross a flash sector boundary, continues until all requestedphrases have been programmed. The Program Section command also verifies that afterprogramming, all bits requested to be programmed are programmed.Flash Operation in Low-Power ModesK51 Sub-Family Reference Manual, Rev. 6, Nov 2011660 Freescale Semiconductor, Inc.