Freescale Semiconductor MC9S12G128 Evaluation Board TWR-S12G128-KIT TWR-S12G128-KIT Data Sheet

Product codes
TWR-S12G128-KIT
Page of 1292
240 KByte Flash Module (S12FTMRG240K2V1)
MC9S12G Family Reference Manual, Rev.1.23
Freescale Semiconductor
1151
indicated by reset condition F in
. If a double bit fault is detected while reading the P-Flash
phrase containing the Flash security byte during the reset sequence, all bits in the FSEC register will be set
to leave the Flash module in a secured state with backdoor key access disabled.
The security function in the Flash module is described in
31.3.2.3
Flash CCOB Index Register (FCCOBIX)
The FCCOBIX register is used to index the FCCOB register for Flash memory operations.
Table 31-9. FSEC Field Descriptions
Field
Description
7–6
KEYEN[1:0]
Backdoor Key Security Enable Bits — The KEYEN[1:0] bits define the enabling of backdoor key access to the
Flash module as shown in
5–2
RNV[5:2]
Reserved Nonvolatile Bits — The RNV bits should remain in the erased state for future enhancements.
1–0
SEC[1:0]
Flash Security Bits — The SEC[1:0] bits define the security state of the MCU as shown in
. If the
Flash module is unsecured using backdoor key access, the SEC bits are forced to 10.
Table 31-10. Flash KEYEN States
KEYEN[1:0]
Status of Backdoor Key Access
00
DISABLED
01
DISABLED
1
1
Preferred KEYEN state to disable backdoor key access.
10
ENABLED
11
DISABLED
Table 31-11. Flash Security States
SEC[1:0]
Status of Security
00
SECURED
01
SECURED
1
1
Preferred SEC state to set MCU to secured state.
10
UNSECURED
11
SECURED
Offset Module Base + 0x0002
7
6
5
4
3
2
1
0
R
0
0
0
0
0
CCOBIX[2:0]
W
Reset
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 31-7. FCCOB Index Register (FCCOBIX)