cancel
Showing results for 
Search instead for 
Did you mean: 

erase sector in STM32f407

ASSAAD.ASSAAD
Associate II
Posted on November 25, 2016 at 14:34

Hello all

I am use the USB flash upgrade  in the discovery in my boards ;

where  the user code starts at 0x8008000

in some boards about 10%  the usb flash upgrade does not work ; after debugging we noticed that the sector erase always return the error FLASH_ERROR_PROGRAM;

    erasestatus = FLASH_EraseSector(sectorindex, VoltageRange_3);

Could you please guide me to find the reason to solve my problem

Thank you inadvanced

1 REPLY 1
slimen
Senior
Posted on November 25, 2016 at 15:24

Hi,

Did you tried to use the ST-Link Utility tool for Flash erase?

You'd really help if you provide more details about your environment and your complete code.

Regards