Build a Project

For MPLAB X IDE, it is not necessary to build the project first and then run or debug. Building is part of the run and debug processes. For initial development or major changes, however, you may want to make sure that the project builds before attempting to run or debug.

To build a project:

Build progress will be visible in the Output window.

Available build functions are:

Table 1. Build Options on Toolbar Buttons
Button Icon Function Description
Build Project Make all the files in the project.
Build for Debugging Make all the files in the project and add a debug executive to the built image.
Build with PRO Comparison If you use an MPLAB XC C compiler in free mode, you can build in PRO mode as well and see a comparison output of differences, if any exist. See Compare MPLAB XC Compiler Free vs. PRO Licenses.
Clean and Build Remove previous build files and make all the files in the project.
Clean and Build for Debugging Remove previous build files and make all the files in the project. Add a debug executive to the built image.
Clean and Build with PRO Comparison Remove previous build files and then Build with PRO Comparison.

To view errors in the Output window:

  1. 1.Right click in the Output window and select “Filter.”
  2. 2.In the Filter dialog, check “Match Case” and enter “: error” to show only errors in the Output window that stopped the build.
  3. 3.Toggle the filter on and off using <Ctrl>+<G>.

See you language tool documentation for a discussion of errors.

To view checksum information:

Open the Dashboard window (see View the Dashboard Display) to see the checksum after a build.