Datasheet

Chapter 28 768 KByte Flash Module (S12XFTM768K4V2)
MC9S12XE-Family Reference Manual Rev. 1.25
1130 Freescale Semiconductor
28.4.2.18 Erase D-Flash Sector Command
The Erase D-Flash Sector operation will erase all addresses in a sector of the D-Flash user partition.
Upon clearing CCIF to launch the Erase D-Flash Sector command, the Memory Controller will erase the
selected Flash sector and verify that it is erased. The CCIF flag will set after the Erase D-Flash Sector
operation has completed.
Table 28-68. Program D-Flash Command Error Handling
Register Error Bit Error Condition
FSTAT
ACCERR
Set if CCOBIX[2:0] < 010 at command launch
Set if CCOBIX[2:0] > 101 at command launch
Set if a Load Data Field command sequence is currently active
Set if command not available in current mode (see Table 28-30)
Set if an invalid global address [22:0] is supplied
Set if a misaligned word address is supplied (global address [0] != 0)
Set if the global address [22:0] points to an area in the D-Flash EEE partition
Set if the requested group of words breaches the end of the D-Flash block or goes
into the D-Flash EEE partition
FPVIOL None
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
FERSTAT EPVIOLIF None
Table 28-69. Erase D-Flash Sector Command FCCOB Requirements
CCOBIX[2:0] FCCOB Parameters
000 0x12
Global address [22:16] to identify
D-Flash block
001
Global address [15:0] anywhere within the sector to be erased.
See Section 28.1.2.2 for D-Flash sector size.