MPLAB® Harmony v3 Peripheral Libraries on PIC32MZ EF: 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 the Generate button in the Project Resources.

Generate code

 

Back to Top


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

Generate code loading

Generate code progress

Back to Top


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

Examine the generated code as shown in the accompanying image.

View the code tree

The MCC includes all the MPLAB Harmony library files and generates code based on the MCC selections. The generated code adds files and folders to your Harmony project. Among the generated code, notice the Peripheral Library files generated for TMR1, I²C1, UART6, Direct Memory Access (DMA), cache, and General Purpose Input/Output (GPIO) peripherals. The MCC also generates a template main file (main_pic32mz.c).

Back to Top


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

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

Back to Top