Low Power Application on SAM E54 Using MPLAB® Harmony v3 Peripheral Libraries: Step 1
Create MPLAB® Harmony v3 Project Using MPLAB X IDE
Select File > New Project from the main IDE menu.
In the Categories pane of the New Project dialog window, select Microchip Embedded. In the Projects pane, select 32-bit MCC Harmony Project, then click Next.
Browse to the folder you downloaded the framework to in the Framework Path edit box, 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: <Your_folder>\dev\same54_low_power.
Folder: Indicates the name of the MPLABX .X folder. Enter "sam_e54_xpro" to create a sam_e54_xpro.X folder.
Name: Indicates the name of the project that will be shown in MPLAB X IDE. Enter "low_power_sam_e54_xpro" to set the project's name.
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_e54_xpro".
Target Device: Select ATSAME54P20A as the target device.
After selecting the target device, click Finish to launch MPLAB® Code Configurator (MCC).
While the MCC tool launches, Click on Select MPLAB Harmony content type.
Click on the Finish Button in the MCC Content Manager Wizard.
The MCC plugin’s main window for the project will be displayed.
Before proceeding, set up the compiler toolchain. Click on the Projects tab on the top left pane in MPLAB X IDE. Right click on the project name low_power_sam_e54_xpro and go to Properties.
Make sure that XC32 (v4.30) is selected as the Compiler Toolchain for XC32. Click on Apply and then click on OK.
Configure Clock Settings
Launch Clock Easy View by going to Project Graph in MPLAB X IDE and then select Plugins > Clock Configuration.
A new window, Clock Easy View, is opened inside MCC.
The Clock Easy View window will then appear on your screen.
Enable the XOSC CTRL 1 and configure the Oscillator input to 12 MHz.
Set XOSC1 as GCLK Generator 0 source.
Set OSCULP32K as GCLK Generator 1 source.
Set XOSC1 as GCLK Generator 2 source and set divisor value as 12.
Disable the DFLL and FDPLL.