Getting Started Training Module Using MCC: Step 4

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

Generate Code

Generate button

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.


As the code is generated, MCC displays the progress.

Loading progress


Generated code locations

Examine the generated code files.

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).

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

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

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