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
b. Copy the _ptg folder (not conf.ptg)
c. Paste it onto the SD card
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.
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 |
|
||
| 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 |
|
||
| 6 |
|
||
| 7 |
|
Part 3: Select an Image and Program
| 8 |
|
||
| 9 |
|
||
| 10 |
|
||
| 11 |
|
||
| 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.