TS-5500 User’s Manual
Technologic Systems
10/31/03
23
18 Debugging
There are two main methods for debugging on the TS-5500: using the integrated BIOS debugger (INT3)
and/or using your development tool's debugger (this usually requires the TS-9500 video and keyboard).
18.1 Integrated BIOS Debugger
To provide simple, direct access to the TS-5500 hardware, the system BIOS has an integrated
debugger that can perform standard low-level debugger functions. The debugger allows you to perform
operations such as disassemble code, display and alter the contents of memory, write to and read from
I/O ports, and single-step through or breakpoint code. The debugger is not intended for use as the only
debugging tool for applications, but it can be a real lifesaver when you need interactive, direct access to
hardware.
The BIOS debugger can be entered by any of several methods:
•
The debugger hooks the CPU exception vectors in case a divide by zero occurs, an invalid opcode
is executed, or an INT 3 instruction is executed, for example. By placing an INT 3 instruction in your
application code the debugger will automatically be invoked. To resume, type the 'G' command to
"GO", or continue on with the rest of initialization.
•
From DOS-ROM by typing ‘INT3’ at the command prompt. If the full command.com interpreter is
running, this is an internal command. If only mini-command.com is running, this will execute a small
utility that simply contains an ‘INT 3’ instruction.
•
From the BIOS Setup main menu (started by typing ‘ctrl-C’ during the BIOS POST), the
ENTER
SYSTEM BIOS DEBUGGER
selection will enter the debugger. After use, typing the ‘G’ (go)
command will return to the SETUP screens.
•
As a boot action, as a last-ditch effort if the operating system cannot be booted from the appropriate
drives or out of ROM.
A complete discussion of debugger commands is available in the
Integrated BIOS Debugger Reference
Manual
, included on the TS-5500 Utility Disk and also available from the Technologic Systems web site.
Entering ‘
?
’ will list all available commands, and a ‘
g
’ (go) will return execution to the point where the
debugger was called.
18.2 Using other debuggers
For example, the Turbo C debugger can be used on the target board using the TS-9500 video and
keyboard interfaces. Any other standard PC software debugger of your choice should work just as well.
Содержание TS-5500
Страница 1: ...TS 5500 User s Manual...