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.

  1. Ensure code protection is off in your code. Also check the Configuration Bits window settings (Window > Target Memory Views > Configuration Bits.)
  2. Under Make and Program Device Project
    , select Erase device memory. This will erase the configuration bit settings.
  3. Reprogram the device.

If programming succeeds, then code protect was the issue.