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 #226 background imageLoading...
Page #226 background image
FLASH Memory (FLASH)
UM1581
226/584
DocID023800 Rev 1
Function Description
Enables or disables the read out protection.
Parameters
ï‚· FLASH_ReadProtection_Level : specifies the read
protection level. This parameter can be:
 OB_RDP_Level_0 : No protection
 OB_RDP_Level_1 : Read protection of the memory
 OB_RDP_Level_2 : Chip protection
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_OB_Unlock()
function must be called before.
ï‚· Call the FLASH_OB_Lock() to disable the flash control
register access and the option bytes (recommended to protect
the FLASH memory against possible unwanted operation)
11.2.8.7 FLASH_OB_UserConfig
Function Name
FLASH_Status FLASH_OB_UserConfig ( uint8_t OB_IWDG,
uint8_t OB_STOP, uint8_t OB_STDBY)
Function Description
Programs the FLASH User Option Byte: IWDG_SW / RST_STOP
/ RST_STDBY.
Parameters
ï‚· OB_IWDG : Selects the IWDG mode This parameter can be
one of the following values:
 OB_IWDG_SW : Software IWDG selected
 OB_IWDG_HW : Hardware IWDG selected
ï‚· OB_STOP : Reset event when entering STOP mode. This
parameter can be one of the following values:
 OB_STOP_NoRST : No reset generated when entering
in STOP
 OB_STOP_RST : Reset generated when entering in
STOP
ï‚· OB_STDBY : Reset event when entering Standby mode.
This parameter can be one of the following values:
 OB_STDBY_NoRST : No reset generated when
entering in STANDBY
 OB_STDBY_RST : Reset generated when entering in
STANDBY
Return values
ï‚· FLASH Status: The returned value can be:
FLASH_ERROR_PG, FLASH_ERROR_WRP,
FLASH_COMPLETE or FLASH_TIMEOUT.
Notes
ï‚· None.

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