Getting Started With MPLAB® Harmony v3 Peripheral Libraries on PIC32CM JH (Arm® Cortex®-M0+) MCUs: Step 4

Last modified by Microchip on 2025/09/29 09:43

  

Information

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

Generate the Code

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

generate code

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

Progress is displayed

 

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

Examine the generated code.

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 (Universal Synchronous Asynchronous Receiver Transmitter (USART)), External Interrupt Controller (EIC), and PORT peripherals.

MCC also generates the template main file (main.c).

Examine the generated code

Back to Top