Combining the Current Project Hex File with Other Hex Files

For the current project, open its project properties (File > Project Properties) and click on "Loading".


1

Add Loadable File

Click Add Loadable File to open the "Add Loadable File" dialog. Browse to a hex file and select it.

AddLoadableFile.gif

2

Select Storage Option

Under “Store path as” select how to store information about the path to the loadable file. Choose from:

  • Auto – allow MPLAB® IDE to determine whether the loadable file path should be relative or absolute based upon its location. If the main project directory contains the loadable file, the reference is a relative path. Otherwise, the reference is an absolute path.
  • Relative – reference the loadable file with a relative (to the main project) path. This is the preferred way to add paths.
  • Absolute – reference the loadable file with an absolute path. There are cases when this mode is useful, but these paths often require correction when a project is moved from one system to another.

3

Close Add Loadable File

Click Add to close the "Add Loadable File" dialog and add one hex file to the current project.

4

Specify Loadable File Order

If you have added more than one file, the order shown here will determine the order in which the hex files will be added to the current project’s hex file. Use Up and Down to change the order.

LoadableFiles.jpg

5

Apply Loadable Selections

Click Apply or OK to accept the changes.

The next time you build the current project, the hex files listed here will be combined with the current project’s hex file (CurrentProject.X.Production.hex) to create a single output hex file (CurrentProject.X.unified.hex) in the same folder as the current project hex file.

6

Load Symbols (Optional)

By default the checkbox “Load symbols when programming or building for production (slows process)” is unchecked. In this case, only the hex file is loaded.

Checking this checkbox will load the hex file and all debug symbols. See Loading Debug Symbols During Program/Build.

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