Step 5: Build, Program and Observe the Output
Hardware Setup
Connect the PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit to the host PC using a Type-A male to Micro-B USB cable. Plug the cable into the Micro-B USB (Debug USB) port on the evaluation kit.

Open Project Properties. Under the Connected Hardware Tool section, select the PIC32CM LS00 Curiosity Nano + Touch Evaluation Kit as shown below

Then click Apply and Ok
In the Project Properties window, go to xc32-gcc > Option categories > Optimization.

Select 0 as optimization- level as shown and then click Apply and OK.

Building the Project
To build the project click the options indicated in the accompanying image.

Observe that the project has compiled and loaded successfully, as indicated by the BUILD SUCCESSFUL message in the Output window.

Programming and Observing the Output
Click the Make and Program Device Main Project button to program the project onto the PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit. (Please select the tool that need to be used in project properties window – refer Lab 1.)

Once the programming is completed, the user LED will toggle every 500 ms.
