English
Language : 

S912XEG128J2MAA Datasheet, PDF (349/1324 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 9 Security (S12XE9SECV2)
Table 9-3. Backdoor Key Access Enable Bits
KEYEN[1:0]
00
01
10
11
Backdoor Key
Access Enabled
0 (disabled)
0 (disabled)
1 (enabled)
0 (disabled)
The meaning of the security bits SEC[1:0] is shown in Table 9-4. For security reasons, the state of device
security is controlled by two bits. To put the device in unsecured mode, these bits must be programmed to
SEC[1:0] = ‘10’. All other combinations put the device in a secured mode. The recommended value to put
the device in secured state is the inverse of the unsecured state, i.e. SEC[1:0] = ‘01’.
Table 9-4. Security Bits
SEC[1:0]
00
01
10
11
Security State
1 (secured)
1 (secured)
0 (unsecured)
1 (secured)
NOTE
Please refer to the Flash block guide for actual security configuration (in
section “Flash Module Security”).
9.1.4 Operation of the Secured Microcontroller
By securing the device, unauthorized access to the EEPROM and Flash memory contents can be prevented.
However, it must be understood that the security of the EEPROM and Flash memory contents also depends
on the design of the application program. For example, if the application has the capability of downloading
code through a serial port and then executing that code (e.g. an application containing bootloader code),
then this capability could potentially be used to read the EEPROM and Flash memory contents even when
the microcontroller is in the secure state. In this example, the security of the application could be enhanced
by requiring a challenge/response authentication before any code can be downloaded.
Secured operation has the following effects on the microcontroller:
9.1.4.1 Normal Single Chip Mode (NS)
• Background debug module (BDM) operation is completely disabled.
• Execution of Flash and EEPROM commands is restricted. Please refer to the NVM block guide for
details.
• Tracing code execution using the DBG module is disabled.
• Debugging XGATE code (breakpoints, single-stepping) is disabled.
MC9S12XE-Family Reference Manual Rev. 1.25
Freescale Semiconductor
349