User manual

MPLAB
®
REAL ICE
In-Circuit Emulator User’s Guide
DS51616A-page 28 © 2006 Microchip Technology Inc.
5.5 TRACE
This section will discuss the types of available instrumented trace and how to use them.
For information on the trace window, see Section 5.7.10 “Trace Window”.
Capture Trace
I/O Port Trace
Requirements for Trace
Setting Up the Project for Trace
Setting Up Trace in MPLAB IDE
Running Trace
Disabling Trace
5.5.1 Capture Trace
Capture trace can be used with either standard or high-speed communications, with no
additional connections. This two-wire interface uses the instrumented trace macro
format (see Section 5.5.5 “Setting Up Trace in MPLAB IDE).
If capture trace is used, then real-time data capture triggers cannot be used because
of hardware constraints. However, breakpoints are still available. To use data capture
triggers, you must disable capture trace (see Section 5.5.7 “Disabling Trace”).
5.5.2 I/O Port Trace
I/O Port trace can be used with either standard or high-speed communications. Trace
clock and data are provided from a device I/O port through the MPLAB REAL ICE in-cir-
cuit emulator logic probe connector. For hardware connections, see Section 2.5.6 “I/O
Port Trace Connections”.
The port interface uses the instrumented trace macro format (see
Section 5.5.5 “Setting Up Trace in MPLAB IDE”).
5.5.3 Requirements for Trace
The following is required to use trace:
MPLAB IDE v7.43 and above
MPLAB C30 v2.04 and above
5.5.4 Setting Up the Project for Trace
Refer to Chapter 4. “General Setup for a discussion of how to set up MPLAB IDE
and an MPLAB IDE project to use the MPLAB REAL ICE in-circuit emulator.
To enable trace:
•Select Project>Build Options>Project
, Trace tab. Click “Enable Instrumented
Trace” and then select the Transport for trace data, i.e., “Capture Trace” for stan-
dard communication transport or “I/O Port” for I/O port data transport. If using I/O
port transport, select the port you will be using from the pull-down list. Click OK.
Note: Instrumented trace is only available when using C code, not assembly.