1 Reply Latest reply on Dec 19, 2017 11:01 PM by krishnag_71

    How can i reset BP2-0 of SR1 to 0 (S25FL127S) ?

      Hi, i'm trying to set to 0 the value of Block protection bits of the STATUS REGISTER 1, but if i write 0 directly in the register than the memory stop working.


      Which is the correct way to set to 0 the value of these bit ?


      my current values of the main registers are:


      STATUS REGISTER 1:                            00011100

      CONFIGURATION REGISTER1:            11101100

      STATUS REGISTER 2:                            11000000

        • 1. Re: How can i reset BP2-0 of SR1 to 0 (S25FL127S) ?

          Hello Stefano,


          The CR1[3] = 1 means that the BP bits are volatile and  can be written.

          Below is the steps to write to status register.


          1. WREN (06h)

          2. WRR ( 01h)

          3. 0x00 ( value to be written to Status register)

          4. CS# must be driven to the logic high state after the eighth, sixteenth, or twenty-fourth bit of data has been latched. If not, the Write Registers (WRR) command is not executed. For status register it has to be  after eighth.

          Please refer section 9.3.7 " Write Registers " ( page 78) in the datasheet for the WRR command sequence.

          If you write 0x00 no sector will be protected. In case if you wish to protect certain section of the memory you need to change the BP bits accordingly. Please refer section 8.3 " Block protection "  in the datasheet to determine which part of the memory will be protected depending on the combination of BP bits.