5.1 Create the First Application on the AVR® LA MCU
To create a VS Code®-based project, follow the steps below:
- Launch VS Code.
- On the left navigation bar, click the MPLAB® plug-in.
- Under the Projects panel on the left, click New Project to create a new MPLAB project.
-
Enter the project title in the search window and press <Enter>.
Figure 5-1. Create a New Project in MPLAB® VS Code® -
Select the location to use for creating the new project. Press <Enter> to proceed. In this example, the default location is selected.
Figure 5-2. Select the Project Location -
Select AVR32LA32 as the device and press <Enter>.
Figure 5-3. Select the Device - Select the project template as Application
and press <Enter>.
Figure 5-4. Select the Project Template -
Select the latest compiler version (XC8 v3.10) and press <Enter>.
Figure 5-5. Select the Compiler -
To launch the MCC window, type
>MPLAB MCC: Launchin the Command Palette.Figure 5-6. Launch the MCC Window -
Select the Create New MCC Config option to create a new MCC configuration for the project.
Figure 5-7. New MCC Config -
Associate the newly created MPLAB project with the new MCC configuration.
Figure 5-8. Associate the MPLAB® Project With the MCC Configuration -
Configure the MCC settings to “Proceed With Default Values”.
Figure 5-9. MCC Configuration With Default Values -
The MCC plug-in will launch a new window, as shown in the following figure.
Figure 5-10. MPLAB® Code Configurator Window
