8.2.1 Read/Write Error Actions
If you receive a read or write error:
- Did you click Debug > Reset? This may produce read/write errors.
- Try the action again. It may be a one-time error.
- 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.
- Ensure that the debugger-to-target connection is correct (PGC and PGD are connected).
- For write failures, ensure that “Erase all before Program” is checked on the Program Options for the debugger in the Project Properties window.
- Ensure that the cable(s) are of the correct length.