EasyManuals Logo

ST STM32F31xx User Manual

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
Page #222 background imageLoading...
Page #222 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals