Getting Started with MPLAB® Harmony v3 Peripheral Libraries on PIC32MK GP MCUs: Step 4
Generate Code
When done, before generating code, click the Save icon in MPLAB® Harmony Configurator (MHC) as shown in the accompanying image.
Save the configuration in its default location when prompted.
Click on the Generate Code button as shown in the accompanying image to start generating code.
Click on the Generate Code button in the Generate Project window, keeping the default settings as shown below.
If prompted for saving the configuration, click Save.
As the code is generated, the MHC displays the progress as shown in the accompanying image.
Examine the generated code as shown in the accompanying image.
MHC will include all the MPLAB Harmony library files and generate the code based on the MHC 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. MHC also generates template main file (main_pic32mk.c).