Creating A Production Hex File (rev. 3.00)

NOTE: Microchip updates its tools regularly. This page is an older version that we have preserved for the convenience of those who are supporting existing designs based upon older versions of our tools. Please check https://microchip-dev.wikidot.com/tls0101:creating-a-production-hex-file for the updated version of this page.

To build a production image press one of these three images: multiplebuildicons.png
Name Description
CleanAndBuild.png Clean and Build Project Deletes all the intermediate files, then re-compiles all source files in the project. After compilation, all the newly created intermediate files are linked together to create a single image file.
Build.png Build Project Sometime referred to as 'make'. When invoked MPLAB® X IDE re-compiles only the files which have changed since the last build. Unchanged intermediate files are kept. After compilation a single image file is created by linking the intermediate files.
makeandprogram.png Make and Program Main project This icon has two actions: The first is to invoke the "Build Project" function. After the project is built, the image is downloaded to the PIC® MCU through the selected hardware tool for the project.

  • The production hex file is placed within the "dist" subdirectory of the project folder. The exact subdirectory depends upon which MPLAB® X project configuration is used. When no configuation is specified MPLAB® X uses a default subdirectory called 'default'. Within the "dist\<configuration>" directory the HEX file will be found in the "production" subdirectory

  • Once the project is built, the HEX file for a project is created using the project name formated as: "ProjectName.X". If the default configuration is used it may be found at the following location:
HEXFile.png
ConfigName.png
© 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.