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,