cancel
Showing results for 
Search instead for 
Did you mean: 

FLASH program double word problem

tm3341
Associate II
Posted on May 03, 2015 at 01:46

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? #flash #programming #double-word
2 REPLIES 2
Danish1
Lead II
Posted on May 03, 2015 at 14:13

Do you have an external Vpp?

FLASH_ProgramDoubleWord needs between 7V and 9V applied to BOOT0 on stm32f411

tm3341
Associate II
Posted on May 03, 2015 at 15:26

I see now, something is about 8-9V on VPP pin.

I will check more about that.