User manual
MPLAB
®
REAL ICE
™
In-Circuit Emulator User’s Guide
DS51616B-page iv © 2008 Microchip Technology Inc.
Chapter 4. Tutorial
4.1 Introduction ................................................................................................... 31
4.2 Setting Up The Environment ........................................................................ 31
4.3 Creating the Application Code ...................................................................... 32
4.4 Running the Project Wizard .......................................................................... 35
4.5 Viewing the Project ....................................................................................... 36
4.6 Creating a Hex File ....................................................................................... 37
4.7 Viewing Debug Options ................................................................................ 38
4.8 Setting Up the Demo Board ......................................................................... 40
4.9 Loading Program Code For Debugging ....................................................... 40
4.10 Running Debug Code ................................................................................. 41
4.11 Debugging Code Using Breakpoints .......................................................... 41
4.12 Debugging Code Using A Runtime Watch ................................................. 47
4.13 Debugging Code Using Native Trace ......................................................... 48
4.14 Programming the Application ..................................................................... 51
4.15 Other Trace Methods – SPI or I/O Port Trace ............................................ 52
4.16 Other Trace Methods – PIC32 Instruction Trace ........................................ 57
Part 2 – Features
Chapter 5. General Setup
5.1 Introduction ................................................................................................... 61
5.2 Starting the MPLAB IDE Software ................................................................ 61
5.3 Creating a Project ......................................................................................... 62
5.4 Viewing the Project ....................................................................................... 62
5.5 Building the Project ...................................................................................... 63
5.6 Setting Configuration Bits ............................................................................. 63
5.7 Setting the Emulator as the Debugger or Programmer ................................ 63
5.8 Debugger/Programmer Limitations .............................................................. 64
Chapter 6. Basic Debug Functions
6.1 Introduction ................................................................................................... 65
6.2 Breakpoints and Stopwatch .......................................................................... 65
6.3 External Triggers .......................................................................................... 66
Chapter 7. Debug for 8- and 16-Bit Devices
7.1 Introduction ................................................................................................... 67
7.2 Data Capture and Runtime Watches ............................................................ 67
7.3 Trace ............................................................................................................ 67
Chapter 8. Debug for 32-Bit Devices
8.1 Introduction ................................................................................................... 75
8.2 Data Capture and Runtime Watches ............................................................ 75
8.3 PIC32 Instruction Trace ................................................................................ 75