Step 2: Configuration of MCC
Configuration of MPLAB® Code Configurator (MCC)
Create a new project with PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit (refer to Lab 1, Step 2). Once the project is created and MCC is launched, go to Device Resource > Libraries > Harmony > Peripherals > TC > TC0. (Either double-click on TC0 or click + which is near to TC0.)

Click Expand All in Configuration Options to view the configurations for TC0.

Configure TC0 as shown in the accompanying image.

Select Arm TrustZone for Armv8-M under the Plugins drop-down.
Select Peripheral Configuration in Arm® TrustZone® for Armv8-M plugin.

Click on TC0 under the Peripherals section to change TC0 from the Secure region to the Non-Secure region.

Go to Pin Configuration under the Plugins drop-down.

Configure the PA15 pin (user LED) as shown in the accompanying image.
