19.2 Device Code Protection Bit (CP)
The PIC32 family of devices feature code protection, which when enabled, prevents reading
of the Flash memory by an external programming device. Once code protection is enabled,
it can only be disabled by erasing the device with the Chip Erase command
(MCHP_ERASE
).
When programming a device that has opted to utilize code protection, the programming
device must perform verification prior to enabling code protection. Enabling code
protection must be the last step of the programming process. Location of the code
protection enable bits vary by device. Refer to “Special Features” chapter in the
specific device data sheet for details.
Note: Once code protection
is enabled, the Flash memory can no longer be read and can only be disabled by an
external programmer using the Chip Erase Command
(
MCHP_ERASE
).