15.18 Device Code Protection Bit (CP)

The PIC32CX-BZ3 family of devices features code protection, which, when the user enables it, prevents reading of the Flash memory by an external programming device (SWD through DSU).

If enabling code protection, the user can only disable it by erasing the device with the Chip Erase command through an external programmer. See Device Service Unit (DSU) from Related Links.

When programming a device that opts to utilize code protection, the external programming device must perform verification prior to enabling code protection. Enabling code protection must be the last step of the programming process. For the location of the code protection enable bits, see PIC32CX-BZ3 Programming Specification and System Configuration Registers (CFG) from Related Links.