Renesas QB-MINI2 User Manual page 125

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

Advertisement

CHAPTER
Describe the address to the portion of "0ed0h" in accordance with the flash memory capacity of the
Remark
target device (see the following table).
1 KB
2 KB
4 KB
8 KB
(2) Securement of stack area for debugging
In the internal RAM space of the target device, the shaded portion in Figure 5-16 are the area where the debug
monitor program uses as the stack area (5 bytes). Since this area is allocated immediately before the stack
area that is used by the user program, the address of this area varies depending on the stack increase and
decrease. Therefore, the stack pointer must be set by making allowances for the stack size (5 bytes) used for
debugging.
The following figure illustrates the case where the stack area is increased when the internal high-speed RAM
starts from 0xFE00.
<1>
<1>
0xFEFF
0xFEFF
5 bytes
5 bytes
0xFE00
0xFE00
[How to secure areas]
Refer to the address range shown below and set the stack pointer.
Example When internal high-speed RAM starts from 0xFE00
Within the range 0xFE05 to 0xFEFF
5
HOW TO USE MINICUBE2 WITH 78K0S MICROCONTROLLER
Flash Memory Capacity of
Target Device
0xFEFF
0xFEFF
Stack area
Stack area
Stack area
Stack area
for debugging
for debugging
Available space
Available space
in internal high-
in internal high-
0xFE00
0xFE00
speed RAM
speed RAM
User's Manual
Value Described in
Assembler Source
0x2D0
0x6D0
0xED0
0x1ED0
<2>
<2>
5 bytes
5 bytes
U18371EJ5V0UM
<3>
<3>
0xFEFF
0xFEFF
0xFE05
0xFE05
5 bytes
5 bytes
0xFE00
0xFE00
123

Advertisement

Table of Contents
loading

Table of Contents