CHAPTER 3 HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
User’s Manual U18371EJ1V0UM
34
(b) Securement of area for debug monitor program
The shaded portions in Figure 3-12 are the areas where the debug monitor program is allocated. The monitor
program performs initialization processing for debug communication interface and RUN or break processing
for the CPU. The internal ROM area must be filled with 0xFF. This area must not be rewritten by the user
program.
[How to secure areas]
It is not necessarily required to secure this area if the user program does not use this area.
To avoid problems that may occur during the debugger startup, however, it is recommended to secure this
area in advance, using the compiler.
The following shows examples for securing the area, using the NEC Electronics compiler CA850. Add the
assemble source file and link directive code, as shown below.
• Assemble source (Add the following code as an assemble source file.)
• Link directive (Add the following code to the link directive file.)
The following shows an example when the internal ROM end address is 0x3ffff and internal RAM end
address is 0x3ffefff.
-- Secures 2 KB space for monitor ROM section
.section "MonitorROM",
const
.space 0x800,
0xff
-- Secures interrupt vector for debugging
.section "DBG0"
.space 4,
0xff
-- Secures interrupt vector for serial communication
-- Change the section name according to serial communication mode used
.section "INTCSI00"
.space 4,
0xff
-- Secures 16 byte space for monitor ROM section
.section "MonitorRAM",
bss
.lcomm
monitorramsym, 16, 4
/* defines monitorramsym symbol */
MROMSEG : !LOAD ?R V0x03f800{
MonitorROM
= $PROGBITS
?A MonitorROM;
};
MRAMSEG : !LOAD ?RW V0x03ffeff0{
MonitorRAM
= $NOBITS
?AW MonitorRAM;
};
Содержание MINICUBE2
Страница 2: ...User s Manual U18371EJ1V0UM 2 MEMO ...