12.3 Attention of the M16C/R8C Debugger
12.3.1 Map of stack area used by the emulator
The M16C/60,M16C/20 series emulators use a stack area of 4 bytes from 0FFFCh to 0FFFFh that is
accessed at power-on reset.
The emulator cannot start up normally unless these 4 bytes of memory can be accessed for read/write.
Therefore, if one of the following two conditions hold true, use the four bytes of 0FFFCh to 0FFFFh in
INTERNAL setting until the emulator finishes setting the interrupt stack pointer (ISP) after a reset.
•
When in systems that go from the single-chip mode to the memory extension or the
microprocessor mode after a reset, you are using the four bytes of 0FFFCh to 0FFFFh in
EXTERNAL setting.
•
When in systems that start up in microprocessor mode after a reset, you are using the four bytes
of 0FFFCh to 0FFFFh in EXTERNAL setting and do not have any external read/writable
memory.
12.3.2 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.5 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.3 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.4 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.
270
Summary of Contents for Emulator Debugger M16C PC4701
Page 13: ...Setup of Debugger 1...
Page 14: ...Blank Page 2...
Page 73: ...Tutorial 59...
Page 74: ...Blank Page 60...
Page 95: ...Reference 81...
Page 96: ...Blank Page 82...
Page 128: ...Example Writing byte length data 32h to even address 400h 114...
Page 130: ...16 bits bus width 116...
Page 132: ...2nd point 118...
Page 133: ...7 Windows Dialogs 16 bits bus width 119...
Page 134: ...Example Writing data 10h 3Fh to even address 400h 120...
Page 138: ...Example Writing byte length data 32h to even address 400h 124...
Page 140: ...16 bits bus width 126...
Page 141: ...7 Windows Dialogs Example Writing word length data 1234h to even address 400h 127...
Page 142: ...Example Writing data 10h 3Fh to even address 400h 128...
Page 146: ...Example Writing byte length data 32h to even address 400h 132...
Page 147: ...7 Windows Dialogs Example Writing data 10h 3Fh to even address 400h 133...
Page 153: ...7 Windows Dialogs 7 7 8 2 Interrupt Termination Set as below 139...
Page 172: ...For condition 7 choose the Mode shown below and set the Start event 158...
Page 294: ...MEMO 280...