Create a Prebuilt Project

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

SelectMicrochip Embedded from theCategories list.

SelectPrebuilt (Loadable Image) Project from theProjects list.

ClickNext >

Step1.png
Click image to enlarge.

3

Create Prebuilt Project

Click on theBrowse 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.

ClickNext >

Step2.png
Click image to enlarge.

4

Select Project Name and Folder

Select the location for the project on your computer.

ClickNext >

Step3.png
Click image to enlarge.

5

Summary and Finish

Verify the setup is correct and click onFinish

Step4.png
Click image to enlarge.

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