User guide

5: Debugging
DC 900-1338I 85
Modules built with SDS development tools can be downloaded to the ICP along with
the SDS RAM-based debug monitor. This monitor runs on the ICP and communicates
with SingleStep through the 68901 MFPs USART for the ICP6000 or the 6834x serial
port A for the ICP2424 and ICP2432. You must connect the USART by a cable from the
ICPs console port to a serial port on the SingleStep client machine. SingleStep instructs
the monitor to set breakpoints, dump memory, view registers, and so on.
You must perform the following basic operations to use SingleStep:
1. In the
spsload file, uncomment (remove the pound sign) the LOAD command for
the debug monitor, uncomment the
INIT ...12000 command, and comment out
the
INIT ...18000 command.
2. Install cables that connect the serial port on the SingleStep client machine with
the console port on the ICP.
3. Reboot the Freeway server or rerun
icpload on the embedded product to down-
load the SPS software and debug monitor to the ICP.
After the cables have been properly installed, you can test the configuration from
SingleStep. If the software was successfully downloaded, you can invoke SingleStep by
typing
fm68k at the client machines prompt.
From the SingleStep prompt you can enter a transparent mode that echoes what the
monitor is transmitting. At the SingleStep prompt on a UNIX system, type the follow-
ing command. (This option is not available in the DOS or Windows NT environment.)
SingleStep> debug -p /dev/ttya=9600 -T -
This tells SingleStep to use port /dev/ttya and to set the baud rate to 9600. The -T
parameter puts SingleStep into debug mode. At this point, the pattern {#@<cr><lf>
should appear. If this pattern does not appear, make sure the cables are connected cor-
rectly, then type the command again. To verify the data path to the ICP, enter {#}. The
ICP should then respond with {#+.