Renesas QB-MINI2 User Manual page 91

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

Advertisement

(d) Stack area for debugging (this area must be secured)
This area requires 7 to 9 bytes as the stack area for debugging. Since this area is allocated immediately
before the stack area, the address of this area varies depending on the stack increase and decrease.
Figure 4-35 illustrates the case where the stack area is increased when the internal high-speed RAM starts
from 0xFB00.
0xFEDF
0xFEDF
0xFB00
0xFB00
The size of this area also varies depending on whether software breaks or pseudo real-time RAM monitor is
used.
<R>
[How to secure areas]
Refer to the address range shown below and set the stack pointer.
Example When internal high-speed RAM starts from 0xFB00
- When hardware breaks are used
Within the range 0xFB07 to 0xFEDF
- When software breaks are used (also refer to (e))
Within the range 0xFB09 to 0xFEDF
Note
CHAPTER
4
HOW TO USE MINICUBE2 WITH 78K0 MICROCONTROLLER
Figure 4-35.
Variation of Address of Stack Area for Debugging
<1>
<1>
Stack area
Stack area
Stack area for
Stack area for
7 bytes
7 bytes
debugging
debugging
Available space
Available space
in internal high-
in internal high-
speed RAM
speed RAM
Table 4-10. Size of Stack Area for Debugging
Item
When hardware breaks are used
When software breaks are used
Because the area 0xFEDF is used by MINICUBE2 during a break, set the initial value of the stack
pointer to 0xFEDF, not 0xFEE0 (when the initial value is set to 0xFEDF, the actual value used for the
stack is 0xFEDE, so there will be no problems).
Furthermore, 0xFEDF is prohibited for use as stack area, but it can be used as variable area.
<2>
<2>
0xFEDF
0xFEDF
7 bytes
7 bytes
0xFB00
0xFB00
Size of Stack Area for Debugging
7 bytes
9 bytes
Note
Note
User's Manual
U18371EJ5V0UM
<3>
<3>
0xFEDF
0xFEDF
0xFB07
0xFB07
7 bytes
7 bytes
0xFB00
0xFB00
89

Advertisement

Table of Contents
loading

Table of Contents