|
S9S12G128F0MLH Datasheet, PDF (1067/1292 Pages) Freescale Semiconductor, Inc – S12 CPU core, Up to 240 Kbyte on-chip flash with ECC | |||
|
◁ |
128 KByte Flash Module (S12FTMRG128K1V1)
29.4.6.2 Erase Verify Block Command
The Erase Verify Block command allows the user to verify that an entire P-Flash or EEPROM block has
been erased. The FCCOB FlashBlockSelectionCode[1:0] bits determine which block must be veriï¬ed.
Table 29-33. Erase Verify Block Command FCCOB Requirements
CCOBIX[2:0]
000
FCCOB Parameters
Flash block
0x02
selection code [1:0]. See
Table 29-34
Table 29-34. Flash block selection code description
Selection code[1:0]
00
01
10
11
Flash block to be veriï¬ed
EEPROM
Invalid (ACCERR)
P-Flash
P-Flash
Upon clearing CCIF to launch the Erase Verify Block command, the Memory Controller will verify that
the selected P-Flash or EEPROM block is erased. The CCIF ï¬ag will set after the Erase Verify Block
operation has completed.If the block is not erased, it means blank check failed, both MGSTAT bits will be
set.
Register
FSTAT
Table 29-35. Erase Verify Block Command Error Handling
Error Bit
ACCERR
FPVIOL
MGSTAT1
MGSTAT0
Error Condition
Set if CCOBIX[2:0] != 000 at command launch
Set if an invalid FlashBlockSelectionCode[1:0] is supplied
None
Set if any errors have been encountered during the read or if blank check failed.
Set if any non-correctable errors have been encountered during the read or if
blank check failed.
29.4.6.3 Erase Verify P-Flash Section Command
The Erase Verify P-Flash Section command will verify that a section of code in the P-Flash memory is
erased. The Erase Verify P-Flash Section command deï¬nes the starting point of the code to be veriï¬ed and
the number of phrases.
Freescale Semiconductor
MC9S12G Family Reference Manual, Rev.1.23
1069
|
▷ |