User manual

Step-by-Step Procedures to Setup, Build, and Run a Demo Project
© 2008 Microchip Technology Inc. DS61146B-page 31
5.10 ATTACHING THE DEBUGGER
In order to test the code using the PIC32 Starter Kit, please refer to the PIC32MX
Starter Kit User’s Guide (DS61144 ) for a sample project and a step-by-step getting
started info.
For the purpose of testing our code in this document we will use an Explorer 16
Development board (DM240001), a MPLAB REAL ICE In-Circuit Debugger
(DV244005) and a PIC32MX360F512L PIM (MA320001) together with a 9V universal
power supply, a serial cable and a USB cable for connecting the REAL ICE to the
development board.
FIGURE 5-11: EXPLORER 16, MPLAB
®
REAL ICE™ AND
PIC32MX360F512L PIM
Take the following steps to ensure proper connection of the REAL ICE to the Explorer
16 development board:
1. Connect the MPLAB REAL ICE module to the PC with the USB cable.
2. Connect the MPLAB REAL ICE to the Explorer 16 Development Board with the
short RJ-11 cable.
3. Apply power to the Explorer 16 board.
4. From the Debugger menu, click Select Tool > MPLAB REAL ICE
to set the
MPLAB REAL ICE as the debug tool in MPLAB IDE.
5. From the Debugger menu, select Connect to connect the debugger to the device.
MPLAB IDE should report in the Output window that it found the
PIC32MX360F512L device.
Once you have performed these steps, go to the MPLAB IDE window and from the
Debugger->Select Tool
menu select the debugging tool you’re using to connect to the
board (i.e., MPLAB REAL ICE should be within the available choices).
Once you have selected the tool, the “Debug Toolbar” should be present just below the
main menu bar, together with other toolbars that may be selected.
Note: MPLAB IDE may need to download new firmware if this is the first time the
MPLAB REAL ICE is being used with a PIC32 device. Allow it to do so.
Note: Be sure to select Debug from the MPLAB IDE Build Configuration drop
down list.