879
On-Chip Debug Unit
Chapter 28
Preliminary User’s Manual U17566EE1V2UM00
28.1.2
Security function
This microcontroller has a N-Wire security function, that demands the user to
input an ID code upon start of the debugger. The ID code is compared to a
predefined ID code, written in advance to the internal flash memory by an
external flash programmer. This function prevents unauthorized persons to
operate the microcontroller in N-Wire debug mode and to read the internal
flash memory area.
The ID code in the internal flash memory can only be written by an external
flash programmer. It can’t be changed in self-programming mode and therefore
also not in N-Wire debugging mode.
ID code
Be sure to write an ID code when writing a program to the internal flash
memory.
The area of the ID code is 10 bytes wide and in the range of addresses
0000 0070
H
to 0000 0079
H
.
The ID code when the memory is erased is shown below.
Security bit
Bit 7 of address 0000 0079
H
enables or disables use of the N-Wire emulator.
• Bit 7 of address 0000 0079
H
0: disabled N-Wire emulator cannot connect to the on-chip debug unit.
1: enabled
N-Wire emulator can connect to the on-chip debug unit if the
10-byte ID code input matches the ID code stored in the flash
memory
This security bit can only be modified by programming the flash memory via an
external flash programmer. It is not possible to modify the security bit in self-
programming mode, and therefore also not in N-Wire debugging mode.
After reset the entire ID code area is set to FF
H
. This means that
• N-Wire debugging is generally enabled
• the ID code is FF
H
for all ID code bytes
Consequently controller access is possible without any restriction.
Caution
If access via the N-Wire interface should be disabled "block erase disabled"
should be configured as well. Otherwise the flash memory blocks containing
the ID code could be erased and N-Wire access could be enabled.
Address
ID code
0000 0079
H
FF
H
0000 0078
H
FF
H
0000 0077
H
FF
H
0000 0076
H
FF
H
0000 0075
H
FF
H
0000 0074
H
FF
H
0000 0073
H
FF
H
0000 0072
H
FF
H
0000 0071
H
FF
H
0000 0070
H
FF
H
electronic components distributor