Step 2: Configuration of MCC
Configuration of MPLAB® Code Configurator (MCC)
Create a new project with PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit (Refer Lab 1 manual). Once the project is created and MCC is launched, go to Device Resources > Libraries > Harmony > Peripherals > SERCOM > SERCOM3, then add SERCOM3 to the project graph (either double-click on SERECOM3 or click + which is near to SERCOM3).

Click Expand All (in Configuration Options) to view the configurations for SERCOM3.

Configure the Operating Mode, Baud Rate and Receive Pinout (in SERCOM3) as shown in the accompanying image.

Go to Arm® TrustZone® for Armv8-M under Plugins dropdown.

Select Peripheral Configuration in Arm® TrustZone® for Armv8-M plugin.

Click on SERCOM3 under Peripherals section to change SERCOM3 from Secure region to Non-Secure region
Go to Pin Configuration under Plugins dropdown.

Configure the pin PB08 and PB09 as shown in the accompanying image. Please also refer to the Lab 3 manual for instructions on adjusting the pin display order.