9-10
Debugger
9.2.4.1 Hardware-Assisted Debugging
The JTAG target environment supports hardware-assisted debugging.
The format for a hardware-assisted debugging command is:
(sdbug)
hw
hardware_assisted_debugging_command
Important:
All breakpoints must be disabled before using hard-
ware-assisted debugging
. Only one breakpoint may be
set, and when it is set, any previously-set breakpoint is
deactivated. You cannot perform I/O during hardware-
assisted debugging.
Important:
Hardware-assisted debugging will function correctly
only with the correct map file for the specific part being
debugged.
The SDK comes with the map file for LSI402ZX
rev. 1 (mapfile), LSI402ZX rev. 2 (mapfile_rev2), and
LSI403LP (mapfile_403lp); if your application uses a differ-
ent processor, please contact the vendor for the correct
map file. The default map file loaded is mapfile. To change
the map file used, either copy the new map file to the direc-
tory the debugger is inovked in as “mapfile,” or copy to the
current directory or $SDSP_HOME/sdspI/misc and use the
--jtag_mapfile command line option to specify the map file
to use.
The commands available for hardware-assisted debugging are shown in
Table 9.7
.
Table 9.7
Hardware-Assisted Debugging Commands
Command
Description
enable_ice
Enable hardware-assisted debugging.
resume
Resume execution
.
step
n
Step
n
cycles.
insn_addr_brk
addr
Set a breakpoint when executing an instruction at
addr
.
st_addr_brk
addr
Set a breakpoint when storing to
addr
.
st_data_brk
data
Set a breakpoint when storing the value
data
.