3 Replies Latest reply on Aug 2, 2011 5:09 AM by shivashish.prarthi

    PSoC1 code protection

    david.drori

      We wish to protect our embedded PSoC1 code against attempts to read the code out of programmed chips and reverse engineer it and copy it to other devices. Can anyone point me to documentation describing the level of code protection and any settings that may be required during device programming in order to ensure that code cannot be read out of programmed PSoC1 devices?

         

      Regards,

         

      David Drori

        • 1. Re: PSoC1 code protection
          paulo.santos

          I have the same doubt and I am really SURPRISED that noone has answered this question.
           

          • 2. Re: PSoC1 code protection
            user_2405011

            Hi,

               

            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:

               

            W: Full:          SROM READ                  EXTERNAL READ                 EXTERNAL WRITE                 INTERNAL WRITE    
            R: Field Upgrade          SROM READ                   EXTERNAL READ                 EXTERNAL WRITE        INTERNAL WRITE
            F: Factory            SROM READ                 EXTERNAL READ         EXTERNAL 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.

               

            Regards,
            Rolf
             

            • 3. Re: PSoC1 code protection
              shivashish.prarthi

               Thaknyou Rolf. This really helps. Other documentation was little confusing.

                 

              So we need to keep setting to "w" to prevent theft of our firmware!