4.2 Running the Client Bootloader Application

Follow these steps to program the Client bootloader application on one of the PIC32CM LS60 Curiosity Pro Evaluation Kits.

  1. Download the Client bootloader application (Click Here).
  2. Open the Client Bootloader Application project group (path: <downloaded path>/pic32cm_ls60_secure_firmware_upgrade/firmware/bootloader/bootloadergroup) using the MPLAB X IDE.
  3. To launch the project, click and expand bootloadergroup and then double-click on the bootloader_secure.
    Figure 4-1. Loading Client Bootloader Project
  4. To set the bootloader_secure project as the main project, right-click on the project and then select Set as Main Project.
    Figure 4-2. Selecting the Client Bootloader project as The Main Project
  5. The PIC32CM LS60 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 USB port on one of the PIC32CM LS60 Curiosity Pro Evaluation Kit to power and debug the PIC32CM LS60 Curiosity Pro Evaluation Kit.
    Figure 4-3. PIC32CM LS60 Curiosity Pro Board Hardware Setup
  6. In the Client Project Properties window, select Hardware Tool and Compiler, and in the MPLAB X IDE Project Properties window perform these tasks
    1. Under the left Categories section, select Conf: [pic32cm_ls60_cpro].
    2. In the right Configuration properties page, select the Connected Hardware Tool and Compiler Toolchain as shown below.
    Figure 4-4. Client Project Properties - PIC32CM LS60 Curiosity Pro Evaluation Kit
    Note: Make a note of the serial number of the Client Bootloader board to avoid confusion with the Host board.
  7. Click Apply, and then click OK.
  8. 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 4-5. Clean and Build Main Project
  9. Program the application by clicking the highlighted icon below.
    Figure 4-6. Programing the Device