Control Registers
289
SPNU503C – March 2018
Copyright © 2018, Texas Instruments Incorporated
F021 Flash Module Controller (FMC)
5.7.26 Diagnostic Control Register (FDIAGCTRL)
Set the DIAG_MODE and the DIAG_EN_KEY first before setting up the other registers to block the other
registers from causing a false error. The final write should set the DIAG_TRIG register to activate the test.
Running out of ram will prevent problems with the diagnostic test corrupting the Flash access in some of
the modes.
Figure 5-33. Diagnostic Control Register (FDIAGCTRL) [offset = 6Ch]
31
25
24
23
20
19
16
Reserved
DIAG_TRIG
Reserved
DIAG_EN_KEY
R-0
R/WP-0
R-0
R/WP-Ah
15
14
12
11
10
9
8
7
3
2
0
Rsvd
DIAG_ECC_
SEL
Reserved
DIAG_BUF_
SEL
Reserved
DIAG_MODE
R-0
R/WP-0
R-0
R/WP-0
R-0
R/WP-0
LEGEND: R/W = Read/Write; R = Read only; WP = Write in Privilege mode; -
n
= value after reset
Table 5-38. Diagnostic Control Register (FDIAGCTRL) Field Descriptions
Bit
Field
Value
Description
31-25
Reserved
0
Reserved
24
DIAG_TRIG
Diagnostic Trigger
Diagnostic trigger is the final qualifier for the diagnostic result. After setting all the
other diagnostic register values, the DIAG_TRIG is set to 1. This will activate the
diagnostic logic for one access and then automatically clear the DIAG_TRIG value.
DIAG_EN_KEY and DIAG_MODE must be set at least one cycle before setting
DIAG_TRIG.
This bit always reads as 0.
23-20
Reserved
0
Reserved
19-16
DIAG_EN_KEY
Diagnostic Enable Key
5h
Diagnostic mode is enabled.
All other values
Diagnostic mode is disabled.
15
Reserved
0
Reserved
14-12
DIAG_ECC_SEL
Diagnostic SECDED Select
0
Select SECDED0 for diagnostic testing.
1h
Select SECDED1 for diagnostic testing.
2h
Select SECDED2 for diagnostic testing (256 bit wide words only).
3h
Select SECDED3 for diagnostic testing (256 bit wide words only).
4h
Select BUS2 SECDED for diagnostic testing.
5h
Select FEE SECDED for diagnostic testing (Same ECC logic as BUS2 but sets FEE
registers).
6h-7h
Reserved
11-10
Reserved
0
Reserved