Renesas QB-MINI2 User Manual page 36

On-chip debug emulator with programming function
Hide thumbs Also See for QB-MINI2:
Table of Contents

Advertisement

CHAPTER
(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.
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.
assemble source file and link directive code, as shown below.
• Assemble source (Add the following code as an assemble source file.)
-- 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 for receive
-- Secures vector for receive error interrupt and receive status interrupt, if any
-- 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
Note The downloading speed can be increased by replacing this line with the statement "monitorromsym:" to
perform a symbol definition only.
without a code).
• 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.
MROMSEG : !LOAD ?R V0x03f800{
MonitorROM
};
MRAMSEG : !LOAD ?RW V0x03ffeff0{
MonitorRAM
};
34
3
HOW TO USE MINICUBE2 WITH V850 MICROCONTROLLER
Note
/* defines monitorramsym symbol */
This effect is not applicable if values are filled into a hole (area
When performing filling, the filling value must be 0xFF for securing the area.
= $PROGBITS
= $NOBITS
User's Manual
This area must not be rewritten by the user
?A MonitorROM;
?AW MonitorRAM;
U18371EJ5V0UM
Add the

Advertisement

Table of Contents
loading

Table of Contents