Download Debugger User`s Manual

Transcript
Freescale Semiconductor, Inc.
CTRACE - Trace Through OnCE Sequence
Example 13-8. CSTEP Command
cstep
Executes one OnCE serial command of the default Command Converter’s Y
memory pointed at by its YPTR. The OnCE registers will be displayed after
the command is executed.
cstep $10
Freescale Semiconductor, Inc...
Executes 10 (hex) OnCE serial commands of the default Command
Converter’s Y memory pointed at by its YPTR. The OnCE registers will be
displayed after the 10 (hex) commands have all been executed.
A macro command file can help in single stepping through user defined OnCE sequences
and displaying results. The display of registers after a CSTEP or CTRACE were not
implemented because of the nature of having to access the OPDBR register to retrieve the
register values. An example of a macro file would be the following:
Example 13-9. CSTEP Command in a Macro
cstep 2
;execute 2 OnCE commands then show XPTR and YPTR
cdisplay x:80..90 y:80..9f
;display the Command Converter x and y memory
display
;display the target registers
13.13 CTRACE - Trace Through OnCE Sequence
CTRACE [dev_list] [count]
The CTRACE command allows the user to single step through a OnCE command
sequence in the Command Converter Y memory pointed at by the Command Converter
YPTR. This enables the user to write and debug OnCE command sequences using the
Command Converter monitor program sequence format.
Note that the OPDBR and OPILR registers always display the last values stored after
executing a GO, STEP or TRACE command or after servicing a breakpoint. The values of
these registers will not reflect the changes made to them when executing the CGO,
CSTEP, or CTRACE when doing a display of the OnCE registers.
Also, it is important to remember that writing to the OPDBR register is in effect
manipulating the DSP program controller. Whenever 2-word opcodes are being written to
the OPDBR, it is best to CTRACE or CSTEP 2 before displaying registers.
Motorola
Debugger Command Reference
For More Information On This Product,
Go to: www.freescale.com
13-19