# Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

### Protego

# MPLAB XC16 C-Compiler

- 1
- 2
…
- 57
- 58
- 59
- 60
- 61
…
- 365
- 366

XC16 Toolchain and MPLAB X IDE
 2012-2013 Microchip Technology Inc. DS50002071C-page 59
3.6 PROJECT EXAMPLE
In this example, you will create an MPLAB X IDE project with two C code files.
 Run the Project Wizard
 Add Files to the Project
 Set Build Options
 Build the Project
 Output Files
 Further Development
3.6.1 Run the Project Wizard
In MPLAB X IDE, select File>New Project to launch the wizard.
1. Choose Project: Select Microchip Embedded for the category and Stand-
alone Project for the project. Click Next> to continue.
2. Select Device: Select the dsPIC30F6014. Click Next> to continue.
3. Select Header: There is no header for this device so this is skipped.
4. Select Tool: Choose a development tool from the list. Tool support for the
selected device is shown as a colored circle next to the tool. Mouse over the cir-
cle to see the support as text. Click Next> to continue.
5. Select Compiler: Choose a version of the XC16 toolchain. Click Next> to con-
tinue.
6. Select Project Name and Folder: Enter a project name, such as
MyXC16Project. Then select a location for the project folder. Click Finish to
complete the project creation and setup.
Once the Project Wizard has completed, the Project window should contain the project
tree. For more on projects, see the MPLAB X IDE documentation.
3.6.2 Add Files to the Project
To add the C code files tmp6014.c and traps.c to the project:
1. Right click on the Source Files folder in the project tree. Select Add Existing
Item to open the Select Item dialog.
2. Go to the directory:
C:\Program Files\Microchip\xc16\vx.xx\support\templates\c
where vx.xx is the version number.
3. Click the file tmp6014.c. Then shift-click the file traps.c. Click Select.
When you are done, the project tree should now have the Source Files folder open,
containing to the two added files.

- 1
- 2
…
- 57
- 58
- 59
- 60
- 61
…
- 365
- 366