1.4 Building and Programming the Application

  1. The PIC32CM JH01 Curiosity Pro Evaluation Kit supports debugging using an Embedded Debugger (EDBG). Connect the Type-A male to micro-B USB cable to the micro-B debug USB port on the PIC32CM JH01 Curiosity Pro Evaluation Kit to power and debug the PIC32CM JH01 Curiosity Pro Evaluation Kit.
  2. Ensure that the compiler optimization is set to 1, to check that follow these steps:
    1. Right-click on the project getting_started_pic32cm_jh01_cpro, a shortcut menu appears. Click Properties.
      Figure 1-16. Project Properties
    2. In the Project Properties window, for Option categores select Optimization and for the Optimation level from the item list select 1.
    3. Click OK to close the Project Properties window.
      Figure 1-17. Optimization level
      Figure 1-18. Hardware Setup
  3. Set getting_started_pic32cm_jh01_cpro as the main project, and from Project Properties, select the latest compiler version (v4.35). Clean and build your project by clicking the highlighted icon.
    Figure 1-19. Clean and Build
  4. Program the application by clicking the highlighted icon.
    Figure 1-20. Program the Device