Microchip Technology ICD 3 In-Circuit Debugger DV164035 DV164035 User Manual

Product codes
DV164035
Page of 108
Tutorial
© 2008 Microchip Technology Inc.
DS51766A-page 37
FIGURE 5-7:
DEBUGGER PROGRAM MEMORY TAB
Here you may allow the debugger to automatically choose the programming ranges 
(recommended) or you may select ranges manually.
• The “Memories” section should have “Program” checked, and “EEPROM” and 
“ID” unchecked. When using the MPLAB ICD 3 in-circuit debugger as a debugger, 
Configuration bits will always be programmed and the “Configuration” box will be 
checked and grayed out.
• For the PIC24FJ devices, all memory will be erased each time the chip is 
programmed. Therefore, in the “Program Options” section, “Erase all before 
Program” will have no effect.
• The “Program Memory” addresses (“Start” and “End” address) set the range of 
program memory that will be read, programmed or verified.
When debugging code, you will frequently repeat the edit, rebuild, reprogram and run 
sequence. To automate this, there are checkboxes “Program after successful build” 
and “Run after successful program”. Leave these unchecked for now.
5.7
CREATING A HEX FILE
To create a hex file for debugging:
• On the Project toolbar, select “Debug” from the Build Configuration drop-down list.
• Select Project>Build All or right click on the project name in the project window 
and select “Build All” from the popup menu.
The project will build (Figure 5-8), and the resulting .hex file will have the same name 
as the project (Figure 5-9). The hex file is the code that will be programmed into the 
target device.
Note:
Depending on the build options selected, your Output window may look 
different from Figure 5-8 (Project>Build Options>ProjectMPLAB C30 and 
MPLAB LINK30 tabs.)