cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

Hi,

How should I properly secure my code to prevent it from cloning ext. Is it sufficient to do the following:

- set flash security to "W" for bootloader portion
- set flash security to R for all other, non-bootloader portion
- Debug Select = GPIO, Enable Device Protection = On
- Miniprog3: Enable Chip Lock in the programmer options and program the device

Are those steps sufficient or it's still possible the read the flash with debugger...?

Do I need to program Write Once NV Latch to be 100% sure that code is secured?

Regards,

Tomi

0 Likes
Reply
1 Solution
Moderator
Moderator

With the above settings, external read, external write, internal write and debuging interface will be disabled in the project. This will secure the proprietary firmware. Once you program the WO NVL with the correct 32-bit key, the part cannot be programmed further, and becomes an OTP (One Time Programmable) device. It permanently gates off the ability to erase or alter the contents of the latch. Hence OTP should be exercised with extreme caution considering these effects.

View solution in original post

0 Likes
Reply
3 Replies
Moderator
Moderator

With the above settings, external read, external write, internal write and debuging interface will be disabled in the project. This will secure the proprietary firmware. Once you program the WO NVL with the correct 32-bit key, the part cannot be programmed further, and becomes an OTP (One Time Programmable) device. It permanently gates off the ability to erase or alter the contents of the latch. Hence OTP should be exercised with extreme caution considering these effects.

View solution in original post

0 Likes
Reply
New Contributor II

Programming steps:

- set flash security to "W" for bootloader portion

- set flash security to R for all other, non-bootloader portion

- Debug Select = GPIO, Enable Device Protection = On

- Miniprog3: Enable Chip Lock in the programmer options and program the device

In this case I can program the device multiple times and with miniprog3 I'm not able to read back the flash content (I get xxxxx instead of actual flash values). I'm asking if these "Programming steps" are enough to protect the code from cloning. If that's enough than I would't use WO NVL to lock the device.

Regards,

Tomi

0 Likes
Reply
Moderator
Moderator

Yes, it will secure the proprietary code.

0 Likes
Reply