AnsweredAssumed Answered

F4 Flash Write - random or sequential?

Question asked by alex.001 on Jul 11, 2013
Latest reply on Jul 14, 2013 by Clive One

Hello,

is F4 Flash write can be random or only sequential?

I've tryed to do
FLASH_Unlock();
FLASH_EraseSector(FLASH_Sector_8, VoltageRange_3);
for(i=0, EEAddr=EEA;i<32;i++){
       FLASH_ProgramWord(EEAddr, ParArray[i]);
       EEAddr+=4;
}
FLASH_Lock();


and all works fine, but when I try to do this:
FLASH_Unlock();
FLASH_EraseSector(FLASH_Sector_8, VoltageRange_3);
for(i=1, EEAddr=EEA+4;i<32;i++){
       FLASH_ProgramWord(EEAddr, ParArray[i]);
       EEAddr+=4;
}
FLASH_ProgramWord(EEA, ParArray[0]);
FLASH_Lock();

the 1st word, that I've tried to write at the end, does not writes.
1st 4 bytes are still "FF".

So, write to flash should be sequential?

Outcomes