5.4 Using Programmer-To-Go
When you are ready to start programming devices using the MPLAB PICkit 4 in PTG mode, complete the following steps:
- Connect the PICkit 4 tool, with a microSDHC card inserted, to the target board with the device specified in your project.
- Ensure that you have the appropriate
connections to the device for Programmer-To-Go:
- PICkit 4 is connected via appropriate programming interface connector on the target board. Ensure you match pin 1 on the target board with the pin 1 indicator on the PICkit 4.
- The target board is powered from either the PICkit 4 or a power supply, depending on your project properties selection.
Note: In Programmer-To-Go mode, if the target is providing power to the MPLAB PICkit 4, the target board must be capable of providing 350 mA of power for the PICkit 4 tool to operate properly. - When the PICkit 4 LED changes to a blinking green state, it is ready to program. If no image is on the microSDHC card, the MPLAB PICkit 4 tool blinks red to indicate a PTG error.
- To start programming the device, firmly press (not hold) on the center of PICkit 4 shield (logo) on the front of the tool. After the tool checks the device ID, the LED changes to blinking purple indicating that it is programming the device.
- When programming is complete, the LED changes back to a flashing green to indicate a successful programming/verify operation. It is now ready for the next programming operation.
Note: A long press on PICkit 4 pushbutton
reinitializes the tool. This can be used to reinitialize the PICkit 4 after detecting an
error. It can also be used if you want to swap another microSDHC card with a different
Programmer-To-Go image.
LED Status Sequence
When the PICkit 4 is in Programmer-To-Go mode and is properly connected to the target board, the following sequence occurs:
Status | Meaning |
---|---|
Fast blinking yellow | Initializing power settings. |
Blinking green | PICkit 4 is ready to program or programming completed successfully. |
Blinking purple | Programming in progress. |
Blinking red | Errors during initializing:
|