Lab 1: Create the Application

Step 2: Create MPLAB® v3 Project Using MPLAB X IDE

1

Select File > New Project from the IDE main menu or click on the New Project button Main_New_Project.png.

2

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

3

In the Projects pane, select 32-bit MPLAB Harmony 3 Project, then click Next.

lab1_step2_03.png
Figure 1: Select 32-bit MPLAB Harmony 3 Project

If 32-bit MPLAB Harmony 3 Project is not displayed, install MHC.

4

In the Framework Path edit box, browse to the folder containing the downloaded framework. If you have not done this or want to download it to a different folder, click the Launch Content Manager button, then click Next.

lab1_step2_04.png
Figure 2: Verify Framework Path

Note: For more information on the Harmony Content Manager, see the "Download MPLAB Harmony Framework" section of the "MPLAB® Harmony v3 Configurator Overview" page.

5

In the Project Settings window, apply the following settings:

  • 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:\Users\<your_name>\HarmonyProjects\PIC32WFI32E.
  • Folder: Indicates the name of the MPLAB X Project .X folder. Enter "pic32_wfi32e_lab1" to create a pic32_wfi32e_lab1.X folder.

Use a valid directory name for your operating system.

  • Name: Keep the project’s logical name as "pic32_wfi32e_lab1". This is the name that will be shown from within the MPLAB X IDE.

Note: The Path box is read-only. It will update as you make changes to the other entries.

  • Click Next to proceed to Configuration Settings.
lab1_step2_05.png
Figure 3: Project Name and Location

6

Follow the steps below to set the project’s Configuration Settings.

  • Name: Keep the configuration name as "default".
  • Target Device: Select PIC32MZ1025W104132 as the target device.

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 Finish to launch MHC.
lab1_step2_06a.png
Figure 4: Configuration Settings

Note: The New Project Wizard opens the MPLAB Harmony Configurator automatically for a 32-bit MPLAB Harmony 3 Project.

lab1_step2_06b.png
Figure 5: Configuration Database Setup
lab1_step2_06c.png
Figure 6: MPLAB Harmony Configurator Main Page

7

Set the created project as the main project if you have multiple projects open.

lab1_step2_07.png
Figure 7: Set as Main Project

8

Open the Project Properties window and verify that the compiler is set to XC32 (v3.0 or above) and Tool is set to ICD4. Also, verify the package version numbers.

lab1_step2_08a.png
Figure 8: Open Project Properties
lab1_step2_08b.png
Figure 9: Configure Project Properties

Note: This project has been verified to work with the following package versions:
CMSIS v5.7.0, PIC32MZ-W_DFP v1.3.177

You are free to try the latest packages. However, since we regularly update our tools, you may occasionally discover an issue while using the newer versions. If you suspect that to be the case, we recommend that you double-check and use the same versions that the project was tested with.



Next Step >

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.