3 Replies Latest reply on Feb 5, 2020 5:31 AM by RakshithM_16

    PSoC4_WriteProtection value for flashProtect array

    JiOs_3615486

      The COM documentation is sparse here:

       

      int PSoC4_WriteProtection(object flashProtect, object chipProtect, outstring strError)

       

      I understand the chipProtect values (thanks to the Perl script), but what are the values for flashProtect?  I am working with CYBLE-222014.  Using PSoC Creator 3.3 shows only 2 values, U & W.  I don't need protected, but the example code simple sets everything to 0xFF, which is not helpful.

       

      I want to set the chip to Protected, array to unprotected.  What should the code involving PSoC4_WriteProtection look like ?