User manual

Emulation Header Features
2014 Microchip Technology Inc. DS50002243A-page 15
2.3.2 Setting Up and Using Trace
Trace requires hardware and software setup:
2.3.2.1 HARDWARE SETUP
To use trace, you will need the ribbon cable and emulator interface board that comes
with the emulation header. Connect one end to the emulation header (Figure 2-1). Con-
nect the other end to the emulator. For more information on complete hardware setup
and connections, refer to Section 1.4 “General Emulation Header Setup.
FIGURE 2-1: EMULATION TRACE CABLE CONNECTED TO HEADER
2.3.2.2 MPLAB X IDE SETUP
To set up MPLAB X IDE to use trace for the MPLAB REAL ICE in-circuit emulator,
perform the following steps:
1. Right click on the project name and select “Properties” to open the Project
Properties window.
2. Click on “Real ICE” under “Categories”.
3. Under “Option categories”, select “Clock”.
For data capture and trace, the emulator needs to know the instruction cycle
speed.
4. Under “Option categories”, select “Trace and Profiling”.
5. Under “Data Collection Selection”, choose “Instruction Trace/Profiling”.
6. Set up any other trace-related options.
7. Click OK.
On a debug run, trace will continue to fill the trace buffer with data, rolling over when
the buffer is full, until a program Halt.
1
2
13753
14864
02-10038
J1
C
15 179111
181610 122
Assembly No.:
19
20
Header
Emulation
J2
2013
Trace Adapter
Emulation Header
To t h e
Emulator
Trace
Connector
Interface
Board
To t h e
Emulator
Modular
Connector
Logic Probe
Connector
Modular
Connector