MPLAB® Harmony v3 Peripheral Libraries on PIC32CM GV-VL (Arm® Cortex®-M0+) MCUs: Step 1
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.
Enter the device name as follows:
Select PIC32CM3204GV00064 as the target device.
After selecting the target device, click Next to select the compiler.
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
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.
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.
Before adding peripherals to the project, set up the Device Family Pack (DFP) and compiler toolchain.
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.
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.
Verify Clock Settings
Launch Clock Easy View by going to the MCC tab in MPLAB X IDE and then select Plugins > Clock Configuration.
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.