11.2.7.2 FLASH_Lock
Locks the FLASH control register access.
11.2.7.3 FLASH_ErasePage
FLASH_Status FLASH_ErasePage ( uint32_t Page_Address)
Erases a specified page in program memory.
Page_Address : The page address in program memory to
be erased.
FLASH Status: The returned value can be:
FLASH_ERROR_PROGRAM, FLASH_ERROR_WRP,
FLASH_COMPLETE or FLASH_TIMEOUT.
To correctly run this function, the FLASH_Unlock() function
must be called before.
Call the FLASH_Lock() to disable the flash memory access
(recommended to protect the FLASH memory against
possible unwanted operation)
A Page is erased in the Program memory only if the address
to load is the start address of a page (multiple of 1024 bytes).
11.2.7.4 FLASH_EraseAllPages
FLASH_Status FLASH_EraseAllPages ( void )
FLASH Status: The returned value can be:
FLASH_ERROR_PG, FLASH_ERROR_WRP,