Skip to main content
ASSAAD.ASSAAD
Associate III
November 25, 2016
Question

erase sector in STM32f407

  • November 25, 2016
  • 1 reply
  • 584 views
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

    This topic has been closed for replies.

    1 reply

    slimen
    Visitor II
    November 25, 2016
    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