Getting Started with USB on SAM MCUs Using MPLAB® Harmony v3: Step 1
Create and Configure Harmony v3 Project
Install the MPLAB® Code Configurator (MCC) Plug-in in MPLAB X IDE
Verify that MPLAB Code Configurator (MCC) is installed.
- Launch MPLAB X IDE.
- Go to Tools > Embedded.
- You will see MPLAB Code Configurator v5 in the menu.
Create 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 32-bit MCC Harmony Project, then click Next.
In the Framework Path edit box, browse to the folder you downloaded the framework to, then click Next.
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:\Projects\getting_started_drivers_middleware.
- Folder: Indicates the name of the MPLAB X Project .X folder. Enter "sam_e70_xpld" to create a sam_e70_xpld.X folder.
This must be a valid directory name for your operating system.
- Name: Enter the project’s logical name as "getting_started_drivers_middleware_same70_xplained". This is the name that will be shown from within the MPLAB X IDE.
- Click Next to proceed to Configuration Settings.
Follow the steps below to set the project’s Configuration Settings.
Name: Enter the configuration name as "sam_e70_xpld".
- Target Device: Select ATSAME70Q21B as the target device.
- After selecting the target device, click Finish to launch MCC.
Open MCC and Configure Project Settings
While the MCC tool launches, click on Select MPLAB Harmony content type.
Click on the Finish Button in the MCC Content Manager Wizard.
Set the created project as the main project. If you have multiple projects open, Right click on the project name, getting_started_drivers_middleware_same70_xplained, and click on Set as Main Project.
Open the Project Properties window by clicking on File and select Project Properties (getting_started_drivers_middleware_same70_xplained).
Verify that the compiler is set to XC32 (v4.30) and the Tool is set to SAM E70 Xplained (EDBG). You need to connect the tool using the DEBUG USB port on the SAME70 Xplained Evaluation Kit to your PC for this option to be visible. Also, verify the package version numbers.