Lab 1 - How to Create an MPLAB® X IDE Project
Introduction
The SAM9X75 Early Access Curiosity Wireless Kit is a powerful evaluation platform designed by Microchip to accelerate the development of embedded applications based on the Arm® Cortex®-A5-based SAM9X75 microprocessor. This board is equipped with a rich set of peripherals, expansion options, and connectivity features, making it ideal for prototyping advanced Internet of Things (IoT), industrial, and multimedia applications.
To harness the full potential of the SAM9X75 Curiosity board, developers need a robust and flexible development environment. MPLAB X Integrated Development Environment (IDE) is Microchip’s flagship tool suite, offering a comprehensive set of features for code development, debugging, and project management.
Creating a new project in MPLAB X IDE tailored for the SAM9X75 Curiosity board is the first step in bringing your embedded ideas to life. This process involves configuring the IDE, selecting the appropriate device and toolchain, setting up the project structure, and preparing the environment for code development and debugging. Understanding how to properly set up your project ensures efficient workflow, easier code management, and smoother integration with hardware features.
In this guide, we take you through the step-by-step process of creating an MPLAB X IDE project specifically for the SAM9X75 Curiosity Wireless Kit.
Create an MPLAB Harmony Application
Launch MPLAB X IDE from the main menu.
Create a new project by clicking the New Project icon or by selecting File > New Project.
In the New Project pane, under Projects, choose Application Project(s) and click Next.
In the Select Device dialog, fill in or select the following information:
- Family: 32-bit MCUs and MPUs (PIC32C/SAM)
- Device: SAM9X75D2G
In the Select Compiler pane, for Compiler Toolchains select XC32 (v4.60), and click Next.
Enter the Project Name, Project Location, and Project Folder. Click Finish.
This creates an empty project and sets this project as the main project. If there are other projects open in the Project Explorer window, set this project as the main project by right-clicking on the project and selecting Set as Main Project.
Once the project is created, MPLAB Code Configurator (MCC) will be automatically launched. (To launch MCC manually, from the main menu, click on Tools > Embedded > MPLAB Code Configurator or click the MCC button in the MPLAB X IDE toolbar).
Now clone the required software libraries by following a) or b) and then step 9.1.
a) If MPLAB Harmony contents are not available in the framework path, MCC will automatically launch the Content Manager Wizard, or
b) If MPLAB Harmony contents are available in the framework path, launch Content Manager Wizard by clicking the Content Manger button, after step 10.
In addition to the required packages (csp), dev_packs, download the optional packages for developing the IoT application like bsp, core, wireless_system_rnwf, wireless_wifi, gfx, wireless_rnbd, wireless_services, and then click Apply. The content download will take some time. Wait until all the contents are downloaded and then click Finish.
The following image shows the libraries version used and verified for this SAM9X75 IoT thermostat application:
This completes creation of the new project for the SAM9X75 Curiosity.
Follow Step 9b and 9.1 to clone the necessary software libraries required for the IoT application development.
Summary
Creating a project in MPLAB X IDE is a quick and essential step to start embedded development with Microchip devices. By following the guided steps, and selecting the project type, device, tool, compiler, and project location, you set up a solid foundation for writing, building, and debugging the application code on the SAM9X75 Curiosity Wireless Kit.
Learn More
- SAM9X75 Curiosity Wireless Kit - IoT Thermostat Application Using Embedded Wizard GUI+ WINCS02+ RNBD+ MQTT Training With Hands-on Labs
- Lab 2 - How to Integrate Temperature Sensor to an MPLAB X IDE Project
- Lab 3 - How to Integrate RNBD Module to an MPLAB X IDE to Establish Bluetooth® Communication
- Lab 4 - How to Integrate WIxCS02 M.2 Wi-Fi® Module Card to an MPLAB X IDE Project to Establish Wi-Fi Communication
- Lab 5 - How to Integrate MQTT to an MPLAB X IDE Project to Publish and Subscribe Data To/From a Cloud Broker
- Lab 6 - How to Integrate an Embedded Wizard GUI Project With an MPLAB® X IDE Project
- Lab 7- Debugging and Testing the IoT MPLAB Harmony Application
- Lab 8 - Running the Pre-Built MPLAB® Harmony IoT Application From the SD® Card