
E8a Emulator Section 6 Notes on Using the E8a Emulator
8. Flash memory ID code
This MCU function prevents the Flash memory from being read out by anyone other than the user. The ID code in
Table 6.4 written to the flash memory of the MCU must match the ID code displayed in the Figure 6.3 [ID Code
verification] dialog box at debugger startup, otherwise the debugger cannot be launched. Note that when the ID
code is FFh, FFh, FFh, FFh, FFh, FFh, FFh, the ID code is regarded as undefined. In this case, the ID code is
automatically authenticated and the [ID Code verification] dialog box is not displayed.
In ‘Program Flash’ mode, the contents of the user program are input into the ID code area. When debugging in
other modes, FFh, FFh, FFh, FFh, FFh, FFh, FFh is written into the ID code area regardless of the contents of the
downloaded user program.
Table 6.4 ID Code Storage Area of M16C/62P and M16C/6N
Address Description
FFFDFh First byte of ID code
FFFE3h Second byte of ID code
FFFEBh Third byte of ID code
FFFEFh Fourth byte of ID code
FFFF3h Fifth byte of ID code
FFFF7h Sixth byte of ID code
FFFFBh Seventh byte of ID code
Figure 6.3 [ID Code verification] Dialog Box
Note on ‘Program Flash’ mode:
When the ID code is specified by the -ID option of the lmc30, download the MOT file or HEX file. When the X30
file is downloaded, the ID code is not valid. When downloading the X30 file, specify the ID code using an
assembler directive command such as “.BYTE”. The file to which the ID code specified by the assembler directive
command “.ID” is output varies depending on the version of the assembler. For details, refer to the Assembler
User’s Manual.
9. Reset
The reset vector is used by the E8a emulator program. If the MCU is reset while executing the user program,
control is transferred to the E8a emulator program and the user program is forced to stop. Do not use the hardware
reset 2, software reset, watchdog timer reset and oscillation stop detection reset, otherwise the E8a emulator will
not operate normally.
REJ10J1640-0400
Rev.4.00 Page 17 of 31
Apr 30, 2010
Comentarios a estos manuales