AnsweredAssumed Answered

STM32F4 - FLASH Erase

Question asked by naphtali on Dec 11, 2013
Latest reply on Jun 11, 2014 by Jack Peacock
I am attempting to erase a FLASH sector, but the process hangs. Any ideas on why this might be happening?

    FLASH_Unlock();
    FLASH_ClearFlag(FLASH_FLAG_EOP | FLASH_FLAG_OPERR |                                          FLASH_FLAG_WRPERR | 
                           FLASH_FLAG_PGAERR |                     FLASH_FLAG_PGPERR|FLASH_FLAG_PGSERR); 

    sector = GetSector(addr);
    if (FLASH_EraseSector(sector, VoltageRange_3) != FLASH_COMPLETE) { 
        // error (flash,erase);
        FLASH_Lock();
        return 1;
    }

Outcomes