S25FL127 page write procedure

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
alpe_4779926
Level 1
Level 1
First like given

Hello all,

     I am planning to use a S25FL127 nor flash device. I would like to understand if the page program command requires a previous sector erase. For example consider this sequence: I started erasing a 4KB sector, then I write its first page. Some time after that I need to program the second page of the same sector, do I have to erase the whole sector for that (if not, do the previous stored page is modified)?

Thanks in advance for the help!

0 Likes
1 Solution
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hello,

No, it is not required to perform sector erase if you are programming page 1 first and page 2 after some time. Sector erase is required only when you re-program an already programmed page.

In flash memory devices, program operation can change a bit from 1 to 0. It cannot change a bit from 0 to 1. Only an erase operation can change the bits from 0 to 1. So, as long as you are programming erased memory locations inside a sector, it is not required to perform sector erase. If you want to change data already programmed into the flash, then you have to perform sector erase. Please note, a sector erase operation will erase all pages inside a particular sector. If you need to change data only in one page, you have to back up data from other pages before performing sector erase operation. After sector erase operation is finished, program data back to flash.

I hope the above information answers your query. Please feel free to ask if you need any clarifications.

Thanks and Regards,

Sudheesh

View solution in original post

2 Replies
SudheeshK
Moderator
Moderator
Moderator
250 sign-ins First question asked 750 replies posted

Hello,

No, it is not required to perform sector erase if you are programming page 1 first and page 2 after some time. Sector erase is required only when you re-program an already programmed page.

In flash memory devices, program operation can change a bit from 1 to 0. It cannot change a bit from 0 to 1. Only an erase operation can change the bits from 0 to 1. So, as long as you are programming erased memory locations inside a sector, it is not required to perform sector erase. If you want to change data already programmed into the flash, then you have to perform sector erase. Please note, a sector erase operation will erase all pages inside a particular sector. If you need to change data only in one page, you have to back up data from other pages before performing sector erase operation. After sector erase operation is finished, program data back to flash.

I hope the above information answers your query. Please feel free to ask if you need any clarifications.

Thanks and Regards,

Sudheesh

alpe_4779926
Level 1
Level 1
First like given

Thanks!

0 Likes