5 Replies Latest reply on Jul 19, 2018 6:40 AM by user_3580241

    Not able to perform sector erase in S25FL256SAGMFI011

    sach_3001531

      Hello,

      We are using S25Fl256SAGMFI011 for our project. using SPI commands we could write and read the flash, but we are not able to perform sector erase.

       

      I tried locations 0x0000, 0x10000, 0x40000 and 0x80000. For all the locations the case is same.

       

      I checked status register1, it shows all 0s, except for the SRWD bit. Status register 2 is all 0. To make sure that I am doing ok with timing, I even gave 2 seconds delay after the erase. Nothing works. Any suggestions on what else can be checked would help.

        • 1. Re: Not able to perform sector erase in S25FL256SAGMFI011
          sach_3001531

          One more thing, that I want to add here is my SPI is not working either in mode 0 or mode 3. I could make it work only in mode 2 i.e CPOL=1 and CPHA=0

          • 2. Re: Not able to perform sector erase in S25FL256SAGMFI011
            krishnag_71

            Hello Sanat,

             

            Our device S25FL256SAGMFI works only in mode 0 and 3. We recommend not to operate in any other mode.

            Can you let us know the contents of CR1 register. please use command RDCR (35h) and let us know the value you are reading.

            Also check the command PPBRD ( E2h) for the locations 0x0000, 0x10000, 0x40000 and 0x80000 and let us know what you are observing.

             

            Please refer section 9.8.5 "PPB read" ( page 115) in the datasheet for the PPBRD command sequence.

             

            Thanks,

            Krishna.

            • 3. Re: Not able to perform sector erase in S25FL256SAGMFI011
              sach_3001531

              Hi Krishna,

              Thank you for your reply.

              We are using DSP from TI and I checked other projects, where they are using TI DSPs with cypress device. There also they are working on mode 2. When checked the reference manual timing diagram of DSP SPI, I see that mode 2 and mode 3 of DSP are identical to mode 0 and mode 3 of cypress. So I do not think any issue is there with modes. Moreover my READ and WRITE commands are working.

               

              I checked the content of status register(0x05), config register(0x35) and PPB register(0xE2).

              Status register all bits are 0, except for SRWD = 1. We have no idea, how that became 1, since we never tried writing to that and default value is supposed to be 0.

              Config Register -> all bits are 0

              PPB register -> 0xFF. (I do not believe that this has any problem, since I am able to program)

               

              Are we missing anything here.

               

              Do you have a sample code for this chip written in C? If yes, Is it possible to share that with us?

               

              Best Regards,

              Sanat

              • 4. Re: Not able to perform sector erase in S25FL256SAGMFI011
                sach_3001531

                Hi Krishna,

                The issue was with the connector that we were using to communicate with the flash. We put a biasing capacitor between the VCC and Ground and it started working fine.

                Thanks again for your support.

                 

                Best Regards,

                Sanat

                • 5. Re: Not able to perform sector erase in S25FL256SAGMFI011
                  user_3580241

                  I am with the same problem. This NOR FLASH don´t work well, not erase correctly, anybody can help me, I posted many times about this an anyone knows how to fix this. I am waiting too so fasta about this. I am working five days and this NOR not work, I can read 9F and 90 commands and i do chip erase, turn off the board, turn on the board, change do erase sector work and i can read the data writed before.