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
- Open MPLABX IPE v6.25 or above.
- Connect the board to the PC through a USB cable.
- Make sure the pins 1 and 2 are shorted on jumpers J14 and J15.
- 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.
- Click on Browse.
-
To program a precompiled hex file (for example, the
central_connapplication), navigate to<MPLAB Discover download path>/wireless_apps_pic32_bw1/apps/ble/central/central_conn/hex/and select the required.hexfile.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.hexfile - Click on the Program to load the hex file into the device.
- Wait for the programming to be completed, which is indicated in the output window.
Programming the Application Using MPLAB X IDE
- Open MPLABX IDE v6.25 or above.
- Connect the board to the PC through a USB cable.
- Make sure the pins 1 and 2 are shorted on jumpers J14 and J15.
- Select File>Open Project
- To browse a project (for example, the
central_connapplication), navigate to<MPLAB Discover download path>/wireless_apps_pic32_bw1/apps/ble/central/central_conn/firmware/and select thecentral_conn.Xproject folder. - Browse to project location of choice (In this
example, it is “
ble_wifi_combo_oob”) project - 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.
