Getting Started With the TrustZone-based Security on PIC32CM LSx Microcontrollers | Videos
Getting Started With the TrustZone-based Security on PIC32CM LSx Microcontrollers
This video introduces the TrustZone®-based security on PIC32CM LSx Microcontrollers. There are two microcontrollers based on LSx that are PIC32CM LS00 and LS60. In this video, we will show you how to create a simple TrustZone®-based application on Microchip's PIC32CM LS60 and LS00 based on Cortex®-M23 32-bit microcontroller using MPLAB Code Configurator.
This application demonstrates the TrustZone® feature on the PIC32CM LS60 and LS00 microcontroller (MCU). The application has two projects pertaining to Secure and Non-Secure modes of PIC32CM LS60/LS00 that work together on the same MCU and offers security isolation between the trusted and the non-trusted resources in the device.
The Secure mode application reads the current room temperature from the temperature sensor on the I/O1 Xplained Pro Extension Kit every 500 milliseconds. Further, the application writes the temperature readings to EEPROM and reads when a request is received from the Non-secure mode application. Also, a green LED (LED0) is toggled every time the temperature display request is received from the Non-secure mode application. The periodicity of the temperature values reading can be changed to 1 second, 2 seconds, 4 seconds, and back to 500 milliseconds whenever the user presses the switch SW0 on the PIC32CM LS60 Curiosity Pro Evaluation Kit. The temperature readings are transferred to the Non-secure mode application when it requests to Secure the application through Non-Secure Callables (NSC).
The Non-secure mode application requests the Secure mode application the temperature values and prints them on a serial console once it receives from the Secure mode application. Further, when it gets a request from the user (in the form of a key press on the serial console), it will request the Secure mode application to retrieve the last five stored temperature values in the EEPROM. The Non-secure application prints the last five stored temperature values on the console. Also, a red LED (LED1) is toggled every time the temperature values are read from EEPROM.
Note:
The difference between the PIC32CM LS00 and LS60 MCU is that the LS60 is having a TrustZone® and TrustFLEX ECC608 Secure Subsystem whereas the LS00 just has the TrustZone® Technology. The remaining features are the same in both MCUs.
Reference Links:
PIC32CM LS60 Curiosity Pro Evaluation Kit page:
https://www.microchip.com/en-us/development-tool/EV76R77A
PIC32CM LS00 Curiosity Pro Evaluation Kit page:
https://www.microchip.com/en-us/development-tool/EV12U44A
PIC32CM Lx Family of Microcontrollers (MCUs):
https://www.microchip.com/en-us/products/microcontrollers-and-microprocessors/32-bit-mcus/pic32-32-bit-mcus/pic32cmlx
Microchip’s Microcontrollers and Microprocessors product page:
https://www.microchip.com/en-us/products/microcontrollers-and-microprocessors
Dual Developer Application Development Use Case:
https://ww1.microchip.com/downloads/en/DeviceDoc/Dual-Developer-Application-Development-Use-Case-with-TrustZone-on-SAM-L11-Using-MPLAB-Harmony-DS90003306.pdf
Timestamps:
0:00 – Introduction
0:19 – Prerequisite - Software
0:34 – Prerequisite - Hardware
1:49 – Project Scope and Steps
2:37 – Step 1: Application Overview
3:37 – Step 1.1: Basic Application Block Diagram
4:18 – Step 1.2: Extended Application Block Diagram
5:46 – Step 2: Setup the Hardware
5:56 – Step 3: Download the Demo Project
6:13 – Step 4: Open the Project and Launch MCC
6:27 – Step 5: Check the Peripheral Configurations in MCC
8:50 – Step 6: Review the Application Code
9:16 – Step 7: Compile the Project and Observe the Output
10:22 – More application demos on PIC32CM LS60 Curiosity Pro Evaluation Kit
10:38 – More information on MPLAB Harmony
To view this video, please click manage cookies below and accept functional cookies.
{"SalesForceSecurePath":"https://microchip.my.salesforce-scrt.com","EmbeddedServiceName":"Messaging_For_Microchip","SalesForcePath":"https://microchip.my.site.com/ESWMessagingForMicrochi1755319480924","AgentAvailableHeader":"No problem. Chat with our engineering experts or schedule a call that's convenient for you.","ScheduleCallUrl":"https://microchip.my.site.com/schedulemeetingportal/s/","SalesforceOrgId":"00Do0000000KAkK","JsUrl":"https://microchip.my.site.com/ESWMessagingForMicrochi1755319480924/assets/js/bootstrap.min.js"}