5 Building and Running the Application

Follow these steps to program the Software Attack Protection Application on the PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit.

  1. Set the tz_pic32cm_ls00_cnano project as the main project by right-clicking the project and selecting Set as Main Project.
    Figure 5-1. Make the Non-Secure Project as Main Project
  2. The PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit supports debugging using a Nano Embedded Debugger (nEDBG). Connect the Type-A male to micro-B USB cable to the micro-B USB port on the PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit to power and debug the PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit.
    Figure 5-2. PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit Hardware Setup
  3. Go to the Project Properties, and select the Hardware Tool and Compiler:
    1. In the MPLAB X IDE Project Properties window perform these actions.
    2. Under the left Categories section, select Conf: [default], and in the right Configuration properties sheet, select the Connected Hardware Tool and Compiler Toolchain.
      Figure 5-3. Project Properties - PIC32CM LS00 Curiosity Nano+Touch Evaluation Kit
  4. Click Apply, and then click OK.
  5. Build the project by clicking on the Clean and Build icon or selecting Clean and Build Main Project from the drop-down item list and verify that the project builds successfully.
    Figure 5-4. Clean and Build
  6. Program the application by clicking the highlighted icon below.
    Figure 5-5. Program the Device