12.5.8 Programming Errors
If you code protect a device and then attempt to program it, you will receive a programming failure error for an address region.
The Erase Device Memory Main Project
function can help
to determine if this is the programming issue.
- Ensure code protection is off in your code. Also check the Configuration Bits window settings ( .)
- Under Make and Program Device Project , select Erase device memory. This will erase the configuration bit settings.
- Reprogram the device.
If programming succeeds, then code protect was the issue.