MPLAB® Harmony v3 Peripheral Libraries on SAMC2x: Step 4
Generate Code
When done, before generating the code, click Save MHC State as shown in the accompanying image.
Save the configuration in its default location when prompted.
Generate the code as shown in the accompanying image.
Click on the Generate button in the Generate Project window, keeping the default settings as shown in the accompanying image. If prompted for saving the configuration, click Save.
As the code is generated, MPLAB® Harmony Configurator (MHC) displays the progress as shown in the accompanying image.
Examine the generated code as shown in the accompanying image.
MHC will include all the MPLAB Harmony library files and generate the code based on the MHC selections. The generated code would add files and folders to your Harmony project as shown.
Among the generated code, notice the peripheral library files generated for RTC, SERCOM5 (as I²C), SERCOM4 (as USART), DMA, and PORT peripherals. MHC also generates the template main file (main_c21n.c).
Build the code by clicking on the Clean and Build icon and verify that the project builds successfully.
At this point, you are ready to start implementing your application code.