Files Generated by MPLAB® Harmony v2 Configurator

Harmony Files Created After Clicking the Generate Code Button:

After using MPLAB® Harmony Configurator (MHC) to configure the Harmony Framework, click the Generate Code icon to generate the source files.

mhc_generate.png

At this point, you will be asked if you want to save the current MHC configuration. If you save it, this file will be generated as <project config name>.mhc. This file captures all the selections you make in the MHC GUI.

The MHC configuration file can be shared or copied to duplicate a complete set of configuration selections.

mhc_config_save.png

MHC will then generate new source files based on your selections. You will be happy to know it doesn't blindly overwrite the existing source files (unless you tell it to). The Prompt Merge For All User Changes selection allows you to identify and keep any changes you may have made to source files modified by MHC. This is accomplished with the help of a merge window (diff utility) which is automatically opened for you.

mhc_file_generate.png


Files Generated by MHC:

Additional files may also be generated based on your Harmony Framework configuration selections.

Application and Main files:

  • app.c & app.h: Implements your application's logic
  • main.c: Contains the main() function and little else
dir1.png

System Configuration Files:

  • system_config.h: Defines all static build options.
  • system_definitions.h: System-wide prototypes and definitions.
  • system_init.c: Initializes all libraries, applications and processor config bits.
  • system_interrupt.c (optional): Implements all interrupt vector stubs and calls all Interrupt Service Routines (ISRs).
  • system_tasks.c: Calls all polled system logic and maintains system state.
dir2.png

System configuration framework files for a specific project configuration:

  • sys_clk_static.h & sys_clk_static.c: Initializes the system clocks per MHC settings.
  • sys_ports_static.c: Initializes the system I/O ports per MHC settings.
dir3.png

Video Tour of the Files Generated by MHC:

Click on the video title to view the video on YouTube.

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