37-6
MPC860 PowerQUICC UserÕs Manual
MOTOROLA
Part VI. Debug and Test
37.1.5.2 Window Trace
Window trace is useful when a record of the program trace between two events is needed,
in which case, VSYNC state should be entered between these two events. After exiting
VSYNC state, the trace buffer holds trace information for the program executed between
the two events.
37.1.5.2.1 Synchronizing the Trace Window to Internal Core Events
The assertion/ negation of VSYNC is accomplished using the serial interface implemented
in the development port. To synchronize the assertion/negation of VSYNC to an internal
event of the core, it is possible to use the internal breakpoints hardware with the debug
mode. This method is available only when debug mode is enabled. For more information
on debug mode, see Section 37.3, ÒDevelopment System Interface.Ó
The following is a possible set of steps that enable the user to synchronize the trace window
to the internal core events:
1. Enter debug mode, either immediately out of reset or using the debug mode request.
2. Program hardware to break on the event that marks the start of the trace window
using the registers deÞned in Section 37.2, ÒWatchpoints and Breakpoints Support.Ó
3. Enable debug mode entry for the breakpoint programmed in the DER (see
4. Return to the regular code run (refer to Section 37.3.1.7, ÒExiting Debug ModeÓ).
5. The hardware generates a breakpoint when the event in question is detected and the
machine enters debug mode (refer to Section 37.3.1.2, ÒEntering Debug ModeÓ).
6. Program the hardware to break on the event that marks the end of the trace window.
7. Assert VSYNC.
8. Return to the regular code run. The Þrst report on the VF pins is VSYNC (VF =
0b011).
9. The external hardware starts sampling the program trace information after the VF
pins indicate VSYNC.
10. The hardware generates a breakpoint when the event in question is detected and the
machine enters debug mode.
11. Negate VSYNC.
12. Return to the regular code run (issue an rÞ). The Þrst encoding on the VF pins is
VSYNC (VF = 0b011).
13. External hardware stops sampling the program trace information after recognizing
VSYNC on the VF pins.
37.1.5.3 Detecting the Trace Window Start Address
When using back trace, latching of VF, VFLS, and the address of the cycles marked
program trace cycle should all start immediately after the negation of reset. The start
Summary of Contents for MPC860 PowerQUICC
Page 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Page 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Page 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Page 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Page 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Page 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Page 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Page 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Page 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Page 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Page 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Page 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Page 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Page 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Page 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Page 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Page 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Page 1106: ......