Create a Prebuilt Project

While MPLAB X fully supports pre-built projects, the preferred method to program from a hex file is to use the MPLAB IPE application

Because MPLAB® X IDE is project based, it is not possible to simply import a hex file as was done in MPLAB 8. However, the same result may be achieved by creating a pre-built project. This will create a project "wrapper" around the hex file so that it may be used the same way as a hex file built from within a project. The main difference is that you will be able to program a target without being required to build the project since the hex file already exists.

Video - Importing and Programming a Pre-Built HEX File in MPLAB® X

This video shows the steps to import a pre-built HEX file and program it into the target device using MPLAB®X.

 Step-by-Step

1

Toolbar: Main_New_Project.png
Keyboard: Ctrl+Shift+N
Menu: File > New Project…

Launch the new project wizard

2

Select Project Type

Select Microchip Embedded from the Categories list.

Select Prebuilt (Loadable Image) Project from the Projects list.

Click Next >

Step1.png
Click image to enlarge.

3

Create Prebuilt Project

Click on the Browse button and then select the .hex file from your computer.

Then select the Microcontroller from the drop down menu.

Finally select the tool you will use to program the Microcontroller.

Click Next >

Step2.png
Click image to enlarge.

4

Select Project Name and Folder

Select the location for the project on your computer.

Click Next >

Step3.png
Click image to enlarge.

5

Summary and Finish

Verify the setup is correct and click on Finish

Step4.png
Click image to enlarge.

Once you click Finish the project has been created. It will now be open in the project tree.

© 2024 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.