3.6 Running a Precompiled Application Example

This section gives a detail explanation on how to open, build and program an existing application example.

Prerequisites

  1. MPLAB® X IDE and MPLAB XC Compilers (for the link to install MPLAB® X IDE and MPLAB XC Compilers, refer to Development Tools and Compilers in Reference Documentation section from Related Links).
  2. Device Family Pack (for steps to install DFP, refer to the Installing Device Family Pack section from Related Links).
  3. MPLAB Code Configurator (MCC) Plugin (for steps to install MCC Plugin, refer to the Installing the MCC Plugin section from Related Links).
  4. Harmony 3 Dependencies (for steps to install Harmony 3 Dependencies, refer to the Installing Harmony 3 Dependencies section from Related Links).

Download Application Example from MPLAB Discover

  1. Open Microchip MPLAB Discover by clicking the button below as illustrated in the following figure.
    Figure 3-25. Microchip Discover
  2. Enter “wireless_apps_pic32_bw1”. Then press <enter>.
    Figure 3-26. wireless_apps_pic32_bw1
  3. It will list all application examples.
  4. Click one of them and then choose “Download”.
  5. Then it will download the “wireless_apps_pic32_bw1-x.x.x.zip” which contains all the application examples:
  6. To program a precompiled .hex file or newly compiled application hex file, refer to chapter Flashing hex from MPLAB X IPE and MPLAB X IDE.

COM Port Setup

To resolve COM port issues that prevent the output of text to the Tera Term terminal using the PIC32WM-BW1 Curiosity Board, follow these steps:

  1. Close Tera Term and unplug the PIC32WM-BW1 Curiosity Board from the computer.
  2. Open Device Manager.
    Figure 3-27. Device Manager
  3. Plug the Curiosity board back into the computer.
  4. In the Tera Term window, select “Serial”.
    1. From “Port:” drop-down list, select USB Serial Device.
    Figure 3-28. USB Serial Port Selection
  5. In the Setup tab, perform the following steps:
    1. From “Port:” drop-down list, select the USB Serial Device.
    2. From the “Speed:” drop-down list, select 115200.
    3. Click New setting to apply the changes.
    Figure 3-29. Serial Port Setup and Connection
  6. Press the reset button on the board to see text on the terminal if the curiosity board is programmed.
    Figure 3-30. Tera Term Logs