MPLAB® Snap Troubleshooting

If you are having problems with MPLAB® Snap In-Circuit Debugger operation, start here.

Refer to the MPLAB PICkit™ 4 online help section on "Troubleshooting First Steps". From there you can navigate to “Some Questions to Answer First” and “Top Reasons Why You Can’t Debug.” For general issues involving bootloader mode and emergency boot firmware recovery, see the following sections.

General

  1. It is possible that the error was a one-time event. Try the operation again.
  2. There may be a problem programming in general. As a test, switch to 'Run' mode in MPLAB X IDE using the icon and program the target with the simplest application possible (e.g., a program to blink an LED). If the program will not run, then you know that something is wrong with the target setup.
  3. It is possible that the target device has been damaged in some way (e.g., over current). Development environments are notoriously hostile to components. Consider trying another target board.
  4. Microchip offers demonstration boards to support most of its microcontrollers. Consider using one of these applications, which are known to work, to verify correct MPLAB Snap In-Circuit Debugger functionality.
  5. Review debugger setup to ensure proper application setup. For more information, see the “Operation” section of the MPLAB PICkit 4 help or PDF.
  6. Your program speed may be set too high for your circuit. In MPLAB X IDE, go to File > Project Properties. Select 'Snap' in "Categories", then 'Program Options' in "Option categories". Select a slower speed from the "Program Speed" drop-down menu. The default is 'Normal'. In MPLAB IPE, the "Program Speed" option can be found in the Advanced Mode, 'Settings' tab.
  7. There may be certain situations where the debugger is not operating properly and needs to be reprogrammed. See the following section.

The Hardware Tool Emergency Boot Firmware Recovery Utility

Brick.jpg CAUTION
Debugger Failure.
Only use this utility to restore hardware tool boot firmware to its factory state.
Use only if your hardware tool no longer functions on any machine


The debugger may need to be forced into recovery boot mode (reprogrammed) in rare situations, for example, if none of the LEDs are lit when the debugger is connected to the computer.

You must use MPLAB X IDE v5.05 or greater to use the emergency recovery utility for the MPLAB Snap.

Carefully follow the instructions found in MPLAB X IDE under the main menu option Debug > Hardware Tool Emergency Boot Firmware Recovery. After the Warning screen, select 'MPLAB Snap'.

Figure 1: Selecting Emergency Utility

DebugEmergencyRecoveryshort.png

Figure 2 shows where the emergency recovery jumper is located on the board.

Figure 2: Emergency Recovery Jumper

emergencyrecoveryjumpers.png

If the procedure was successful, the recovery wizard displays a success screen. MPLAB Snap is now operational and able to communicate with the MPLAB X IDE.

If the procedure fails, try it again. If it fails a second time, contact Microchip Support at http://support.microchip.com.

© 2018 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.