Build an MPLAB® X IDE Project and Program a Device

When a project is opened inMPLAB® X IDE, it can be modified or just built and programmed into an MCU device. The example project shown here is written to light an LED on theMicrochip Curiosity HPC Board that contains a PIC16F18875 MCU.

curiosityhpc.jpg

Project Files

The project files are shown in theProject window of MPLAB X IDE. Under theSource folder, themain.c source file is shown.

projectwindow.png

View the Source File

Double-clicking on themain.c file opens it in theEditor window where the source code can be edited.

editorwindow.png

Build the Project

Click on theBuild iconMain_Build_Project.png to compile the project and if there are no errors, theOutput window will show "Build Successful".
outputwindow.png

Project Information

The amount of memory used along with details of the compiler level used and other information about the project are shown in theNavigator window.

navigatorwindow.png

Program the Device

The final step is to program the device. The Curiosity HPC Board has the programmer built-in on the left side of the board. Clicking on theMake and Program Device iconMain_Program_Target_Project.png builds the project again and then launches the programmer control software and sends the compiled file to the device.

Within a short time, theOutput window will show the "Programming/Verify Complete" message and the LED will be lit on the Curiosity HPC Board.

programwindow.png
curiosityled.jpg