EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FLASH Memory (FLASH)
UM1581
222/584
DocID023800 Rev 1
11.2.7.2 FLASH_Lock
Function Name
void FLASH_Lock ( void )
Function Description
Locks the FLASH control register access.
Parameters
None.
Return values
None.
Notes
None.
11.2.7.3 FLASH_ErasePage
Function Name
FLASH_Status FLASH_ErasePage ( uint32_t Page_Address)
Function Description
Erases a specified page in program memory.
Parameters
Page_Address : The page address in program memory to
be erased.
Return values
FLASH Status: The returned value can be:
FLASH_ERROR_PROGRAM, FLASH_ERROR_WRP,
FLASH_COMPLETE or FLASH_TIMEOUT.
Notes
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
Function Name
FLASH_Status FLASH_EraseAllPages ( void )
Function Description
Erases all FLASH pages.
Parameters
None.
Return values
FLASH Status: The returned value can be:
FLASH_ERROR_PG, FLASH_ERROR_WRP,

Table of Contents

Related product manuals