Update and Configure an Existing MHC-based MPLAB® Harmony v3 Project to MCC-based Project: Step 1

Step 1.1: Open MPLAB® Harmony v3 Project on MPLAB X Integrated Development Environment (IDE)

1

Download the pre-developed project to your computer. The ZIP file contains the MHC project which will be updated and configured using the MPLAB Code Configurator (MCC).

See the following figure for steps to download the project ZIP file.

download_pre_developed_mhc_project.png

Go to the path where the MHC project is downloaded by clicking the Show Folder and extract the getting_started_ext.zip project.

open_pre_developed_mhc_project.png

2

Launch MPLAB X IDE from the Windows® Start Menu. Close any projects and files that are currently open.

3

Go to Files > Open Project.

4

You will get a Open Project pop-up window. Select the project pic32mz_ef_curiosity_v2.X from the project download path.

open_existing_project.png

5

Right click on the getting_started_ext_pic32mz_ef_curiosity_v2 project and select Set as Main Project.

set_as_main_project.png

Step 1.2: Migrate to MCC project

1

Before proceeding further, make sure the Harmony Content Path is set properly. Harmony Content Path is where you have downloaded the Harmony repositories.
On MPLAB X IDE, go to Tools > Options. After opening the Options window, go to Plugins and set the proper Harmony Content Path.

harmony_content_path.png

2

Go to Tools > MPLAB® Code Configurator v4: Open/Close.

open_mcc_plugin.png

Or click on the MCC icon

mcc_icon.png

3

Import the MHC project to MCC by clicking the Yes button on the pop-up window.

migrate_mhc_to_mcc.png

Note: Click on the Yes button if MCC requests to select the available DFP version.

select_available_dfp.png

4

MCC starts loading the existing MHC configuration database. Wait for this step to complete.

loading_database.png

Note: Harmony Library loads existing MHC project configurations, i.e., System, I2C1, TMR1, UART6, and DMAC PLIB databases. Wait for all the configurations to load.

5

After successful loading, MCC opens the Project Graph, Resource Management, and Configuration Options windows.

mcc_project_graph.png

Step 1.3: Verify the Clock Settings

1

Launch the Clock Diagram by going to Clock Configuration under the Plugins: drop-down option in the Project Graph of MCC.

open_clock_configuration.png

A new window, Clock Diagram, is opened in the project’s main window.

2

Click on the Clock Diagram tab, scroll to the right and verify that the SYSCLK is set to 200 MHz.

verify_clock_configurations.png

Tool Tip: Double click on the Clock Diagram tab to maximize the window.



Next Step >

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