CHAPTER 4 HOW TO USE MINICUBE2 WITH 78K0 MICROCONTROLLER
User’s Manual U18371EJ1V0UM
84
The size of this area also varies depending on whether software breaks or pseudo real-time RAM monitor is
used.
Table 4-9. Size of Stack Area for Debugging
Item
Size of Stack Area for Debugging
Standard 7
bytes
When software breaks are used
9 bytes
When pseudo RRM is used
14 bytes
When software breaks and
pseudo RRM are used
16 bytes
[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
- Standard
Within the range 0xFB07 to 0xFEDF
Note
- When software breaks are used (also refer to
(e)
)
Within the range 0xFB09 to 0xFEDF
Note
- When pseudo real-time RAM monitor is used (also refer to
(f)
)
Within the range 0xFB0E to 0xFEDF
Note
- When software breaks and pseudo real-time RAM monitor is used (also refer to
(e)
and
(f)
)
Within the range 0xFB10 to 0xFEDF
Note
Note
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.
(e) Software break area
This area is used for software breaks.
[How to secure areas]
Refer to the following and secure the area.
SSS
CSEG AT
07EH;
″
SSS
″
is an arbitrary symbol name (eight characters or less)
DB
0FFH,
0FFH
(f) Pseudo real-time RAM monitor (RRM) area
When pseudo real-time RAM monitor is used, the area of
″
debug monitor area (refer to (a) ) + 256 bytes
″
and internal extended area from 0xF7F0 to 0xF7FF must be reserved.
[How to secure
″
debug monitor area + 256 bytes
″
]
When using NEC Electronics compiler CC78K0, the area used for pseudo real-time RAM monitoring can be
secured using the linker option (-go). Figure 4-33 shows the Linker Options dialog box of the project manager.
Add 256 bytes to the area specified in (a) (to make the area 512 bytes in total).