6.9 Configuring Code Protection

The CP bit (bit 29) of FCPN0 in BCFG NVR page determines the code protection. When the CP bit is set, the device is locked from programming and debugging. Only the chip erase can return the device to the normal programming and debugging condition.

As this code protection is part of the BCFG NVR Flash page, the steps mentioned in “Programming whole flash (PFM and BFM regions or only PFM regions)” can be followed to enable Code Protection.