Datasheet
PSoC Designer IDE Guide, Document # 001-42655 Rev *B 133
8. Flash Protection
Flash Program Memory Protection (FPMP) allows you to select one of four protection (or security)
modes for each 64-byte block within the Flash, based upon the particular application.
8.1 FPMP and PSoC Designer
PSoC Designer has a rudimentary mechanism that enables you to set security modes in your Flash
program memory. The security (or protection) is set from within PSoC Designer on a per project
basis. The protection mechanism is implemented using the System Supervisor Call instruction
(SSC). When this command is executed, two bits of data programmed into the Flash selects the pro-
tection mode. Table 8-1 lists the available protection options.
A simple text file called flashsecurity.txt is used as the medium for the Flash security. This text file
contains comments describing how to alter the Flash security. PSoC Designer validates the correct-
ness of the Flash security data before it is used.
NOTE: The flashsecurity.txt file for PSoC Designer v. 2.xx and higher projects that use Flash writes
must be set to the correct protection modes. The defaults are set to full-protect mode. To change the
protection mode, the part must be bulk erased and re-programmed using the flash security settings.
Table 8-1. Flash Program Memory Protection Options
Mode Bits Mode Name External Read External Write Internal Write Mode Code
00 Unprotected Enabled Enabled Enabled U
01 Factory Upgrade Disabled Enabled Enabled F
10 Field Upgrade Disabled Disabled Enabled R
11 Full Protection Disabled Disabled Disabled W