Writing Debug Procedures For Multiple Probe Systems - Intel l2ICE User Manual

Integrated instrumentation and in-circuit emulation system
Table of Contents

Advertisement

The following example illustrates inter-probe communication. Assume that unit 0 and unit 1
are emulating a program (progO for unit 0 and progl for unit 1) and that you want unit 0 to
break when unit 1 writes a variable called pvarl. You do not want unit 1 to break.
^SYSTEM ARM
*\GENABLE SYSBREAKIN
* V1 DISABLE SYSBREAKIN
* \ 0 GO FOREVER
* \1 GO TIL SYSTRIG WRITE AT .pvart

Writing Debug Procedures for Multiple Probe Systems

Debug procedures that handle multiple probe systems must know which probes are emulating.
The WAIT function returns the unit number of the probe breaking emulation. Once the break
has occurred and if no probe is emulating, the WAIT function returns the value 255T.
The following example assumes that probe 0 and probe 1 are both emulating. Probe 0 breaks.
WAIT then returns the value 0. WAIT continues to return 0 until probe 1 breaks. WAIT returns
the value 1 when probe 1 breaks; once the break has occurred, WAIT returns the value 255T
because no probe is emulating.
*UNIT»0
*\1 <80 USING $y$f
*60 USING sys1
fWAIT
Note that the prompt is determined by the current unit. The prompt is ? when the current unit is
emulating. When unit 0 breaks, the PICE system returns its unit number.
0
When the probe (unit 1) breaks, the PICE system returns its unit number. Entering WAIT
returns the value 255, indicating that emulation is not occurring.
1
ESS
The following debug procedure sets the current unit to 0, then sends unit 0 into emulation. Unit
0 will emulate until the user program writes location 0031:001OH. The procedure then sets the
current unit to 1 and waits until unit 0 breaks before sending unit 1 into emulation.
* DEFINE PROC bothrun » DO
. *UNIT
. *G 0 T it WRITE AT 0O3tH:OO1OH
. *UNIT «1
. * REPEAT
Multiple-Probe Systems
6-5

Advertisement

Table of Contents
loading

Table of Contents