Microchip Technology DM240312 Data Sheet

Page of 64
PIC24FJ256DA210 Development Board User’s Guide
DS51911A-page 22
 2010 Microchip Technology Inc.
3.4
BUILDING THE CODE
For the loaded project, building the code consists of compiling the source files to create 
an object file, GMAP USB Demo PIC24.o, then linking the object file to create the out-
put files GMAP USB Demo PIC24.hex and GMAP USB Demo PIC24.cof. The HEX 
file contains the data necessary to program the device, and the .cof file contains 
additional information that lets you debug the code at the source code level.
3.4.1
Verifying the Compiler Path
Before building the project, check that the path of the MPLAB C30 compiler is set to the 
correct path. The path must be consistent with the location of the compiler when you 
installed it.
1.
At the Project menu, click on Select Language Tool Suite… . This opens the 
Select Language Toolsuite dialog (Figure 3-4).
2.
Verify that the C30 Toolsuite is selected in the Active Toolsuite list. In the 
Toolsuite Contents list, select each item, then verify the path for that item in the 
Location box. If necessary, modify the path by clicking on Browse, then 
browsing to and selecting the correct location in the dialog that follows.
3.
After verifying and/or modifying the paths, click OK to exit.
FIGURE 3-4:
SELECT LANGUAGE TOOLSUITE
3.4.2
Building the Project
Before building the project, set the build for a release version. From the menu bar of 
the main MPLAB IDE window, select Project  > Build Configuration, then select 
Release.
To build the project in the main MPLAB IDE window, select Project > Make. The Build 
Output window appears (Figure 3-5). 
Observe the progress of the build. When the “BUILD SUCCEEDED” message displays, 
you are ready to program the device.