MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
579
Preliminary—Subject to Change Without Notice
Figure 18-1. ECC Configuration Register (ECR)
18.4.1.2
ECC Status Register (ESR)
The ECC Status Register is an 8-bit control register for signaling which types of properly-enabled ECC
events have been detected. The ESR signals the last, properly-enabled memory event to be detected. An
ECC interrupt request is asserted if any flag bit is asserted and its corresponding enable bit is asserted.
The ECSM allows a maximum of one bit of the ESR to be asserted at any given time. This preserves the
association between the ESR and the corresponding address and attribute registers, which are loaded on
each occurrence of a properly-enabled ECC event. If there is a pending ECC interrupt and another
properly-enabled ECC event occurs, the ECSM hardware automatically handles the ESR reporting,
clearing the previous data and loading the new state and thus guaranteeing that only a single flag is
asserted.
To maintain the coherent software view of the reported event, the following sequence in the ECSM error
interrupt service routine is suggested:
1.
Read the ESR and save it.
2.
Read and save all the address and attribute reporting registers.
3.
Re-read the ESR and verify the current contents matches the original contents. If the two values are
different, go back to step 1 and repeat.
4.
When the values are identical, write a 1 to the asserted ESR flag to negate the interrupt request.
for the ECC Status Register definition.
Register address: ECSM Base + 0x43
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
EPRNCR
EPFNCR
W
RESET:
0
0
0
0
0
0
0
0
= Unimplemented
Table 18-2. ECC Configuration (ECR) Field Definitions
Name
Description
Value
EPRNCR
Enable Platform
RAM Non-Correctable
Reporting
0 = Reporting of non-correctable platform RAM errors is disabled.
1 = Reporting of non-correctable platform RAM errors is enabled.
The occurrence of a non-correctable multi-bit RAM error generates a ECSM
ECC interrupt request as signalled by the assertion of ESR[PRNCE]. The
faulting address, attributes and data are also captured in the PREAR, PRESR,
PREMR, PREAT and PREDR registers.
EPFNCR
Enable Platform
Flash Non-Correctable
Reporting
0 = Reporting of non-correctable platform flash errors is disabled.
1 = Reporting of non-correctable platform flash errors is enabled.
The occurrence of a non-correctable multi-bit flash error generates a ECSM
ECC interrupt request as signalled by the assertion of ESR[PFNCE]. The
faulting address, attributes and data are also captured in the PFEAR, PFEMR,
PFEAT and PFEDR registers.