Create Your First Motor Control Application Using MPLAB® Harmony v3: Step 4

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

Generate Code

Click on the Resource Management [MCC] tab on the top left pane. Click Generate button in the Project Resources tab.

Generate code​​​​​​

Back to top


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

generate step 1

generate step 2

​​​​​

Back to top


Examine the project structure.

generated code

The MCC includes all the MPLAB Harmony library files and generates the code based on the MCC selections. The generated code adds files and folders to your Harmony project.

Check the peripheral library files generated for Position Decoder (PDEC), TCC0, TC0, TC1, Event System (EVSYS), External Interrupt Controller (EIC), and PORT peripherals. The MCC also generates a template main file.

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 that the project builds successfully.

build clean

build

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

Back to top