MPLAB® Harmony v3 Peripheral Libraries on PIC32CM GV-VL (Arm® Cortex®-M0+) MCUs: Step 4

Last modified by Microchip on 2025/10/09 16:10

Note: This video demonstrates how to generate the MPLAB® Code Configurator (MCC) configuration code for the peripherals used in the project.

Generate Code

Now, generate the code by using MCC. From the Project Resource pane, click on the Generate button.

Project Resource pane

As code is generated, MCC displays the progress as shown in the accompanying image.

MCC Generating Progress

 

Navigate to the Projects tab in MPLAB X IDE to view the project tree structure.

Examine the generated files as shown in the accompanying image.

Projects files

MCC will include all the MPLAB Harmony v3 library files and generate the code based on the MCC selections. The generated code would add files and folders to your MPLAB Harmony v3 project as shown.

Among the generated code, notice the Peripheral Library (PLIB) files generated for Real-Time Clock (RTC), SERCOM 2 (as Universal Synchronous Asynchronous Receiver Transmitter (USART)), External Interrupt Controller (EIC), and PORT peripherals. MCC also generates the template main file (main.c).

Back to Top