Chapter 21 64 KB Flash Module (S12ZFTMRZ64K2KV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
Freescale Semiconductor
729
21.4.7.9
Erase P-Flash Sector Command
The Erase P-Flash Sector operation will erase all addresses in a P-Flash sector.
Upon clearing CCIF to launch the Erase P-Flash Sector command, the Memory Controller will erase the
selected Flash sector and then verify that it is erased. The CCIF flag will be set after the Erase P-Flash
Sector operation has completed.
Table 21-49. 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
)
Set if an invalid global address [23:0] is supplied
Set if the supplied P-Flash address is not phrase-aligned or if the EEPROM
address is not word-aligned
FPVIOL
Set if an area of the selected Flash block is protected
MGSTAT1
Set if any errors have been encountered during the verify operation
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation
Table 21-50. Erase P-Flash Sector Command FCCOB Requirements
Register
FCCOB Parameters
FCCOB0
0x0A
Global address [23:16] to identify
P-Flash block to be erased
FCCOB1
Global address [15:0] anywhere within the sector to be erased.
Refer to
for the P-Flash sector size.
Table 21-51. Erase P-Flash Sector 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
)
Set if an invalid global address [23:0] is supplied see
)
Set if a misaligned phrase address is supplied (global address [2:0] != 000)
FPVIOL
Set if the selected P-Flash sector is protected
MGSTAT1
Set if any errors have been encountered during the verify operation
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation