Getting Started with MPLAB® Harmony v3 Peripheral Libraries on PIC32MK GP MCUs: Step 4

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 Generate button in the Project Resources.

Generate code

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

MCC generating progress

Code finished generating

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

Examine the generated code as shown below.

Examine code display

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

Among the generated code, notice the Peripheral Library (PLIB) files generated for TMR2, CORE TIMER, Serial Peripheral Interface 6 (SPI6), Universal Asynchronous Receiver Transmitter 6 (UART6), Direct Memory Access Controller (DMAC), and General Purpose Input/Output (GPIO) peripherals. MCC also generates template main file (main_pic32mk.c).

Build the project 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