Skip to content
English
  • There are no suggestions because the search field is empty.

How do I use the PICKit 5?

Using the PK5

Fleetwatch FMS · Programming Tools
PICkit 5 Program-to-Go Guide
How to load firmware images onto a microSD card and program devices with the PICkit 5 using the MPLAB PTG mobile app, with no computer needed at the vehicle or device.
Based on S&A Systems PICkit5 Support Documentation by Connor Landrum, Revision 1.00 (8/17/2023).

Two Ways to Use the PICkit 5

Recommended
Mobile app
Select images and start programming from your phone with the MPLAB PTG app. This guide covers this method.
Alternative
Same as the PICkit 4
The PICkit 5 can work exactly like the PICkit 4 (see the PICkit 4 guide), but it needs MPLAB X version 6.xx to set it to program-to-go mode.

All LED codes on the PICkit 5 are the same as on the PICkit 4. See the LED Guide at the end of this article.

Part 1: Load Images onto the SD Card

1
Copy the image’s _ptg folder to the SD card.
Get the image files from Fleetwatch Support. Open the folder for the image you want, then copy only the folder ending in _ptg to your SD card.
Do not copy the conf.ptg file.
Example: loading the A301A30 version 4.04 image.
a. Select the image folder
PicKit image folders with the A301A30v404 folder circled
b. Copy the _ptg folder (not conf.ptg)
A301A30v404 folder with the A301A30v404_ptg folder circled and conf.ptg crossed out
c. Paste it onto the SD card
SD card showing the A301A30v404_ptg folder
The PICkit 5 can store multiple images on one SD card. Repeat this step for any other images you want.
2
Add a dummy folder last, named “DoNotSelectt”.
The mobile app always drops the last character of the last folder added, so that folder won’t work. A dummy folder takes that spot so your real images aren’t affected. The extra “t” is intentional. SD card with several _ptg image folders and a DoNotSelectt folder
Adding more images later? Delete the DoNotSelectt folder, add your new images, then add DoNotSelectt again so it’s always the last folder added.

Part 2: Connect with the MPLAB PTG App

3
Install the MPLAB PTG app.
Download MPLAB PTG from your phone’s app store. The app icon is shown at right. Screenshots in this guide are from an iPhone.
Phone home screen showing the MPLAB PTG app icon
4
Turn on Bluetooth and power the PICkit 5.
Enable Bluetooth on your phone. Power the PICkit 5 in any of these ways:
• From a PC with a USB-C cable
• Through its ICSP connection to a target device that has power
• Both at once
Programming only works when the PICkit 5 is connected to the target device through ICSP. USB-C alone powers it but can’t program.
5
Open the app.
You’ll see the MPLAB PTG shield logo.
MPLAB PTG app start screen with the shield logo
6
Select your PICkit 5.
If the screen doesn’t change on its own within a few seconds, tap the shield logo to open Available Devices, then select your device.
• The range is very short. Hold your phone within a foot or two of the PICkit 5.
• Not sure which device is yours? Match the serial number (SN) in the list to the serial number on the back of the PICkit 5.
Available Devices screen with a PICkit serial number circled
7
Turn on PTG mode.
The status screen shows useful information, including the image currently set to program. If the PTG mode switch is off (gray), tap it to turn it on (green).
PICkit5 Status screen with the PTG mode switch circled and turned on

Part 3: Select an Image and Program

8
Tap Browse SD card.
The button is at the bottom left of the status screen.
PICkit5 Status screen with the Browse SD card button circled
9
Select an image.
The File Manager lists the images on your SD card. Use the search bar at the top to find an image by its folder name, then tap it to select it.
The example shows sample images (GoRight.ptg, GoLeft.ptg). You’ll see your own image names.
File Manager screen listing sample images with GoLeft.ptg circled
10
Tap Program.
The Operation screen opens with your selected image. Before tapping Program, make sure the PICkit 5 is connected to the target device through ICSP and the device has power.
Operation screen with the Program button circled
11
Wait while it programs.
A “Programming started!” notification appears. After a short delay, the PICkit 5 light changes to blinking purple while it programs the device. Don’t disconnect anything.
Operation screen showing a Programming started notification
12
Confirm it finished.
When programming is done, the notification disappears and the light returns to slow flashing green, ready to program again. If the light flashes red rapidly, the programming failed.
Programming more devices? Just repeat with the next device. The PICkit 5 keeps using the image you selected in step 9, even after it’s powered off. To switch images, repeat steps 5–9.

LED Guide

Light Meaning
Solid blue Powered on, but not in program-to-go mode
Slow flashing green Ready to program, or programming finished successfully
Blinking purple Programming in progress
Rapid flashing red Before programming: no image is selected. After programming: the flash failed.

Additional Documentation

More PICkit 5 documentation is available on Microchip’s website:

Questions about programming with the PICkit 5? Contact Fleetwatch Support.