Fixing PK2Error0022: PICkit 2 not found in PICKIT2

Microcontroller Topics
Post Reply
User avatar
TRONICLK
Captain
Captain
Posts: 140
Joined: Fri Oct 12, 2018 2:04 am
Contact:

Fixing PK2Error0022: PICkit 2 not found in PICKIT2

Post by TRONICLK » Tue Nov 05, 2013 9:53 pm

After trying to erase/reflash new firmware on your PICKIT2 (Both enhanced and mini versions), if you see the message "PK2Error0022: PICkit 2 not found", the best way to fix it is to take to our company and get assistance from a professional technician to fix that. However, if you are in a distance (we have customers worldwide) it is too costly. So I would like to suggest you the procedure to fix the issue yourself. Please note to follow the steps carefully. In 90% of the cases, we found this procedure works.

You will need following software/firmware which can be found at the Microchip download page.
1. PICkit 2 V2.61 Install
2. PICkit 2 Firmware V2.32

NOTE: This Procedure is NOT recommended for PICkit 2 units that are operating normally. If your PICKIT2 is working and you need to upgrade the firmware, please see Upgrade firmware on PICKIT2 (not recommended).If any step does not work as expected, DON'T push on, STOP and ask for help.

1. Close MPLAB and all other Microchip programs. Make sure VmWare or any other virtual PC applications are stopped and closed. Close any large or resource hungry applications.

2. UNINSTALL any Unknown USB Devices (or any USB device with a red X or yellow/black !)* in the Windows Device Manager.

3. Unplug as many USB devices as possible EXCEPT for your keyboard and mouse. You MUST unplug all Microchip programmers or devices using a Microchip bootloader

4. Make sure you have UNPLUGGED the PICkit 2 completely. Leave the lead connected to a known good USB port, Initially make sure it is not through a hub. Caution: front panel USB ports that share a bay with a camera card reader or if there are more than two of them, usually have a hub internal to the PC.

5. Start the current version of the PICkit 2 Programmer software:
- You should get a PINK 'PICkit 2 not found' . . . warning

6. Hold down the little button on the PICkit 2 and plug it into the USB lead ONLY. Keep holding the button.
- You should get a Hardware Attachment sound from Windows.
- You MAY get Message baloons telling you Windows is adding new hardware. If so wait for the 'Your new hardware is ready to use one'
- The PICkit 2 green power LED should be ON and the target LED OFF. The busy LED should be flashing at about 1Hz.

7. Let go of the button and check the LEDs are still as above.

8. In the PICkit 2 Programmer software do 'Tools' => 'Check Communication'.
- You should get a YELLOW 'The PICkit 2 has no Operating System' . . . warning

9. In the PICkit 2 Programmer software do 'Tools' => 'Download PICkit 2 Operating System'.
- You should get a file dialog offering you a .hex file. Mine has 'PK2V023200.hex'. Yours should be the same or newer (higher number).

10. Make SURE that the power is not going to be interrupted or the cable disconnected then select that firmware file and click Open.
- You should get a BLUE downloading message,
- followed by a GREEN verifying message,
- followed by a normal PICkit 2 connected message on a white background.
- The whole sequence should take about 20 seconds.

11. Close the application, and disconnect the PICkit 2. Wait 10 seconds and reconnect it.

12. Reopen the application and check it is working normally.

13. Select the correct device family for your target.

14. Connect your target board following the normal procedure.

15. Do 'Check Communications'
- Your target device should be identified if it is not a baseline part.

If any of the steps fails, report the exact error message or symptoms here. If in step 9 you cant find the firmware grab it from the PICkit 2 page and unzip it into a folder you know you can find. If step 10 fails to complete in 5 minutes, report the failure here. If you want to try again ALWAYS restart from step 1. You may try a simple repeat, a different USB lead, or port, connecting via a powered or unpowered hub.
Post Reply

Return to “Microcontrollers”