I am trying to use a NOR flash memory device: SST25VF016B (with STM32 discoveryboard F407VG). However, I am confused on some terms on their datasheet. You can find the datasheet here: https://www.elfa.se/Web/Downloads/_t/ds/SST25VF016Bx_eng_tds.pdf
In the datasheet, it is mentioned that this device have 16Mega bits of memory. However, in the erase section, it state that it has: 1. Full Chip Erase 2. 4KByte sector erase 3. 32 Kbyte block erase 4. 64 Kbyte block erase
What I understand after looking some references is that sector is the smallest section in a memory device, and then we have blocks. But, in that case, 4KByte sector means that it will erase from address 0 for example, until address 4000?
And one more question, when I tried to program this device, it said that we need to erase the chip first before programming. Will it be the same if I use the full chip erase, or should I erase it block by block (or sector by sector)
Can someone help me try to understand this? Thanks a lot!!