Renesas QB-MINI2 User Manual page 158

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

Advertisement

CHAPTER
(d) Securement of stack area for debugging
This area requires 6 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. That is, 6 extra
bytes are consumed for the stack area used.
Figure 6-15 illustrates the case where the stack area is increased when the internal high-speed RAM starts
from 0xFCF00.
Figure 6-15. Variation of Address of Stack Area for Debugging
<1>
<1>
0xFFEDF
0xFFEDF
6 bytes
6 bytes
0xFCF00
0xFCF00
[How to secure areas]
Set the stack pointer by estimating the stack area consumed by the user program + 6 bytes. Make sure that
the stack pointer does not extend beyond the internal high-speed RAM start address.
Remark
Refer to the self programming manual for how to secure the stack area for self programming.
156
6
HOW TO USE MINICUBE2 WITH 78K0R MICROCONTROLLER
Stack area
Stack area
0xFFEDF
0xFFEDF
Stack area for
Stack area for
debugging
debugging
Available space
Available space
In internal high-
In internal high-
0xFCF00
0xFCF00
speed RAM
speed RAM
User's Manual
U18371EJ5V0UM
<2>
<2>
0xFFEDF
0xFFEDF
6 bytes
6 bytes
0xFCF06
0xFCF06
0xFCF00
0xFCF00
<3>
<3>
6 bytes
6 bytes

Advertisement

Table of Contents
loading

Table of Contents