I have the same doubt and I am really SURPRISED that noone has answered this question.
PSoC1 Code protection is really easy:
Go to Workspace Explorer and open flashsecurity.txt in your project. You are able to change the protection setting for each block of flash, with the following options:
SROM READ EXTERNAL READ EXTERNAL WRITE INTERNAL WRITE
R: Field Upgrade
SROM READ EXTERNAL READ EXTERNAL WRITEINTERNAL WRITE
SROM READ EXTERNAL READEXTERNAL WRITE INTERNAL WRITE
U: Unprotected SROM READ EXTERNAL READ EXTERNAL WRITE INTERNAL WRITE
The Flash settings will be embedded withing the HEX file and automatically programmed according to while programming.
cp.png 9.7 K
Thaknyou Rolf. This really helps. Other documentation was little confusing.
So we need to keep setting to "w" to prevent theft of our firmware!