1.1 Creating an MPLAB Harmony v3-based Project
To create an MPLAB Harmony v3-based project, follow these steps:
- On the Start menu, launch MPLAB X IDE.
- In MPLAB X IDE, on the File menu, click New Project or click New Project icon.
- In the New Project window, in the left pane under Steps, select Choose Project.
- In the right pane, in the Categories
item list, select Microchip Embedded and in the Projects list select
32-bit MCC Harmony Project.Note: If the option 32-bit MCC Harmony Project is not available, install the MPLAB Code Configurator plug-in from Tools > Plugins > Available Plugins before continuing with this demonstration. The MPLAB Code Configurator is available for download at the following location: https://www.microchip.com/en-us/tools-resources/configure/mplab-code-configurator.
Figure 1-1. Choose Project - Click Next.
- In the left pane, under Steps, select
Framework Selection. In the right pane, enter these details:
- Harmony Repository: Enter the path https://github.com/Microchip-MPLAB-Harmony.
- Framework Path: Enter
C:\h3. (Path to the folder in which the MPLAB Harmony v3 packages
are downloaded).
Figure 1-2. Framework Selection Note: For this demonstration application, the following MPLAB Harmony v3 packages are required: dev_packs and csp. The MCC Content Manager simplifies the downloading of the MPLAB Harmony v3 packages. If these packages are not downloaded, refer to the MPLAB® Code Configurator Content Manager for MPLAB Harmony v3 Projects video to download it.
- Click Next.
- In the left pane, under Steps, select
Project Settings. In the right pane, enter these details:
- Location: Enter C:\microchip\h3\Tech_Brief (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).
- Folder: Enter
pic32cm_ls60_cpro (Indicates the name of the MPLABX.X folder to
create a
pic32cm_ls60_cpro.X
folder). - Name: Enter tz_getting_started_pic32cm_ls60_cpro (Indicates the name of the project that will be shown in MPLAB X IDE to set the project name).
- Path: Read-only content (Automatically updates when users make changes to the above entries).
Note: This project can be created for the PIC32CM LS00 Curiosity Pro Evaluation Kit by following similar steps to create and configure the project.Figure 1-3. Project Settings Note: Click the Show Visual Help button to open a contextual help window for a detailed description of various fields in the Project Settings. - Click Next.
- In the left pane, under Steps, select
Configuration Settings. In the right pane, enter these details:
- Name: Enter pic32cm_ls60_cpro.
- Device Family: All.
- Device Filter: Enter PIC32CM5164LS.
- Target Device: In the
drop-down list select PIC32CM5164LS60100 for creating the project on
the PIC32CM LS60 Curiosity Pro (The Device Filter entry will be reflected
under the Target Device).
Figure 1-4. Configuration Settings To create a project on the PIC32CM LS00 Curiosity Pro Evaluation Kit, in the Device Filter box, enter PIC32CM5164LS00100. The following configurations will work for both the PIC32CM LS00 Curiosity Pro and PIC32CM LS60 Curiosity Pro.
- Click Finish to launch
MCC.Note: By default, Non-Secure Project will be set as the main project while launching the MCC.
- Before launching the MCC, the Configuration Database Setup Window will be displayed where the Device Family Pack (DFP) and Cortex Microcontroller Software Interface Standard (CMSIS) path can be changed, if required. For this demonstration, the default settings are used.
- The MCC plug-in will open in a new
window as shown in the following figure:
Figure 1-5. MPLAB Code Configurator Window