rusEFI
The most advanced open source ECU
Data Fields
FLASH_OBProgramInitTypeDef Struct Reference

FLASH Option Bytes Program structure definition. More...

#include <stm32f4xx_hal_flash_ex.h>

Collaboration diagram for FLASH_OBProgramInitTypeDef:
Collaboration graph
[legend]

Data Fields

uint32_t OptionType
 
uint32_t WRPState
 
uint32_t WRPSector
 
uint32_t Banks
 
uint32_t RDPLevel
 
uint32_t BORLevel
 
uint8_t USERConfig
 
uint32_t USERConfig
 
uint32_t BootAddr0
 
uint32_t BootAddr1
 
uint32_t PCROPSector
 
uint32_t PCROPRdp
 
uint32_t USERType
 
uint32_t PCROPConfig
 
uint32_t PCROPStartAddr
 
uint32_t PCROPEndAddr
 
uint32_t BootConfig
 
uint32_t CM4BootConfig
 
uint32_t CM4BootAddr0
 
uint32_t CM4BootAddr1
 
uint32_t SecureAreaConfig
 
uint32_t SecureAreaStartAddr
 
uint32_t SecureAreaEndAddr
 
uint32_t OTPBlockLock
 
uint32_t SharedRamConfig
 
uint32_t FreqBoostState
 

Detailed Description

FLASH Option Bytes Program structure definition.

Definition at line 87 of file stm32f4xx_hal_flash_ex.h.

Field Documentation

◆ Banks

uint32_t FLASH_OBProgramInitTypeDef::Banks

Select banks for WRP activation/deactivation of all sectors. This parameter must be a value of FLASH Banks

Select banks for WRP , PCROP and secure area config . This parameter must be a value of FLASH Banks

Definition at line 98 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_OBProgram().

◆ BootAddr0

uint32_t FLASH_OBProgramInitTypeDef::BootAddr0

Boot base address when Boot pin = 0. This parameter can be a value of FLASH Boot Address

Boot Address 0. This parameter must be a value between begin and end of a bank

Definition at line 114 of file stm32f7xx_hal_flash_ex.h.

◆ BootAddr1

uint32_t FLASH_OBProgramInitTypeDef::BootAddr1

Boot base address when Boot pin = 1. This parameter can be a value of FLASH Boot Address

Boot Address 1. This parameter must be a value between begin and end of a bank

Definition at line 117 of file stm32f7xx_hal_flash_ex.h.

◆ BootConfig

uint32_t FLASH_OBProgramInitTypeDef::BootConfig

Specifies if the Boot Address to be configured BOOT_ADD0, BOOT_ADD1 or both. This parameter must be a value of FLASHEx OB BOOT OPTION enumeration

Definition at line 106 of file stm32h7xx_hal_flash_ex.h.

◆ BORLevel

uint32_t FLASH_OBProgramInitTypeDef::BORLevel

Set the BOR Level. This parameter can be a value of FLASH BOR Reset Level

Definition at line 104 of file stm32f4xx_hal_flash_ex.h.

Referenced by BOR_Get(), BOR_Set(), HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

◆ CM4BootAddr0

uint32_t FLASH_OBProgramInitTypeDef::CM4BootAddr0

CM4 Boot Address 0. This parameter must be a value between begin and end of a bank

Definition at line 119 of file stm32h7xx_hal_flash_ex.h.

◆ CM4BootAddr1

uint32_t FLASH_OBProgramInitTypeDef::CM4BootAddr1

CM4 Boot Address 1. This parameter must be a value between begin and end of a bank

Definition at line 122 of file stm32h7xx_hal_flash_ex.h.

◆ CM4BootConfig

uint32_t FLASH_OBProgramInitTypeDef::CM4BootConfig

specifies if the CM4 boot Address to be configured BOOT_ADD0, BOOT_ADD1 or both. This parameter must be a value of FLASHEx OB BOOT OPTION enumeration

Definition at line 115 of file stm32h7xx_hal_flash_ex.h.

◆ FreqBoostState

uint32_t FLASH_OBProgramInitTypeDef::FreqBoostState

Specifies the state of CPU Frequency Boost. This parameter must be a value of FLASHEx OB CPUFREQ BOOST

Definition at line 147 of file stm32h7xx_hal_flash_ex.h.

◆ OptionType

uint32_t FLASH_OBProgramInitTypeDef::OptionType

Option byte to be configured. This parameter can be a value of FLASH Option Type

Definition at line 89 of file stm32f4xx_hal_flash_ex.h.

Referenced by BOR_Set(), HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

◆ OTPBlockLock

uint32_t FLASH_OBProgramInitTypeDef::OTPBlockLock

Specifies the OTP block(s) to be locked. This parameter must be a value of FLASH OTP blocks

Definition at line 137 of file stm32h7xx_hal_flash_ex.h.

◆ PCROPConfig

uint32_t FLASH_OBProgramInitTypeDef::PCROPConfig

specifies if the PCROP area shall be erased or not when RDP level decreased from Level 1 to Level 0 or during a mass erase. This parameter must be a value of FLASHEx OB PCROP RDP enumeration

Definition at line 96 of file stm32h7xx_hal_flash_ex.h.

◆ PCROPEndAddr

uint32_t FLASH_OBProgramInitTypeDef::PCROPEndAddr

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

Definition at line 103 of file stm32h7xx_hal_flash_ex.h.

◆ PCROPRdp

uint32_t FLASH_OBProgramInitTypeDef::PCROPRdp

Set the PCROP_RDP option. This parameter can be a value of FLASH Option Bytes PCROP_RDP Bit

Definition at line 124 of file stm32f7xx_hal_flash_ex.h.

◆ PCROPSector

uint32_t FLASH_OBProgramInitTypeDef::PCROPSector

Set the PCROP sector. This parameter can be a value of FLASH Option Bytes PCROP Sectors

Definition at line 121 of file stm32f7xx_hal_flash_ex.h.

◆ PCROPStartAddr

uint32_t FLASH_OBProgramInitTypeDef::PCROPStartAddr

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

Definition at line 100 of file stm32h7xx_hal_flash_ex.h.

◆ RDPLevel

uint32_t FLASH_OBProgramInitTypeDef::RDPLevel

Set the read protection level. This parameter can be a value of FLASH Option Bytes Read Protection

Definition at line 101 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

◆ SecureAreaConfig

uint32_t FLASH_OBProgramInitTypeDef::SecureAreaConfig

specifies if the bank secured area shall be erased or not when RDP level decreased from Level 1 to Level 0 or during a mass erase. This parameter must be a value of FLASHEx OB SECURE RDP enumeration

Definition at line 126 of file stm32h7xx_hal_flash_ex.h.

◆ SecureAreaEndAddr

uint32_t FLASH_OBProgramInitTypeDef::SecureAreaEndAddr

Bank Secure area End address. This parameter must be a value between Secure Area Start address and end address of a bank1

Definition at line 133 of file stm32h7xx_hal_flash_ex.h.

◆ SecureAreaStartAddr

uint32_t FLASH_OBProgramInitTypeDef::SecureAreaStartAddr

Bank Secure area Start address. This parameter must be a value between begin address and end address of bank1

Definition at line 130 of file stm32h7xx_hal_flash_ex.h.

◆ SharedRamConfig

uint32_t FLASH_OBProgramInitTypeDef::SharedRamConfig

Specifies the configuration of TCM / AXI shared RAM. This parameter must be a value of FLASHEx OB TCM AXI SHARED

Definition at line 142 of file stm32h7xx_hal_flash_ex.h.

◆ USERConfig [1/2]

uint32_t FLASH_OBProgramInitTypeDef::USERConfig

Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.

Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY / IWDG_FREEZE_STOP / IWDG_FREEZE_SANDBY / IO_HSLV / SWAP_BANK_OPT

Definition at line 107 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

◆ USERConfig [2/2]

uint32_t FLASH_OBProgramInitTypeDef::USERConfig

Program the FLASH User Option Byte: WWDG_SW / IWDG_SW / RST_STOP / RST_STDBY / IWDG_FREEZE_STOP / IWDG_FREEZE_SANDBY / nDBANK / nDBOOT. nDBANK / nDBOOT are only available for STM32F76xxx/STM32F77xxx devices

Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY / IWDG_FREEZE_STOP / IWDG_FREEZE_SANDBY / IO_HSLV / SWAP_BANK_OPT

Definition at line 110 of file stm32f7xx_hal_flash_ex.h.

◆ USERType

uint32_t FLASH_OBProgramInitTypeDef::USERType

User option byte(s) to be configured (used for OPTIONBYTE_USER). This parameter can be a combination of FLASHEx OB USER Type

Definition at line 87 of file stm32h7xx_hal_flash_ex.h.

◆ WRPSector

uint32_t FLASH_OBProgramInitTypeDef::WRPSector

Specifies the sector(s) to be write protected. The value of this parameter depend on device used within the same series

Definition at line 95 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_OBGetConfig(), and HAL_FLASHEx_OBProgram().

◆ WRPState

uint32_t FLASH_OBProgramInitTypeDef::WRPState

Write protection activation or deactivation. This parameter can be a value of FLASH WRP State

Definition at line 92 of file stm32f4xx_hal_flash_ex.h.

Referenced by HAL_FLASHEx_OBProgram().


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