摘要 |
PROBLEM TO BE SOLVED: To extend a break function by using an external circuit in a debug device using an on-chip debug function. SOLUTION: Various buses 15 are pulled out of a target board 10 on which a microcomputer 11 incorporating a debug circuit 11b for realizing an on-chip debug function is mounted, and connected to a break board 30. The break board 30 is provided with a break condition storing part 31 and a break signal generating part 32. A break condition is written from a debugger 20 side through the debug circuit 11b, a CPU 11a, and the various buses 15 in a break condition storing part 31. Afterwards, a user program stored in an ROM 12 is executed. A break signal generating part 32 monitors a signal on the various buses 15, and when the signal on the various buses 15 is made coincident to the break condition, the break signal generating part 32 outputs a break generation signal 30a. Then, the execution of a user program is allowed to break (stop) based on the break generation signal 30a. |