CHAPTER 6 HOW TO USE MINICUBE2 WITH 78K0R MICROCONTROLLER
User’s Manual U18371EJ1V0UM
151
(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
6 bytes
Stack area
Stack area for
debugging
Available space
In internal high-
speed RAM
0xFCF00
0xFFEDF
6 bytes
0xFCF00
0xFFEDF
6 bytes
0xFCF00
0xFFEDF
0xFCF06
<1>
<2>
<3>
6 bytes
Stack area
Stack area for
debugging
Available space
In internal high-
speed RAM
0xFCF00
0xFFEDF
6 bytes
0xFCF00
0xFFEDF
6 bytes
0xFCF00
0xFFEDF
0xFCF06
<1>
<2>
<3>
[How to secure areas]
Set the stack pointer by estimating the stack area consumed by the user p 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.