![Qorivva MPC5 Series Manual Download Page 65](http://html1.mh-extra.com/html/qorivva/mpc5-series/mpc5-series_manual_3255432065.webp)
Qorivva MPC5xxx/SPC5xx Debugger and NEXUS Trace
65
©1989-2021 Lauterbach GmbH
Configure the trace of the DMA controller, so that DMA trace starts when the DMA controller writes to
0x1000 and stops when DMA controller wrote 0x1040.
Trace Filtering and Triggering Features Provided by TRACE32
For processors with parallel Nexus trace port, TRACE32 implements the Complex Trigger Unit (CTU). The
CTU is a state machine which uses Nexus trace messages and other signals as input, and can be used to
perform a filtered trace recording, generate output signals or to halt the program execution. It’s main usage
on MPC55XX is to provide break-on-data-value functionality, which is not supported by the e200z6 debug
logic.
“Complex Trigger Unit for Nexus MPC5xxx”
(app_ctu_mpc5xxx.pdf) for features and programming
examples of the CTU.
Troubleshooting Trace
Tracing VLE or Mixed FLE/VLE Applications
On processors with support for both VLE (variable length encoding) and FLE (std PowerPC instruction
encoding), the debug symbols must provide information about which address ranges are compiled for which
encoding. The debugger will show wrong information in the
window, and there will be flow errors in the
analysis, if one of below situations occur:
•
If debug symbols have not been loaded, the disassembler is probably not configured to display
the currently used instruction set. Use
SYStem.Option DisMode <VLE | FLE>
to configure
manually, or use
(default) to display the instruction set
according to the current state of the CPU. If is always possible to use
SYStem.Option DisMode <VLE | FLE> to manually force a specific decoding.
•
If debug symbols have been loaded, the debugger will use the information from the debug
symbols if
is selected.
•
If the debug symbols are loaded, but the disassembly is still wrong, the information about the
used instruction set may be wrong. The command
opens a window that
displays all address ranges of the debug symbols and if the instructions are FLE or VLE. The
;select DMA trace client
NEXUS.CLIENT1.SELECT DMA_0
; define events for DMA data trace on/off
Break.Set D:0x40001000 /Write /Onchip /Alpha
Break.Set D:0x40001040 /Write /Onchip /Beta
; assign events to data trace on/off for client 1
TrOnchip.Alpha TraceONClient1
TrOnchip.Beta TraceOFFClient1