Question
F4 Flash Write - random or sequential?
Posted on July 11, 2013 at 15:19
Hello,
is F4 Flash write can be random or only sequential? I've tryed to doFLASH_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?