User manual
MPLAB
®
ICD 3 In-Circuit Debugger User’s Guide
DS51766A-page 26 © 2008 Microchip Technology Inc.
4.3 CREATING A PROJECT
The easiest way to create a new project is to select Project>Project Wizard. With the
help of the Project Wizard, a new project and the language tools for building that project
can be created. The wizard will guide you through the process of adding source files,
libraries, linker scripts, etc., to the various “nodes” on the project window. See MPLAB
IDE documentation for more detail on using this wizard. The basic steps are provided
here:
• Select your device (e.g., PIC24FJ128GA010)
• Select a language toolsuite (e.g., Microchip C30 Toolsuite)
• Name the project
• Add application files (e.g., program.c, support.s, counter.asm)
4.4 VIEWING THE PROJECT
After the Project Wizard has created a project, the project and its associated files are
visible in the Project window. Additional files can be added to the project using the Proj-
ect window. Right click on any line in the project window tree to pop up a menu with
additional options for adding and removing files.
See MPLAB IDE documentation for more detail on using the Project window.
4.5 BUILDING THE PROJECT
After the project is created, the application needs to be built. This will create object
(hex) code for the application that can be programmed into the target by the MPLAB
ICD 3 in-circuit debugger.
To set build options, select Project>Build Options>Project
.
When done, choose Project>Build All
to build the project.
Note: If you do not have a custom linker script in your project, the Project
Manager will select the appropriate linker script for you.
Note: On the Project Manager toolbar (View>Toolbars>Project Manager), select
“Debug” from the drop-down list when using the MPLAB ICD 3 as a
debugger, or select “Release” when using it as a programmer.