
7. Debugging of the watchdog timer
When debugging the user program using the watchdog timer, select the [Debugging of program that uses WDT.]
check box in the [Firmware Location] tab of the [Emulator Setting] dialog box. By selecting this box, the watchdog
timer is refreshed during the operation of the program for the E8 emulator. If a memory is accessed by the memory
reference or modification, the watchdog timer will be refreshed by the program for the E8 emulator. Note that the
operation timing is different from the actual one.
Figure 5.2 [Firmware Location] Tab of the [Emulator Setting] Dialog Box
8. ID code of flash memory
This is the function of the MCUs which prevents the flash memory from reading out by other than the user. The 7
bytes ID code in Table 5.4 written to the flash memory of the MCUs have to match with the ID code displayed in
Figure 5.3 [ID Code verification] dialog box at the debugger startup, otherwise the debugger cannot be started up.
Note that when the ID code is FFh, FFh, FFh, FFh, FFh, FFh, FFh, ID code is considered not set up. In this case, the
ID code is automatically authenticated and [ID Code verification] dialog box is not displayed.
When debugging in [Erase Flash and Connect] mode or [Keep Flash and Connect] mode, the ID code, FFh, FFh,
FFh, FFh, FFh, FFh, FFh is written into the ID code area regardless of the contents of the user program. In
[Program Flash] mode, the value to be written in the ID code area depends on the contents of the user program.
Table 5.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
18
Commentaires sur ces manuels