mcf51jf128 Freescale Semiconductor, Inc, mcf51jf128 Datasheet - Page 536

no-image

mcf51jf128

Manufacturer Part Number
mcf51jf128
Description
Mcf51jf128 Reference Manual
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mcf51jf128VLH
Manufacturer:
MITSUBISHI
Quantity:
321
Part Number:
mcf51jf128VLH
Manufacturer:
FREESCALE
Quantity:
5 097
Part Number:
mcf51jf128VLH
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mcf51jf128VLH
Manufacturer:
FREESCALE
Quantity:
5 097
Flash Operation in Low-Power Modes
After clearing CCIF to launch the Erase All Blocks command, the FTFL erases all
program flash memory, data flash memory, data flash IFR space, EEPROM backup
memory, and FlexRAM, then verifies that all are erased.
If the FTFL verifies that all flash memories and the FlexRAM were properly erased,
security is released by setting the FSEC[SEC] field to the unsecure state and the
FCNFG[RAMRDY] bit is set. The Erase All Blocks command aborts if any flash or
FlexRAM region is protected. The security byte and all other contents of the flash
configuration field (see
Blocks command. If the erase-verify fails, the FSTAT[MGSTAT0] bit is set. The CCIF
flag is set after the Erase All Blocks operation completes.
23.4.11.12.1 Triggering an Erase All External to the FTFL
The functionality of the Erase All Blocks command is also available in an uncommanded
fashion outside of the flash memory. Refer to the device's Chip Configuration details for
information on this functionality.
Before invoking the external erase all function, the FSTAT[ACCERR and PVIOL] flags
must be cleared and the FCCOB0 register must not contain 0x44. When invoked, the
erase-all function erases all program flash memory, data flash memory, data flash IFR
space, EEPROM backup, and FlexRAM regardless of the protection settings. If the post-
erase verify passes, the routine then releases security by setting the FSEC[SEC] field
register to the unsecure state and the FCNFG[RAMRDY] bit sets. The security byte in
the Flash Configuration Field is also programmed to the unsecure state. The status of the
erase-all request is reflected in the FCNFG[ERSAREQ] bit. The FCNFG[ERSAREQ] bit
is cleared once the operation completes and the normal FSTAT error reporting is
available as described in
23.4.11.13 Verify Backdoor Access Key Command
The Verify Backdoor Access Key command only executes if the mode and security
conditions are satisfied (see
Backdoor Access Key command is further qualified by the FSEC[KEYEN] bits. The
Verify Backdoor Access Key command releases security if user-supplied keys in the
536
Command not available in current mode/security
Any region of the program flash memory, data flash memory, or FlexRAM is protected
Any errors have been encountered during the verify operation
Error Condition
Table 23-61. Erase All Blocks Command Error Handling
Flash Configuration Field
MCF51JF128 Reference Manual, Rev. 2, 03/2011
Erase All Blocks
FTFL Commands by
Preliminary
Command.
Mode). Execution of the Verify
Description) is erased by the Erase All
Freescale Semiconductor, Inc.
FSTAT[MGSTAT0]
FSTAT[ACCERR]
FSTAT[FPVIOL]
Error Bit

Related parts for mcf51jf128