Security (S12XS9SECV2)
S12XS Family Reference Manual, Rev. 1.13
232
Freescale Semiconductor
7.1.2
Modes of Operation
7.1.3
Securing the Microcontroller
Once the user has programmed the Flash and EEPROM, the chip can be secured by programming the
security bits located in the options/security byte in the Flash memory array. These non-volatile bits will
keep the device secured through reset and power-down.
The options/security byte is located at address 0xFF0F (= global address 0x7F_FF0F) in the Flash memory
array. This byte can be erased and programmed like any other Flash location. Two bits of this byte are used
for security (SEC[1:0]). On devices which have a memory page window, the Flash options/security byte
is also available at address 0xBF0F by selecting page 0x3F with the PPAGE register. The contents of this
byte are copied into the Flash security register (FSEC) during a reset sequence.
The meaning of the bits KEYEN[1:0] is shown in
. Please refer to
the MCU Using the Backdoor Key Access”
for more information.
The meaning of the security bits SEC[1:0] is shown in
. 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
EEPROM Array Access
✔
✔
✔
✔
NVM Commands
✔
1
✔
✔
✔
BDM
✔
✔
—
✔
2
DBG Module Trace
✔
✔
—
—
1
Restricted NVM command set only. Please refer to the NVM wrapper block guides for detailed information.
2
BDM hardware commands restricted to peripheral registers only.
7
6
5
4
3
2
1
0
0xFF0F
KEYEN1
KEYEN0
NV5
NV4
NV3
NV2
SEC1
SEC0
Figure 7-1. Flash Options/Security Byte
Table 7-3. Backdoor Key Access Enable Bits
KEYEN[1:0]
Backdoor Key
Access Enabled
00
0 (disabled)
01
0 (disabled)
10
1 (enabled)
11
0 (disabled)
Table 7-2. Feature Availability in Unsecure and Secure Modes on S12XS
Unsecure Mode
Secure Mode
NS
SS
NX
ES
EX
ST
NS
SS
NX
ES
EX
ST
Summary of Contents for MC9S12XS128
Page 4: ...S12XS Family Reference Manual Rev 1 13 4 Freescale Semiconductor ...
Page 168: ...Interrupt S12XINTV2 S12XS Family Reference Manual Rev 1 13 168 Freescale Semiconductor ...
Page 736: ...Ordering Information S12XS Family Reference Manual Rev 1 13 736 Freescale Semiconductor ...
Page 737: ......