User manual

MPLAB
®
REAL ICE
IN-CIRCUIT
EMULATOR USERS GUIDE
© 2008 Microchip Technology Inc. DS51616B-page 75
Chapter 8. Debug for 32-Bit Devices
8.1 INTRODUCTION
The following debug functions are specific to 32-bit devices:
Data Capture and Runtime Watches
PIC32 Instruction Trace
8.2 DATA CAPTURE AND RUNTIME WATCHES
At this time, MPLAB REAL ICE in-circuit emulator does not support data capture for
32-bit devices. Runtime watches, however, are supported.
A runtime watch provides updating of a variable in the following windows during
program execution instead of on halt:
Watch – View menu
File Register – View menu
Special Function Register (SFR) – View menu
To set up runtime watches:
1. Select View>Watch
to open the Watch window to set up runtime watches for
specific data addresses. See Section 11.3.9 “Watch Window - Data Cap-
ture/Runtime Watch” for more information.
2. Select Debugger>Settings
and click the Clock tab. The emulator needs to know
the instruction cycle speed. (See Section 11.5.6 “Settings Dialog, Clock Tab”
for more information.) Enter your information here.
3. Rebuild the project (Project>Build All
) and reprogram the target device
(Debugger>Program
).
4. Run the program. Watch variable values change in an MPLAB IDE window.
8.3 PIC32 INSTRUCTION TRACE
This section will discuss trace for 32-bit devices and how to use it.
Requirements for Trace
Setting Up and Using Trace
Trace Hardware Specifications
8.3.1 Requirements for Trace
The following is required to use trace for 32-bit (PIC32MX) devices:
MPLAB IDE v8.00 and above
MPLAB ASM32/LINK32/C32 v1.00 and above
PIC32MX Plug-In Module (PIM) containing a device that supports trace and a
trace port
PIC32MX Trace Interface Kit (AC244006) containing a 12-inch trace cable and a
trace adapter board