Create a first application on PIC32CM LSx Microcontrollers using MPLAB Harmony v3 with MCC
This document describes how to create a simple application on an Arm® Cortex®-M23 based PIC32CM LSx Microcontroller using the MPLAB Code Configurator (MCC) with MPLAB Harmony v3 modules. This application demonstrates the TrustZone®-based security feature on PIC32CM LSx Microcontrollers.
The application consists of two projects which details about Secure and Non-Secure modes on PIC32CM LSx Microcontrollers. These two projects offer security isolation between the trusted and non-trusted resources in the device. The objective of this application is to toggle an LED on a timeout basis and print the LED toggling rate on the Serial Console. For this demonstration, the following MPLAB Harmony v3 modules are used and configured using the MCC as Secure and Non-Secure.
The application makes use of PIC32CM LS60 Curiosity Pro Evaluation Kit.
The applications you create will utilize:
- Secure PORT Pin to toggle LED (by default, all the PORT pins are configured as Secure).
- Secure Real-Time Clock (RTC) PLIB to periodically sample LED toggling rate.
- Secure External Interrupt Controller (EIC) PLIB to change the toggling rate when a switch press event occurs. The Non-Secure modules include:
- Non-Secure SERCOM (configured as USART) and Non-Secure Direct Memory Access (DMA) PLIBs to print the LED toggling rate on a COM (serial) port terminal application running on a PC.
- Non-Secure Port Pins (USART pins are responsible for printing the data on the Terminal after obtaining the values from Secure Application) to communicate with the Serial Terminal.
For more information refer the links below.