Datasheet
Specific Debug Functions: 32-Bit Devices
2013 Microchip Technology Inc. DS52085A-page 73
5. Power the target.
FIGURE 7-3: TRACE CONNECTION WITH DEVICE ON TARGET
7.3.3.3 MPLAB X IDE SETUP
To set up MPLAB X IDE to use trace for the MPLAB REAL ICE in-circuit emulator:
1. Right click on the project name and select “Properties”. In the Project Properties
dialog click on “Real ICE” under “Categories”.
2. Under “Option categories”, select “Clock”. For data capture and trace, the
emulator needs to know the instruction cycle speed.
3. Under “Option categories”, select “Trace and Profiling”.
4. Under “Data Collection Selection”, choose “Instruction Trace/Profiling”.
5. Set up any other trace-related options. (See Section 11.3.1 “Trace and
Profiling”.)
6. 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.
7.3.3.4 VIEWING TRACE DATA
When trace is enabled and code is run, trace data will be collected by the emulator.
Once the device is halted, trace data will be decoded and displayed in the Trace
window (Window>Debugging>Trace
).
7.3.4 Trace Hardware Specifications
Specifications for hardware that supports PIC32 Instruction Trace are listed below.
7.3.4.1 MPLAB REAL ICE TRACE INTERFACE KIT (AC244006)
The MPLAB REAL ICE Trace Interface Kit consists of an adapter board and trace
cable. Kit component dimensions and a pin connection diagram for the adapter board
are shown below.
Note: When using trace, pins TRCLK and TRD3:0 are used. Therefore, you
cannot use the other functions multiplexed on these pins. For
PIC32MX360F512L, multiplexed functions are RG14:12 and RA7:6.
TABLE 7-1: KIT COMPONENT DIMENSIONS IN INCHES
Component Length Width Height
Adapter Board 0.900 0.800 0.6
Cable 12.0 0.5 0.0625
Trace Cable
Trace
Adapter
Communication Cable(s)
ACTIVE
STATUS
RESETFUNCTION
Emulator Pod
5
5
PIC
32