1.19 Building for Production
In some version of MPLAB X, the 'Build' and 'Clean and Build' buttons located in the top toolbar will run in debug mode by default. When built in debug mode, a .hex file will not be generated under the project's dist\default\production directory which is required for verification signatures and merging with the bootloader.
To produce a .hex file and build in production mode, please choose one of the following options:
-
Select the dropdown next to the 'Build' or 'Clean and Build' button and select 'Build Main Project' or 'Clean and Build Main Project' respectively
-
Right click on the project name in the Projects window and select 'Build' or 'Clean and Build'