User`s manual
12.3 Attention of the M16C/R8C Debugger
12.3.1 Connection to the emulator
After setting of MCU by MCU Setting dialog, it takes 10-30 seconds to start up debugger. After
setting of MCU, please wait for the moment.
12.3.2 Map of stack area used by the emulator
The emulator uses the interrupt stack area as its work area (20 bytes).
When debugging, allocate a sufficient interrupt stack area consisting of the regularly used size plus
20 bytes.
12.3.3 Interrupt stack pointer when resetting the target program
The emulator sets the interrupt stack pointer (ISP) to 0500h when resetting the target program.
Remember that the interrupt stack pointer (ISP) is set to 0000h on a unit at the production stage.
12.3.4 Options for compiler, assembler, and linker
The information may not be downloaded/debugged normally depending on the option designation of
the compiler, assembler, and linker.
Please refer to the following for the option specification.
Refer to "
12.4 Option of C Compiler/Assembler/Linker"
The compiler that can be used by M16C/R8C debugger:
• NCxx
• the IAR EC++ Compiler
• the IAR C Compiler
• the TASKING C Compiler
12.3.5 TASKING C Compiler
When you debug programs compiled by the TASKING C Compiler "CCM16", the type of bit field is
fixed on "unsigned short int". Because CCM16 outputs the debug information for the type of bit field
as "unsigned short int."
12.3.6 Target MCU HOLD terminal
When the target MCU HOLD terminal is set to LOW, you cannot stop execution of the target program.
Set the HOLD terminal to High and try to stop the target program again. Even if the HOLD terminal
is set to LOW for a short period of time, you may stop the target program with the HOLD terminal set
to LOW. If this happens, try to stop the target program again.
266