STM32L486xx HAL User Manual
Data Fields
FLASH_OBProgramInitTypeDef Struct Reference

FLASH Option Bytes Program structure definition. More...

#include <stm32l4xx_hal_flash.h>

Data Fields

uint32_t OptionType
uint32_t WRPArea
uint32_t WRPStartOffset
uint32_t WRPEndOffset
uint32_t RDPLevel
uint32_t USERType
uint32_t USERConfig
uint32_t PCROPConfig
uint32_t PCROPStartAddr
uint32_t PCROPEndAddr

Detailed Description

FLASH Option Bytes Program structure definition.

Definition at line 80 of file stm32l4xx_hal_flash.h.


Field Documentation

Option byte to be configured. This parameter can be a combination of the values of FLASH Option Bytes Type

Definition at line 82 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

Configuration of the PCROP (used for OPTIONBYTE_PCROP). This parameter must be a combination of FLASH Banks (except FLASH_BANK_BOTH) and FLASH Option Bytes PCROP On RDP Level Type

Definition at line 104 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

PCROP End address (used for OPTIONBYTE_PCROP). This parameter must be a value between PCROP Start address and end of bank

Definition at line 110 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

PCROP Start address (used for OPTIONBYTE_PCROP). This parameter must be a value between begin and end of bank => Be careful of the bank swapping for the address

Definition at line 107 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

Set the read protection level.. (used for OPTIONBYTE_RDP). This parameter can be a value of FLASH Option Bytes Read Protection

Definition at line 92 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

User option byte(s) to be configured (used for OPTIONBYTE_USER). This parameter can be a combination of FLASH Option Bytes User Type

Definition at line 94 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBProgram().

Write protection area to be programmed (used for OPTIONBYTE_WRP). Only one WRP area could be programmed at the same time. This parameter can be value of FLASH WRP Area

Definition at line 84 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

Write protection end offset (used for OPTIONBYTE_WRP). This parameter must be a value between WRPStartOffset and (max number of pages in the bank - 1)

Definition at line 90 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

Write protection start offset (used for OPTIONBYTE_WRP). This parameter must be a value between 0 and (max number of pages in the bank - 1) (eg : 25 for 1MB dual bank)

Definition at line 87 of file stm32l4xx_hal_flash.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().


The documentation for this struct was generated from the following file: