Build an MPLAB® X IDE Project and Program a Device

When a project is opened in MPLAB® 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 the Microchip Curiosity HPC Board that contains a PIC16F18875 MCU.

curiosityhpc.jpg

Project Files

The project files are shown in the Project window of MPLAB X IDE. Under the Source folder, the main.c source file is shown.

projectwindow.png

View the Source File

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

editorwindow.png

Build the Project

Click on the Build icon Main_Build_Project.png to compile the project and if there are no errors, the Output 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 the Navigator 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 the Make and Program Device icon Main_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, the Output window will show the "Programming/Verify Complete" message and the LED will be lit on the Curiosity HPC Board.

programwindow.png
curiosityled.jpg
© 2018 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.