AnsweredAssumed Answered

FLASH program double word problem

Question asked by Majerle.Tilen on May 3, 2015
Latest reply on May 3, 2015 by Majerle.Tilen
Hello,

I have strange problem with flash programming "on the fly" on STM32F411-Nucleo
When I use FLASH_ProgramDoubleWord (STD drivers 1.5.0), programming does not work.

I know, it says that voltage needs to be between 2.7 and 3.6. I have 3.3V power supply.

Code looks like similar:

u8 data[200];
u16 pointer = 0;

/* NOT WORKS, program stuck */ 
for (i = 0; i < (200 / 8); i++) {
    FLASH_ProgramDoubleWord(0x08000000 + pointer, *(uint64_t*) &data[i * 8]);
    pointer += 8;
}
 
/* WORKS */
for (i = 0; i < (200 / 4); i++) {
    FLASH_ProgramWord(0x08000000 + pointer, *(uint32_t*) &data[i * 4]);
    pointer += 4;
}

Any ideas why is this happening?

Outcomes