To execute a blank verify operation,
follow these steps:
- Select the command in the
CMDTYPE register:
- Set the COMMAND field
in the CMDTYPE register to BLANKVERIFY.
- Set the SIZE field in
the CMDTYPE register to one word.
- Select the target address to
verify in the CMDADDR register:
- Store the target
system address into the CMDADDR register to indicate the base
address to be verified. The flash controller will translate the
system address into the applicable flash region, bank ID, and bank
address. If desired, after the operation completes the flash region,
bank ID, and bank address can be read from the STATADDR register.
All 8 data bytes in the specified flash word, and the corresponding
ECC byte, will be checked by BLANKVERIFY.
- Execute the blank verify
operation by writing 0x1 to the CMDEXEC register.
- Monitor for completion of the
blank verify operation:
- The STATCMD register
can be polled to determine the status of the erase operation. The
CMDINPROGRESS bit will be set by hardware as soon as the command is
initiated. The CMDDONE bit will be set when the operation
terminates. When CMDDONE is set, the CMDPASS bit will be reset or
set at the same time to indicate whether the blank verification
passed or failed.
- The FAILVERIFY bit in
STATCMD will be set if the flash location is not erased.
- After completion of the blank
verify operation, the flash controller will configure several settings:
- All dynamic write
protection registers are set to a protected state ( to protect
against inadvertent programming)
- All data registers
are set to ‘1’s.
- All program byte
enables are cleared to ‘0’s.