Step 3: Generate Code
Generate Code
Generate the code by navigating to the Project Resource tab on the left side of the Project Graph and clicking the Generate button.
As code is generated, MPLAB® Code Configurator (MCC) displays the progress as shown in the accompanying image.
Once project generation is completed, the Peripheral Library (PLIB) files, .c files, and .h files are updated with the configured settings. The added configurations can be verified by navigating to the Projects panel on the left side of the Integrated Development Environment (IDE) and viewing the project tree structure containing the generated code.
Examine the generated files for both the projects, as shown in the accompanying image.
MCC will include all the MPLAB® Harmony v3 library files and generate the code based on the MCC selections. The generated code would add files and folders to the MPLAB® Harmony v3 project as shown.
Among the generated code, notice the PLIB files generated for SysTick Timer, and SERCOM3 as Universal Synchronous Asynchronous Receiver Transmitter (USART). MCC also generates the template main file (main.c).