Searching for error message in
PICKit3 Programmer/Debugger User's Guide gives me this:
9.3.1 Read/Write Error ActionsIf you receive a read or write error:
1. Did you hit Abort? This may produce read/write errors.
2. Try the action again. It may be a one-time error.
3. Ensure that the target is powered and at the correct voltage levels for the device. See the device data sheet for required device voltage levels.
Please check SKPIC32's VDD voltage. Is it under 3.6V?4. Ensure that the debugger-to-target connection is correct (PGC and PGD are
connected.)
5. For write failures, ensure that ¡°Erase all before Program¡± is checked on the
Program Memory tab of the Settings dialog.
6. Ensure that the cables used are of the correct length.
Many people complaint about pressing the black button on PICKit3 giving this problem too...
microchip forum post