Low Power Application on SAMC2x Using MPLAB® Harmony v3 Peripheral Libraries: Step 5

Last modified by Microchip on 2023/11/09 09:09

Generate Code

Click on the Resource Management [MCC] tab on the top left pane. Click the Generate button in the Project Resources.

Generate Code

As the code is generated, MPLAB® Code Configurator (MCC) displays the progress as shown below.
Generate Code

Generate Code

Examine the generated code as shown below.

Examining the generated codeMCC will include all the MPLAB Harmony library files and generate the code based on the MCC selections. The generated code would add files and folders to your Harmony project as shown. Among the generated code, notice the peripheral library files generated for RTC, SERCOM 2 (as I²C), SERCOM 4 (as USART), DMA, PM, EIC, EVSYS, SUPC, ADC and PORT peripherals. MCC also generates template main file (main.c).

Navigate to the Projects tab to view the project tree structure.

Build the code by clicking on the Clean and Build icon  and verify that the project builds successfully.

At this point, you are ready to start implementing your application code.

Clean and Build Icon

Back to Top