within the block is protected (see the description of the FPROT registers). If the eraseverify fails, FSTAT[MGSTAT0] is set. The CCIF flag will set after the Erase FlashBlock operation has completed.Table 45-19. Erase Flash Block Command Error HandlingError Condition Error BitCommand not available in current mode/security FSTAT[ACCERR]Program flash is selected and the address is out of program flash range FSTAT[ACCERR]Flash address is not longword aligned FSTAT[ACCERR]Any area of the selected flash block is protected FSTAT[FPVIOL]Any errors have been encountered during the verify operation1 FSTAT[MGSTAT0]1. User margin read may be run using the Read 1s Block command to verify all bits are erased.45.4.10.7 Erase Flash Sector CommandThe Erase Flash Sector operation erases all addresses in a flash sector.Table 45-20. Erase Flash Sector Command FCCOB RequirementsFCCOB Number FCCOB Contents [7:0]0 0x09 (ERSSCR)1 Flash address [23:16] in the flash sector to be erased2 Flash address [15:8] in the flash sector to be erased3 Flash address [7:0]1 in the flash sector to be erased1. Must be longword aligned (flash address [1:0] = 00).After clearing CCIF to launch the Erase Flash Sector command, the flash memorymodule erases the selected program flash sector and then verifies that it is erased. TheErase Flash Sector command aborts if the selected sector is protected (see the descriptionof the FPROT registers). If the erase-verify fails the FSTAT[MGSTAT0] bit is set. TheCCIF flag is set after the Erase Flash Sector operation completes. The Erase Flash Sectorcommand is suspendable (see the FCNFG[ERSSUSP] bit and Figure 45-4).Table 45-21. Erase Flash Sector 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]The selected program flash sector is protected FSTAT[FPVIOL]Any errors have been encountered during the verify operation1 FSTAT[MGSTAT0]1. User margin read may be run using the Read 1s Section command to verify all bits are erased.Functional DescriptionKL27 Sub-Family Reference Manual , Rev. 5, 01/2016918 Freescale Semiconductor, Inc.