13.07.2015 Views

MPLAB ICD 3 In-Circuit Debugger User's Guide

MPLAB ICD 3 In-Circuit Debugger User's Guide

MPLAB ICD 3 In-Circuit Debugger User's Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TutorialFIGURE 5-7:DEBUGGER PROGRAM MEMORY TAB5.7 CREATING A HEX FILEHere 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 <strong>MPLAB</strong> <strong>ICD</strong> 3 in-circuit debugger as a debugger,Configuration bits will always be programmed and the “Configuration” box will bechecked and grayed out.• For the PIC24FJ devices, all memory will be erased each time the chip isprogrammed. Therefore, in the “Program Options” section, “Erase all beforeProgram” will have no effect.• The “Program Memory” addresses (“Start” and “End” address) set the range ofprogram memory that will be read, programmed or verified.When debugging code, you will frequently repeat the edit, rebuild, reprogram and runsequence. To automate this, there are checkboxes “Program after successful build”and “Run after successful program”. Leave these unchecked for now.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 windowand select “Build All” from the popup menu.The project will build (Figure 5-8), and the resulting .hex file will have the same nameas the project (Figure 5-9). The hex file is the code that will be programmed into thetarget device.Note:Depending on the build options selected, your Output window may lookdifferent from Figure 5-8 (Project>Build Options>Project, <strong>MPLAB</strong> C30 and<strong>MPLAB</strong> LINK30 tabs.)© 2008 Microchip Technology <strong>In</strong>c. DS51766A-page 37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!