Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
MPLAB
®
XC16 C Compiler Users Guide
DS50002071C-page 70 2012-2013 Microchip Technology Inc.
4.6 PROJECT EXAMPLE
In this example, you will create an MPLAB IDE project with multiple assembly files.
Therefore, you will need to use the 16-bit assembler and linker to create the final output
executable file.
Run the Project Wizard
Set Build Options
Build the Project
Build Errors
Output Files
Further Development
4.6.1 Run the Project Wizard
In MPLAB IDE, select Project>Project Wizard to launch the wizard. Click Next> at the
Welcome screen.
1. Select dsPIC30F6014 as the Device. Click Next> to continue.
2. Set up the language tools, if you havent already. Refer to MPLAB IDE Setup.
Click Next> to continue.
3. Enter Example for the name of the project. Then Browse to select a location for
your project. Click Next> to continue.
4. Add files to the project.
a) In the file listing box on the left of the dialog, find the following directory:
C:\Program Files\Microchip\xc16\version\Support\
templates\c
where version is the version number of the compiler (e.g., 1.00).
Select tmp6014.c and traps.c. Click Add>> to add these files to the proj-
ect.
b) Optional: In the file listing box on the left of the dialog, find the following direc-
tory: C:\Program Files\Microchip\xc16\version\Support\
dsPIC30F\gld
Select 30f6014.gld. Click Add>> to add this file to the project.
c) Check the checkbox next to each file to make a copy of each file in the proj-
ect directory. (This will preserve the original files.) Click Next> to continue.
5. Review the summary of information. If anything is in error, use <Back to go back
and correct the entry. Click Finish to complete the project creation and setup.
Once the Project Wizard has completed, the Project window should contain the project
tree. The workspace name is Example.mcw, the project name is Example.mcp, and
all the project files are listed under their respective file type. For more on workspaces
and projects, see MPLAB IDE documentation.
Note: If you do not add a linker script to your project, one corresponding
to your selected device will automatically be added for you during
a build.
Protego_Release_01_05-Related-OEM-Documentation-MPLAB-XC16-C-Compiler.pdf