11.2.8.4 FLASH_OB_Erase
FLASH_Status FLASH_OB_Erase ( void )
Erases the FLASH option bytes.
ï‚· FLASH Status: The returned value can be:
FLASH_ERROR_PG, FLASH_ERROR_WRP,
FLASH_COMPLETE or FLASH_TIMEOUT.
ï‚· This functions erases all option bytes except the Read
protection (RDP).
11.2.8.5 FLASH_OB_EnableWRP
FLASH_Status FLASH_OB_EnableWRP ( uint32_t OB_WRP)
Write protects the desired pages.
ï‚· OB_WRP : specifies the address of the pages to be write
protected. This parameter can be:
ï€ value :
ï€ OB_WRP_AllPages :
ï‚· 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_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.6 FLASH_OB_RDPConfig
FLASH_Status FLASH_OB_RDPConfig ( uint8_t OB_RDP)