Building The Code - Microchip Technology Explorer 16 User Manual

Hide thumbs Also See for Explorer 16:
Table of Contents

Advertisement

FIGURE 2-6:
Project
Window
Output
Window
2.5

BUILDING THE CODE

In this project, building the code consists of compiling the source files to create an
object file, MyProject.o, then linking the object file to create the MyProject.hex
and MyProject.cof output files. (For dsPIC33F projects, the files would be
Example1_RTC_LED_ADC.o, Example1_RTC_LED_ADC.hex and
Example1_RTC_LED_ADC.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.
Before building, there are settings required to tell MPLAB IDE where to find the include
files and to reserve space for the extra debug code when the MPLAB ICD 2 is used.
For PIC24 projects, the following line in the system.h file is:
#include "p24fj128ga010.h"
For dsPIC33 projects, the line is:
#include "p33fj256gp710ps.h"
This line causes a standard include file to be used. Microchip provides these files with
all the Special Function Register (SFR) labels already defined for convenience.
To build the code, select Build Options > Project from the Project menu. The Build
Options dialog displays (Figure 2-7).
© 2005 Microchip Technology Inc.
Explorer 16 Programming Tutorial
®
MPLAB
IDE WORKSPACE
Source
Code
Window
DS51589A-page 16

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Explorer 16 and is the answer not in the manual?

Questions and answers

Table of Contents