CHAPTER 6 HOW TO USE MINICUBE2 WITH 78K0R MICROCONTROLLER
User’s Manual U18371EJ1V0UM
147
(a) Securement of debug monitor area
This is the area to which the debug monitor program is to be allocated. The monitor program performs
initialization processing for debug communication interface and RUN or break processing for the CPU.
This user programs or data must not be placed in an area of 22 bytes near the on-chip debug option
byte, and an area of 1,024 bytes before the internal ROM end address. In addition, reset vector is
rewritten to address allocated to a monitor program.
[How to secure areas]
The following shows an example for securing the area when using NEC Electronics assembler
RA78K0R or compiler CC78K0R. Select the
″
On-Chip Debug Option Bytes [-go]
″
check box as shown
in the figure below. An area of 22 bytes is thus secured near the on-chip debug option byte. An area
of 1,024 bytes before the internal ROM end address is also secured by setting the start address and
size.
Example
Internal ROM end address is 0x3FFFF
Figure 6-12. Securement of Debug Monitor Area