CHAPTER 6 HOW TO USE MINICUBE2 WITH 78K0R MICROCONTROLLER
User’s Manual U18371EJ1V0UM
148
(b) On-chip debug option byte area
This is the area for the security setting to prevent the flash memory from being read by an unauthorized
person. The debugger manipulates the target device in accordance with the set value, as shown
below.
Table 6-6. On-Chip Debug Option Byte Setting and Operation
Set Value
Description
Remark
0x04
Debugging is disabled even if an on-chip debug
emulator (such as MINICUBE2) is connected.
This setting is available only
for flash programming and self
programming.
0x85
The on-chip flash memory is not erased no matter
how many times the security ID code authentication
fails.
-
0x84
All on-chip flash memory areas are erased if the
security ID code authentication fails.
-
Other than above
Setting prohibited
-
Caution Values can be set only to bits 7 and 0 (OCDENSET and OCDERSD). Be sure to write
000010B to bits 6 to 1.
Remark
Values set to bits 3 to 1 are changed during on-chip debugging, so values of these bits are
undefined after setting. However, be sure to set these bits to initial values (0, 1, 0).
[How to set]
The following shows a setting example when using NEC Electronics assembler RA78K0R or compiler
CC78K0R. Set a value for the Control Value text box under the
″
On-Chip Debug Option Bytes [-go]
″
check box as shown in the figure below.
Example
Setting 0x85 for control value