User guide
84 DC 900-1338I
Protocol Software Toolkit Programmer Guide
5.2 PTBUG Debugging Tool
The PTBUG debugging tool is available on the ICP6000. The PTBUG Debug and Utility
Program Reference Manual (PTI) (for the ICP6000) describes how to use the PTBUG
debugging tool included in PROM on every ICP.
To use PTBUG, attach a 9600b/s terminal directly to the ICP’s console port with the
console cable provided. After the ICP has completed its power-on/reset diagnostics or
after the protocol application has been loaded, type Control-C to enter PTBUG. To
generate a breakpoint or “panic” trap from user applications, execute the 68020 assem-
bly language instruction
ILLEGAL to generate an illegal instruction trap or execute a
TRAP #15. The TRAP #15 can be continued by entering “go”.
For the ICP6000, an alternative is to connect the console via the programmer’s module
assembly (Protogate part number 10-000-0105). This device includes a circuit board
that supports reset and abort (NMI) signals. If your ICP software enters an endless loop,
the abort button can be used to force control to the PTBUG program. This allows you
to determine the location of the loop as well as the register contents, the memory con-
tents, and so on.
Note
If the vector table entry for Autovector 7 or the vector base register
has been corrupted, the result of pushing the NMI button is inde-
terminate.
5.3 SingleStep Debugging Tool
The SingleStep Debugger for the 68000 Microprocessor Family manual describes how to
use the SingleStep debugging tool provided by Software Development Systems (SDS).
SingleStep is a symbolic debugger that allows developers to debug optimized C code for
68000-based target systems. VMS users must have a PC running DOS and a utility to
transport files from the PC to the VMS system.