MPLAB® Harmony v3 Peripheral Libraries on PIC32MZ EF: Step 4
Generate Code
When done and before generating the code, click the Save icon as shown in the accompanying image.
Save the configuration in its default location when prompted.
Click on the Generate Code button as shown below to start generating code.
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.
As code is generated, the MPLAB® Harmony Configurator (MHC) displays the progress as shown in the accompanying image.
Examine the generated code as shown in the accompanying image.
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).
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.