5.1 Create the First Application on the AVR® LA MCU

To create a VS Code®-based project, follow the steps below:

  1. Launch VS Code.
  2. On the left navigation bar, click the MPLAB® plug-in.
  3. Under the Projects panel on the left, click New Project to create a new MPLAB project.
  4. Enter the project title in the search window and press <Enter>.

    Figure 5-1. Create a New Project in MPLAB® VS Code®
  5. 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
  6. Select AVR32LA32 as the device and press <Enter>.

    Figure 5-3. Select the Device
  7. Select the project template as Application and press <Enter>.
    Figure 5-4. Select the Project Template
  8. Select the latest compiler version (XC8 v3.10) and press <Enter>.

    Figure 5-5. Select the Compiler
  9. To launch the MCC window, type >MPLAB MCC: Launch in the Command Palette.

    Figure 5-6. Launch the MCC Window
  10. Select the Create New MCC Config option to create a new MCC configuration for the project.

    Figure 5-7. New MCC Config
  11. Associate the newly created MPLAB project with the new MCC configuration.

    Figure 5-8. Associate the MPLAB® Project With the MCC Configuration
  12. Configure the MCC settings to “Proceed With Default Values”.

    Figure 5-9. MCC Configuration With Default Values
  13. The MCC plug-in will launch a new window, as shown in the following figure.

    Figure 5-10. MPLAB® Code Configurator Window