Datasheet

Table 4-33. Erase all blocks command error handling
Register Error bit Error condition
NVM_FSTAT
ACCERR
Set if CCOBIX[2:0] ≠ 000 at command launch
Set if command not available in current mode (see Table 4-9)
FPVIOL Set if any area of the flash or EEPROM memory is protected
MGSTAT1 Set if any errors have been encountered during the verify operation
1
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation
1
1. As found in the memory map for NVM
4.5.2.9.8 Erase flash block command
The erase flash block operation will erase all addresses in a flash or EEPROM block.
Table 4-34. Erase flash block command FCCOB requirements
CCOBIX[2:0] FCCOB parameters
000 0x09 Global address [23:16] to identify flash block
1
001 Global address[15:0] in flash block to be erased
1. Global address [23] selects between flash (0) or EEPROM (1) block, that can otherwise eventually share the same
address on the MCU global memory map.
Upon clearing FSTAT[CCIF] to launch the erase flash block command, the memory
controller will erase the selected flash block and verify that it is erased. The
FSTAT[CCIF] flag will set after the erase flash block operation has completed.
Table 4-35. Erase flash block command error handling
Register Error Bit Error Condition
FSTAT
ACCERR
Set if CCOBIX[2:0] != 001 at command launch
Set if command not available in current mode (see Table 4-9)
Set if an invalid global address [23:16] is supplied
1
FPVIOL Set if an area of the selected flash block is protected
MGSTAT1 Set if any errors have been encountered during the verify operation
2
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation
2
1. As defined by the memory map for NVM
2. As found in the memory map for NVM
4.5.2.9.9 Erase flash sector command
The erase flash sector operation will erase all addresses in a flash sector.
Flash and EEPROM
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
98 Freescale Semiconductor, Inc.