1.3 Generating the Code

After configuring the peripherals, click Resource Management [MCC], and then click on the Generate tab.

Figure 1-18. Generation of Code
Note: The generated code will add files and folders to the 32-bit MCC Harmony project. In the generated code, notice the Peripheral Library files generated for Real-Time Clock (RTC), External Interrupt Controller (EIC), and PORT peripherals in the Secure project while SERCOM3 (as USART), DMA peripherals in the Non-Secure project. MCC also generates main.c files in both Secure and Non-Secure Projects.
Note: MCC provides an option to change the generated file name, and if this option is not used, by default, the file name main.c is generated.