Getting Started Training Module Using MPLAB® Code Configurator (MCC): Step 4

Last modified by Microchip on 2023/11/15 12:59

Generate Code

By default, the Autosave MCC configuration file option is enabled. That means MCC automatically saves your MCC configurations.

Now, generate the code by using MCC. From the left side tab, Resource Management (MCC), go to Project Resources and click on the Generate button.

Generate button

Back to top

As the code is generated, MPLAB® Code Configurator (MCC) displays the progress.

Loading progress

Back to top

Examine the generated code files.

Generated code locations

MCC will include all the MPLAB Harmony v3 library files and generate the code based on the MCC selections. The generated code will add files and folders to your Harmony project.

Among the generated code, notice the peripheral library files generated for RTC, SERCOM 5 (as USART), DMA, and PORT peripherals. MCC also generates a template main file (main_sam_e51_cnano.c).

Back to top

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

Back to top

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

Clean and Build button

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

Back to top