Getting Started With MPLAB® Harmony v3 Peripheral Libraries on PIC32CM JH (Arm® Cortex®-M0+) MCUs: Step 1
Create an MPLAB Harmony v3 application Project Using MPLAB X IDE
Select File > New Project from the main MPLAB X IDE menu.
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:
Device: Select PIC32CM6408JH00064 as the target device.
After selecting the target device, click Next to select the compiler.
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.
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.
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.
Before proceeding, set up the Device Family Pack (DFP) and compiler toolchain for the project.
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.
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.
Verify Clock Settings
Launch Clock Easy View by going to the MCC tab in MPLAB X IDE and then selecting Plugins > Clock Configuration.
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.