English
Language : 

MC9S12HY64 Datasheet, PDF (551/792 Pages) Freescale Semiconductor, Inc – S12 Microcontrollers
32 KByte Flash Module (S12FTMRC32K1V1)
(CCIF=0) the user must not write to any Flash module register. The CCIF flag will set after the Erase All
Blocks operation has completed.
Table 15-44. Erase All Blocks Command Error Handling
Register
Error Bit
Error Condition
ACCERR
Set if CCOBIX[2:0] != 000 at command launch
Set if command not available in current mode (see Table 15-27)
FSTAT
FPVIOL
MGSTAT1
Set if any area of the P-Flash or D-Flash memory is protected
Set if any errors have been encountered during the verify operation1
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation1
1 As found in the memory map for FTMRC64K1.
15.4.5.8 Erase Flash Block Command
The Erase Flash Block operation will erase all addresses in a P-Flash or D-Flash block.
Table 15-45. Erase Flash Block Command FCCOB Requirements
CCOBIX[2:0]
000
001
FCCOB Parameters
0x09
Global address [17:16] to
identify Flash block
Global address [15:0] in Flash block to be erased
Upon clearing CCIF to launch the Erase Flash Block command, the Memory Controller will erase the
selected Flash block and verify that it is erased. The CCIF flag will set after the Erase Flash Block
operation has completed.
Table 15-46. Erase Flash Block Command Error Handling
Register
Error Bit
Error Condition
Set if CCOBIX[2:0] != 001 at command launch
ACCERR
Set if command not available in current mode (see Table 15-27)
Set if an invalid global address [17:16] is supplied1
FSTAT
Set if the supplied P-Flash address is not phrase-aligned or if the D-Flash
address is not word-aligned
FPVIOL
MGSTAT1
Set if an area of the selected Flash block is protected
Set if any errors have been encountered during the verify operation2
MGSTAT0
Set if any non-correctable errors have been encountered during the verify
operation2
1 As defined by the memory map for FTMRC64K1.
2 As found in the memory map for FTMRC64K1.
MC9S12HY/HA-Family Reference Manual, Rev. 1.04
Freescale Semiconductor
551