Step 2: Configuration of MPLAB® Code Configurator (MCC)
Configuration of 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 Resources > Libraries > Harmony > Peripherals > TC > TC0. (Either double click on TC0 or click + near TC0).

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

Configure the Select Prescaler and Time in TC0 as shown in the accompanying image.

Select Arm® TrustZone® for Armv8-M under the Plugins drop-down.

Select Peripheral Configuration in the 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. Refer to Lab 3 Step 2 for instructions on custom naming configurations and adjusting the pin display order.
