Open and Execute Touch Example Projects in MPLAB® via the MPLAB® Harmony Configurator 3

Last modified by Microchip on 2023/11/10 11:18

Overview

Warning: This tutorial uses the old Harmony configuration tool (MPLAB® Harmony Configurator (MHC)). New Harmony projects should use the MPLAB Code Configurator (MCC) instead.

 

Touch Library example projects for Microchip kits are available as a part of the touch repository in the apps folder. This page provides information on how to open and execute touch example projects.

For information on installing the necessary tools, please see Set Up the Environment for Touch.

Steps to Open Touch Example Projects

MPLAB® X IDE

Open MPLAB® X IDE by clicking on File > Open Project from the menu.

MPLAB X IDE: Click on File > Open Project

Back to Top


Download from the Repository

Browse the local folder which has the touch repository downloaded from the framework downloader.

Browse to local folder of the touch repository

Back to Top


Open Project

Select the .X project and then click Open Project.

MPLAB X View:  Select the project then click Open Project

Now, the project with its source files is opened in the IDE.

MPLAB X View: Project is now Open

Back to Top

Steps to Execute Touch Example Projects

Clean and Build

Right-click on the project name and click on Clean and Build to build the project.

MPLAB X View:  Select Clean and Build

Back to Top


Build Complete

When the build is completed, a "BUILD SUCCESSFUL" message is displayed in the Output window.

MPLAB X View:  "BUILD SUCCESSFUL" message

Back to Top


Make and Program Device

Right-click on the project name and click on Make and Program Device or click on the icon indicated in the following image to program the device.

MPLAB X View: Make and Program icon

Back to Top


Connect

Connect the SAM C21 Xplained Pro Evaluation Kit and choose the EDBG serial number of the kit from the Kits list.

MPLAB X View:  Choose the EDBG serial number of the kit from the Kits list

Back to Top


Programming Complete

After programming, a "Programming complete" message is displayed in the Output window.

MPLAB X View: "Programming complete" message

The kit is now programmed with the touch hex file. Touch the sensors and view the LED status. Touch Debug data can also be viewed via the Data Visualizer tool.

Back to Top