MPLAB® Harmony v3 Peripheral Libraries on PIC32CM GV-VL (Arm® Cortex®-M0+) MCUs: Step 1

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

 

Information

Note: This video provides an overview of how to create a 32-bit application project using MPLAB® X IDE on the PIC32CM GV-VL CNANO board.

 

Create an MPLAB Harmony v3 Project Using MPLAB X IDE

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

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

Enter the device name as follows:

Select PIC32CM3204GV00064 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.

Select Device

In the Select Compiler pane, select the compiler version under Compiler Toolchains, 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

Select 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 "getting_started_pic32cm_gv_vl_cnano" 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:\mchp_harmony_v3\dev\pic32cm_gv_vl_cnano_getting_started\firmware.

New Project

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

After selecting the project name and folder, ensure that Open MCC on Finish is selected to launch the MPLAB Code Configurator (MCC). Then, click Finish to proceed.

MCC will launch, and then the plug-in’s main window for the project will be displayed, as shown in the accompanying image.

Plug-in’s main window for the project

Before adding peripherals to the project, set up the Device Family Pack (DFP) and compiler toolchain.

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

Click the Projects tab in the top left pane of MPLAB X IDE. Right-click the project name (project: getting_started_pic32cm_gv_vl_cnano), then select Set Configuration > Customize to open the Project Properties.

Set Configuration > Customize

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

Click on Apply and then click on OK.

Project Properties

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 select Plugins > Clock Configuration.

Clock Easy View

A new window, Clock Easy View, will open.

Click the Clock Easy View tab, then maximize the window by double-clicking on it for a better view. Verify that the Main Clock is set to 48 MHz.

Clock Easy View tab

Tool Tip: Click the hamburger menu button in the top left corner to zoom in or out of the Clock Configurator.
 Clock Configuration

Back to Top