2 Replies Latest reply on Jan 22, 2017 10:19 PM by khullar.sonam_2245481

    Overwrite Data in Flash

    khullar.sonam_2245481

      Hello, I am new to NOR Flash technology. I am planning to use S25FS256S for my application for data storage. I would appriciate if someone would clarify some basic doubts about flash write and erase. 1.Can I overwrite a page (256 byte) of data instead of going for erase of entire 4kB sector followed by write? 2.Can you refer me some material that will make it simpler to understand Flash read/write/erase process,especially the ones provided by Cypress? Thank You in advance for attending my query. -- Regards, Sonam

        • 1. Re: Overwrite Data in Flash
          gsns

          Hi,

             

          1.Can I overwrite a page (256 byte) of data instead of going for erase of entire 4kB sector followed by write?

             

          A. No you can overwrite a page with our erasing the sector. Basically overwriting or updating involves erase and then writing.It is because of the nature of flash devices. In flash you can not transition from 0 to 1. It is always 1 to 0. So when you want to overwrite, you need you will make all the locations as 1 and then make them zero where ever it is necessary. Since erase is involved, the lowest section of flash you can erase is sector. It is not possible to erase individual pages.

             

          2.Can you refer me some material that will make it simpler to understand Flash read/write/erase process,especially the ones provided by Cypress?

             

          A) As you are planning to use S25FS256S please refer the FS-S programming guide. Please refer the link below and let us know if you need any clarifications. Hope it helps you.

             

          http://www.cypress.com/file/197336/download

             

          Thanks,

             

          Krishna.

          • 2. Re: Overwrite Data in Flash
            khullar.sonam_2245481
                    Hello Krishna, Thank You for your response. Yes it helps for now. Regards, Sonam