3 TARGET PROGRAM AND DEBUGGING
3 Target Program and Debugging
This chapter describes precautions for debugging using the debug monitor.
3.1 Notes for Creating Target Programs
Follow the instructions below when creating the target program to be debugged:
•Since the debug monitor uses the debugging exception of the CPU, addresses 0x0 to 0xF of the
•When debugging the target program by writing in the RAM or Flash memory on the target board, map the program to that address.
•The debug monitor does not allow forced break functions such as key breaks. Forced break functions should be made in the target program using a key input interrupt or an NMI input. Setting a hardware PC break in the interrupt processing routine makes it possible to execute a forced break.
3.2 Parameter File for Debugging
A
When using a Flash memory, specify it as a RAM.
Example: "dmt33004\sample\33104_m.par"
CHIP | 33104 | ; chip name (33XXX) |
IROM | 1000 | ; internal ROM is 80000 to 80FFF |
FOPT | 0000 | ; f option size |
PRC VER | 00 ff | ; allow any PRC board |
PRC STATUS | **************** | ; allow any PRC board status |
MPU |
| ; 0xC00000 external boot address |
VER | 1 | ; this file version |
; Emulation memory allocation (max 8 areas, 1MB/area, 1MB boundary)
EMROM | c00000 cfffff | ; external ROM 1MB |
; Map allocation (max 31 areas, 256bytes boundary)
RAM | 0 | 7FF | ; internal RAM area 2KB | |
IO | 40000 | 4ffff | ; internal IO area 64KB | |
RAM | 200000 | 2fffff | ; external FLASH 1MB | |
RAM | 600000 | 6fffff | ; | external SRAM 1MB |
EROM | c00000 | cfffff | ; | external ROM 1MB |
; Stack area except internal RAM area (max 8 areas, 256bytes boundary)
STACK | 600000 6fffff | ; external stack area 1MB |
END |
|
|
10 | EPSON | S1C33 FAMILY DEBUG MONITOR |
|
| OPERATION MANUAL |