Program Check Command - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

Functional Description
Table 32-47. Read 1s Section Command Error Handling
Error condition
Command not available in current mode/security
An invalid margin code is supplied.
An invalid flash address is supplied.
Flash address is not double-phrase aligned.
The requested section crosses a Flash block boundary.
The requested number of double-phrases is 0.
Read-1s fails.

32.4.10.2 Program Check Command

The Program Check command tests a previously programmed program flash longword to
see if it reads correctly at the specified margin level.
Table 32-48. Program Check Command FCCOB Requirements
FCCOB Number
0
1
2
3
4
8
9
A
B
1. Must be longword aligned (Flash address [1:0] = 00).
Upon clearing CCIF to launch the Program Check command, the flash memory module
sets the read margin for 1s according to
compares the actual read data to the expected data provided by the FCCOB. If the
comparison at margin-1 fails, FSTAT[MGSTAT0] is set.
The flash memory module then sets the read margin for 0s, re-reads, and compares again.
If the comparison at margin-0 fails, FSTAT[MGSTAT0] is set. FSTAT[CCIF] is set after
the Program Check operation completes.
The supplied address must be longword aligned (the lowest two bits of the byte address
must be 00):
• Byte 3 data is written to the supplied byte address ('start'),
636
FCCOB Contents [7:0]
0x02 (PGMCHK)
Flash address [23:16]
Flash address [15:8]
Flash address [7:0]
Byte 0 expected data
Byte 1 expected data
Byte 2 expected data
Byte 3 expected data
Table
32-49, reads the specified longword, and
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
1
Margin Choice
Freescale Semiconductor, Inc.
Error bit
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[ACCERR]
FSTAT[MGSTAT0]

Advertisement

Table of Contents
loading

Table of Contents