Chapter 21 64 KB Flash Module (S12ZFTMRZ64K2KV2)
S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
736
Freescale Semiconductor
Upon clearing CCIF to launch the Erase EEPROM 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 EEPROM Sector
operation has completed.
21.4.7.17 Protection Override Command
The Protection Override command allows the user to temporarily override the protection limits, either
decreasing, increasing or disabling protection limits, on P-Flash and/or EEPROM, if the comparison key
provided as a parameter loaded on FCCOB matches the value of the key previously programmed on the
Flash Configuration Field (see
). The value of the Protection Override Comparison Key must
not be 16’hFFFF, that is considered invalid and if used as argument will cause the Protection Override
feature to be disabled. Any valid key value that does not match the value programmed in the Flash
Configuration Field will cause the Protection Override feature to be disabled. Current status of the
Protection Override feature can be observed on FPSTAT FPOVRD bit (see
Protection Status Register (FPSTAT)
Table 21-67. Erase EEPROM 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 suppliedsee
Set if a misaligned word address is supplied (global address [0] != 0)
FPVIOL
Set if the selected area of the EEPROM memory 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-68. Protection Override Command FCCOB Requirements
Register
FCCOB Parameters
FCCOB0
0x13
Protection Update Selection
[1:0] See
FCCOB1
Comparison Key
FCCOB2
reserved
New FPROT value
FCCOB3
reserved
New DFPROT value
Table 21-69. Protection Override selection description
Protection Update
Selection code [1:0]
Protection register selection
bit 0
Update P-Flash protection
0 - keep unchanged (do not update)
1 - update P-Flash protection with new FPROT value loaded on FCCOB