2 Creating the Application on PIC32CM MCU Using MPLAB Harmony v3 and MCC

The following software and hardware tools are used for this application:

Note: Updated versions of the above-listed tools can also be used to create the application, and users are not restricted to using the older versions.

To create an MPLAB Harmony v3-based project, follow these steps:

  1. From the Start menu launch MPLAB X IDE.
  2. Click File > New Project or click on the New Project icon.
  3. In the Choose Project properties page:
    1. Categories: Select Microchip Embedded.
    2. Projects: Select Application Project(s).
      Figure 2-1. Choose Project
  4. Click Next.
  5. Click Select Device and in the right Select Device properties page:
    1. For Device, select PIC32CM5164JH01048 for creating the project on the PIC32CM JH01 Curiosity Nano+ Touch Evaluation Kit.
      Note: The selected device will reflect under Target Device.
      Figure 2-2. Device Selection
  6. Click Next.
  7. Click Select Compiler, and in the right Select Compiler properties page:
    1. Under Compiler Toolchains, click and expand XC32, and then select XC32 (v4.45) as shown below.
      Figure 2-3. XC32 Compiler Selection
  8. Click Next.
  9. Click Select Project Name and Folder, and in the right Select Project Name and Folder properties page, enter these details:
    1. Project Name: Enter pic32cm_jh01_cnano. This indicates the name of the project that will be shown in MPLAB X IDE to set the project's name.
    2. Location Project: Enter C:\microchip\h3\tech_brief\adc_seqeuencing_using_dma\firmware. This indicates the path to the root folder of the new project. All project files will be placed in this folder. The project location can be any valid path.
    3. Project Folder: Read-only content, which automatically updates when users make changes to the above entries.
    Figure 2-4. Project Name and Folder Settings
  10. Click Finish to launch MCC.
  11. The MCC plugin will launch in a new window as shown below:
    Figure 2-5. MPLAB Code Configurator Window