Erase Flash Sector Command; Suspending An Erase Flash Sector Operation - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

Functional Description

32.4.10.5 Erase Flash Sector Command

The Erase Flash Sector operation erases all addresses in a flash sector.
Table 32-56. Erase Flash Sector Command FCCOB Requirements
FCCOB Number
0
1
2
3
1. Must be double-phrase aligned (flash address [3:0] = 0000).
After clearing CCIF to launch the Erase Flash Sector command, the flash memory
module erases the selected program flash sector and then verifies that it is erased. The
Erase Flash Sector command aborts if the selected sector is protected (see the description
of the FPROT registers). If the erase-verify fails the FSTAT[MGSTAT0] bit is set. The
CCIF flag is set after the Erase Flash Sector operation completes. The Erase Flash Sector
command is suspendable (see the FCNFG[ERSSUSP] bit and
Table 32-57. Erase Flash Sector Command Error Handling
Error Condition
Command not available in current mode/security
An invalid Flash address is supplied
Flash address is not double-phrase aligned
The selected program flash sector is protected
The selected program flash sector is located in an XA controlled segment and the Erase All
Blocks or the Read 1s All Blocks command has not successfully completed since the last
reset
Any errors have been encountered during the verify operation
1. User margin read may be run using the Read 1s Section command to verify all bits are erased.

32.4.10.5.1 Suspending an Erase Flash Sector Operation

To suspend an Erase Flash Sector operation set the FCNFG[ERSSUSP] bit (see
Configuration Field
Description) when CCIF is clear and the CCOB command field holds
the code for the Erase Flash Sector command. During the Erase Flash Sector operation
(see
Erase Flash Sector
ERSSUSP bit at convenient points. If the flash memory module detects that the
ERSSUSP bit is set, the Erase Flash Sector operation is suspended and the flash memory
module sets CCIF. While ERSSUSP is set, all writes to flash registers are ignored except
for writes to the FSTAT and FCNFG registers.
640
Flash address [23:16] in the flash sector to be erased
Flash address [15:8] in the flash sector to be erased
Flash address [7:0]
1
Command), the flash memory module samples the state of the
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
FCCOB Contents [7:0]
0x09 (ERSSCR)
1
in the flash sector to be erased
Figure
32-48).
Error Bit
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[FPVIOL]
FSTAT[FPVIOL]
FSTAT[MGSTAT0]
Flash
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents