There may be a problem programming in general. As a test, switch to Run mode using
the icon and program the target with the simplest application possible (for example,
a program to blink an LED). If the program will not run, then you know that
something is wrong with the target setup.
It is possible that the target device has been damaged in some way (for example,
over current). Development environments are notoriously hostile to components.
Consider trying another target board.
Application is overwriting debugger reserved resources. Check your linker scripts
and map files to ensure there is no conflict between the RAM and FLASH areas used by
application and debugger.
Review debugger setup to ensure proper application setup. For more information,
see 4 Operation.
Your program speed may be set too
high for your circuit. In MPLAB X IDE, go to
File>Project Properties, select ICD
5 in “Categories,” then “Program Options,” “Program Speed” and
select a slower speed from the drop-down menu. The default is “Normal.”Figure 6-1. Program Speed Option
There may be certain situations where the debugger is not operating properly and
firmware may need to be downloaded or the debugger needs to be reprogrammed. See the
following sections to determine additional actions.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.