8 Flashing hex from MPLAB X IPE and MPLAB X IDE

The PIC32WM-BW1 Curiosity board is pre-programmed with Out-of-the-Box demo example. Ensure to follow the steps below to reprogram the OOB Demo using the provided .hex file (PIC32WM-BW1_EAPv1.0\Pre-compile OOB hex)

Programming the .hex File using MPLAB X IPE

  1. Open MPLABX IPE v6.25 or above.
  2. Connect the board to the PC through a USB cable.
  3. Make sure the pins 1 and 2 are shorted on jumpers J14 and J15.
  4. In the MPLAB IPE window, select the device “PIC32WM-BW1”. The tools tab gets automatically filled if the board is connected to the computer. Click on the Apply>Connect.
  5. Click on Browse.
  6. To program a precompiled hex file (for example, the central_conn application), navigate to <MPLAB Discover download path>/wireless_apps_pic32_bw1/apps/ble/central/central_conn/hex/ and select the required .hex file.

    Optionally, to program a newly compiled hex file, go to <MPLAB Discover download path>/wireless_apps_pic32_bw1/apps/ble/central_conn/firmware/central_conn.X/dist/default/production/ and select the generated .hex file

  7. Click on the Program to load the hex file into the device.
  8. Wait for the programming to be completed, which is indicated in the output window.

Programming the Application Using MPLAB X IDE

  1. Open MPLABX IDE v6.25 or above.
  2. Connect the board to the PC through a USB cable.
  3. Make sure the pins 1 and 2 are shorted on jumpers J14 and J15.
  4. Select File>Open Project
  5. To browse a project (for example, the central_conn application), navigate to <MPLAB Discover download path>/wireless_apps_pic32_bw1/apps/ble/central/central_conn/firmware/ and select the central_conn.X project folder.
  6. Browse to project location of choice (In this example, it is “ble_wifi_combo_oob”) project
  7. Open project properties:
    • Select PIC32WM_BW1 as device.
    • Select PIC32WM-BW1 Curiosity Board as hardware tool for programming
    • Ensure correct DFP v1.0.29 is selected as mentioned in the Tools and Harmony components
    • Select XC32 compiler v4.60 or above.
    • Right click the project from Project window and select Build. After the build is successful, right-click the project and select Make and Program Device.

For more details on finding the Harmony content path, refer to Installing the MCC Plugin section from Related Links.