MPLAB® Harmony v3 Peripheral Libraries on PIC32MZ EF: Step 4

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

Generate Code

When done and before generating the code, click the Save icon as shown in the accompanying image.

save button

Back to Top

Save the configuration in its default location when prompted.

save to default location

Back to Top

Click on the Generate Code button as shown below to start generating code.

generate code button

Back to Top

Click on the Generate button in the Generate Project window, keeping the default settings as shown in the accompanying image.
If prompted to save the configuration, click Save.

Generate project window

Back to Top

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

progress bar

Back to Top

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

Back to Top

Examine the generated code as shown in the accompanying image.

generated code in the project

MHC includes all the MPLAB Harmony library files and generates code based on the 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 MHC 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