Getting Started With MPLAB® Harmony v3 Peripheral Libraries on PIC32CM JH (Arm® Cortex®-M0+) MCUs: Step 1

Last modified by Microchip on 2025/09/29 09:44

Information

Note: This video provides an overview on how to create the 32-bit application project using MPLAB® X Integrated Development Environment (IDE).

Create an MPLAB Harmony v3 application Project Using MPLAB X IDE

Select File > New Project from the main MPLAB X IDE menu.

Open a new project

Information

Note: Close all existing open projects before you start creating a new project.

In the Categories pane of the New Project dialog, select Microchip Embedded.

In the Projects pane, select Application Project(s), then click Next.

project creation setup

Enter the Device name as follows:
Device: Select PIC32CM6408JH00064 as the target device.

Information

Note: You can select the device family or enter a partial device name to filter the list in target device to make it easier to locate the desired device.

After selecting the target device, click Next to select the compiler.

project dev name

In the Select Compiler window, select the compiler version in the Compiler Toolchains pane, expand the XC32 section, and select XC32 (v4.60) [C:\Program Files\Microchip\xc32\v4.60\bin].

Click Next to proceed to Select Project Name and Folder.

project compiler

In the Select Project Name and Folder pane, apply the following settings:

  • Project Name indicates the name of the project that will be shown in MPLAB X IDE. Enter "pic32cm_jh_vl_cnano_getting_started" to set the project's name.
  • Project Location indicates the path to the root folder of the new project. All project files will be placed inside this folder. The project location can be any valid path, for example, C:\dev\pic32cm_jh_vl_cnano_getting_started\firmware.

project path setup

Information

Note: The project folder is read-only. It will update as you make changes to the entries.

After selecting the project name and folder, click Finish to launch MPLAB Code Configurator (MCC).

The MCC plug-in’s main window for the project will be displayed as shown in the accompanying image.

MCC plugin’s main window

Before proceeding, set up the Device Family Pack (DFP) and compiler toolchain for the project. 

Note: The application is built and developed using PIC32CM-JH_DFP version 1.4.224. Please use PIC32CM-JH_DFP version 1.4.224 or above to build this application. If you need help regarding the DFP versions, kindly contact Microchip Sales.

Click on the Projects tab on the top-left pane in MPLAB X IDE. Right-click on the project name project, pic32cm_jh_vl_cnano_getting_started, and go to Project > Properties.

project view

Check that XC32 (v4.60) is selected as the Compiler Toolchain for XC32 and select the PIC32CM-JH_DFP package 1.4.224.

Click on Apply and then click on OK.

xc32 setup

 

Tool Tip: If you closed MCC accidentally and would like to open it again, go to Tools > Embedded > MPLAB Code Configurator v5: Open/Close in MPLAB X IDE.

Back to Top


Verify Clock Settings

Launch Clock Easy View by going to the MCC tab in MPLAB X IDE and then selecting Plugins > Clock Configuration.

Open the Clock Configuration menu

A new window, Clock Easy View, is opened inside MCC.

Click the Clock Easy View tab, scroll to the right, and verify that the Main Clock is set to 48 MHz.

Clock Easy View window

Back to Top