Uploading Firmware to Your ChipKIT Boards

by joshwoldstad in Circuits > Microcontrollers

1386 Views, 9 Favorites, 0 Comments

Uploading Firmware to Your ChipKIT Boards

563cf68950e1b62d78000878.jpeg

There may come a time in your chipKIT explorations when you have to put some new firmware onto your board. Well, fear not. This Instructable will go through how to load firmware onto your board. (We're gonna be using the WF32)

In order for us to upload firmware you'll need a few things.

Finding the Firmware

wiki.png

The Digilent Wiki page has pages for the MicroController boards, each of those have a bunch of information. But in this case, we want to check out the Firmware section. Just click on the download to get a ZIP file and extract the HEX file. Be sure to remember where you saved the file.

Attaching Your ChipKIT Programmer

WP_20151106_008.jpg

Now it's time to use the mini-Cable to connect the chipKIT PGM to the computer.

  1. Plug the cable into the computer via the USB connector
  2. Now attach the chipKIT PGM to the mini connector side.

It will light up with red and orange lights (The orange lights will disappear in a few seconds).

Attaching the ChipKIT PGM to the ChipKIT WF32

WP_20151106_009.jpg
WP_20151106_011.jpg

On the chipKIT PGM you can see that their is a white arrow next to one of the pins, that's pin 1. On the WF32, you can see at the JP2 location there are 6 pin connectors, with 1 having a square border instead of circle, that is pin connector 1.

Attach the chipKIT PGM and the chipKIT WF32 with pin 1 (on the PGM) connected to pin connector 1 (on the WF32).

Finding the Board Microcontroller

16181227086_fbb98cef8f_o.png

In order to upload firmware to the Microcontroller, we need to know what kind of chip is on the board.

You can check out the product page to find the Microcontroller that the board has on it. Or you can look at the writing on the chip to see what kind it is.

For the WF32, the chip is the PIC32MX695F512L. Be sure to record this, as we'll need it later.

Opening the Hex File.

mplab1.png
mplab2.png
mplab2.5.png

At this point, everything we have to do now is using MPLAB X. So if you haven't already downloaded it click here.

After you open it, it should look like the picture above.

Now we want to import the HEX file. Click on the IMPORT button on the left hand side and click on the Pre-built HEX/ELF file. This will take you to a new page. Click browse and find the file you downloaded.

Finishing Up

mplab3.5.png
mplab4.png

  1. Select the Device and find the Microcontroller number from the earlier step (PIC32MX695F512L for us). You'll have to select the PIC32 device family.
  2. In Hardware Tool, go to other tools and click the chipKITProgrammer selection
  3. Then hit the Next button
  4. Now pick your desired option of the checklist and hit finish.

This will take you back to the main page of MPLAB and you're all set!