EasyManua.ls Logo

ST STM32F31xx - Page 228

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
228/584
DocID023800 Rev 1
Parameters
OB_SRAM_Parity : Set or Reset the SRAM partiy enable
bit. This parameter can be one of the following values:
OB_SRAM_PARITY_SET : Set SRAM partiy.
OB_SRAM_PARITY_RESET : Reset SRAM partiy.
Return values
None.
Notes
None.
11.2.8.11 FLASH_OB_WriteUser
Function Name
FLASH_Status FLASH_OB_WriteUser ( uint8_t OB_USER)
Function Description
Programs the FLASH User Option Byte: IWDG_SW / RST_STOP
/ RST_STDBY/ BOOT1 and OB_VDDA_ANALOG.
Parameters
OB_USER : Selects all user option bytes This parameter is a
combination of the following values:
OB_IWDG_SW / OB_IWDG_HW : Software / Hardware
WDG selected
OB_STOP_NoRST / OB_STOP_RST : No reset / Reset
generated when entering in STOP
OB_STDBY_NoRST / OB_STDBY_RST : No reset /
Reset generated when entering in STANDBY
OB_BOOT1_RESET / OB_BOOT1_SET : BOOT1
Reset / Set
OB_VDDA_ANALOG_ON / OB_VDDA_ANALOG_OFF
: Analog monitoring on VDDA Power source ON / OFF
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.12 FLASH_ProgramOptionByteData
Function Name
FLASH_Status FLASH_ProgramOptionByteData ( uint32_t
Address, uint8_t Data)

Table of Contents

Related product manuals