3.2 Generate Code

  1. After configuring the peripherals, click Resource Management [MCC] and then click on the Generate tab.
    Figure 3-20. Generation of Code
  2. The generated code will add files and folders to the 32-bit MCC Harmony v3 project. In the generated code, notice the Peripheral Library files generated for SysTick, SERCOM, EIC, NVMCTRL, RTC, Event System, and PORT peripherals.
    Figure 3-21. Generated Code on Non-Secure and Secure Projects
Note:
  • MCC generates the separate main.c file in Secure and Non-Secure Projects.
  • 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.