rusEFI
The most advanced open source ECU
|
Functions | |
static void | FLASH_MassErase (uint8_t VoltageRange, uint32_t Banks) |
Full erase of FLASH memory sectors. | |
void | FLASH_FlushCaches (void) |
Flush the instruction and data caches. | |
static HAL_StatusTypeDef | FLASH_OB_EnableWRP (uint32_t WRPSector, uint32_t Banks) |
Enable the write protection of the desired bank1 or bank 2 sectors. | |
static HAL_StatusTypeDef | FLASH_OB_DisableWRP (uint32_t WRPSector, uint32_t Banks) |
Disable the write protection of the desired bank1 or bank 2 sectors. | |
static HAL_StatusTypeDef | FLASH_OB_RDP_LevelConfig (uint8_t Level) |
Set the read protection level. | |
static HAL_StatusTypeDef | FLASH_OB_UserConfig (uint8_t Iwdg, uint8_t Stop, uint8_t Stdby) |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. | |
static HAL_StatusTypeDef | FLASH_OB_BOR_LevelConfig (uint8_t Level) |
Set the BOR Level. | |
static uint8_t | FLASH_OB_GetUser (void) |
Return the FLASH User Option Byte value. | |
static uint16_t | FLASH_OB_GetWRP (void) |
Return the FLASH Write Protection Option Bytes value. | |
static uint8_t | FLASH_OB_GetRDP (void) |
Returns the FLASH Read Protection level. | |
static uint8_t | FLASH_OB_GetBOR (void) |
Returns the FLASH BOR level. | |
static HAL_StatusTypeDef | FLASH_OB_EnablePCROP (uint32_t Sector) |
Enable the read/write protection (PCROP) of the desired sectors. | |
static HAL_StatusTypeDef | FLASH_OB_DisablePCROP (uint32_t Sector) |
Disable the read/write protection (PCROP) of the desired sectors. | |
static HAL_StatusTypeDef | FLASH_OB_EnablePCROP (uint32_t SectorBank1, uint32_t SectorBank2, uint32_t Banks) |
Enable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2. | |
static HAL_StatusTypeDef | FLASH_OB_DisablePCROP (uint32_t SectorBank1, uint32_t SectorBank2, uint32_t Banks) |
Disable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2. | |
static HAL_StatusTypeDef | FLASH_OB_BootConfig (uint8_t BootConfig) |
Configure the Dual Bank Boot. | |
HAL_StatusTypeDef | FLASH_WaitForLastOperation (uint32_t Timeout) |
Wait for a FLASH operation to complete. | |
void | FLASH_Erase_Sector (uint32_t Sector, uint8_t VoltageRange) |
Erase the specified FLASH memory sector. | |
static HAL_StatusTypeDef | FLASH_OB_EnableWRP (uint32_t WRPSector) |
Enable the write protection of the desired bank1 or bank2 sectors. | |
static HAL_StatusTypeDef | FLASH_OB_DisableWRP (uint32_t WRPSector) |
Disable the write protection of the desired bank1 or bank 2 sectors. | |
static HAL_StatusTypeDef | FLASH_OB_BootAddressConfig (uint32_t BootOption, uint32_t Address) |
Configure Boot base address. | |
static uint32_t | FLASH_OB_GetBootAddress (uint32_t BootOption) |
Configure Boot base address. | |
static HAL_StatusTypeDef | FLASH_OB_UserConfig (uint32_t Wwdg, uint32_t Iwdg, uint32_t Stop, uint32_t Stdby, uint32_t Iwdgstop, \ uint32_t Iwdgstdby, uint32_t NDBank, uint32_t NDBoot) |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. | |
static void | FLASH_MassErase (uint8_t VoltageRange) |
Full erase of FLASH memory sectors. | |
static HAL_StatusTypeDef | FLASH_OB_UserConfig (uint32_t Wwdg, uint32_t Iwdg, uint32_t Stop, uint32_t Stdby, uint32_t Iwdgstop, uint32_t Iwdgstdby) |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY. | |
static HAL_StatusTypeDef | FLASH_OB_PCROP_Config (uint32_t PCROPSector) |
Set the PCROP protection for sectors. | |
static HAL_StatusTypeDef | FLASH_OB_PCROP_RDP_Config (uint32_t Pcrop_Rdp) |
Set the PCROP_RDP value. | |
static uint32_t | FLASH_OB_GetPCROP (void) |
Return the FLASH PCROP Protection Option Bytes value. | |
static uint32_t | FLASH_OB_GetPCROPRDP (void) |
Return the FLASH PCROP_RDP option byte value. | |
static void | FLASH_MassErase (uint32_t VoltageRange, uint32_t Banks) |
Mass erase of FLASH memory. | |
static void | FLASH_OB_GetWRP (uint32_t *WRPState, uint32_t *WRPSector, uint32_t Bank) |
Get the write protection of the given bank 1 or bank 2 sectors. | |
static void | FLASH_OB_RDPConfig (uint32_t RDPLevel) |
Set the read protection level. | |
static void | FLASH_OB_PCROPConfig (uint32_t PCROPConfig, uint32_t PCROPStartAddr, uint32_t PCROPEndAddr, uint32_t Banks) |
Configure the Proprietary code readout protection of the desired addresses. | |
static void | FLASH_OB_GetPCROP (uint32_t *PCROPConfig, uint32_t *PCROPStartAddr, uint32_t *PCROPEndAddr, uint32_t Bank) |
Get the Proprietary code readout protection configuration on a given Bank. | |
static void | FLASH_OB_BOR_LevelConfig (uint32_t Level) |
Set the BOR Level. | |
static void | FLASH_OB_UserConfig (uint32_t UserType, uint32_t UserConfig) |
Program the FLASH User Option Byte. | |
static void | FLASH_OB_BootAddConfig (uint32_t BootOption, uint32_t BootAddress0, uint32_t BootAddress1) |
Set Boot address. | |
static void | FLASH_OB_GetBootAdd (uint32_t *BootAddress0, uint32_t *BootAddress1) |
Get Boot address. | |
static void | FLASH_OB_SecureAreaConfig (uint32_t SecureAreaConfig, uint32_t SecureAreaStartAddr, uint32_t SecureAreaEndAddr, uint32_t Banks) |
Set secure area configuration. | |
static void | FLASH_OB_GetSecureArea (uint32_t *SecureAreaConfig, uint32_t *SecureAreaStartAddr, uint32_t *SecureAreaEndAddr, uint32_t Bank) |
Get secure area configuration. | |
static void | FLASH_CRC_AddSector (uint32_t Sector, uint32_t Bank) |
Add a CRC sector to the list of sectors on which the CRC will be calculated. | |
static void | FLASH_CRC_SelectAddress (uint32_t CRCStartAddr, uint32_t CRCEndAddr, uint32_t Bank) |
Select CRC start and end memory addresses on which the CRC will be calculated. | |
static void | FLASH_OB_CM4BootAddConfig (uint32_t BootOption, uint32_t BootAddress0, uint32_t BootAddress1) |
Set CM4 Boot address. | |
static void | FLASH_OB_GetCM4BootAdd (uint32_t *BootAddress0, uint32_t *BootAddress1) |
Get CM4 Boot address. | |
static void | FLASH_OB_OTP_LockConfig (uint32_t OTP_Block) |
Configure the OTP Block Lock. | |
static uint32_t | FLASH_OB_OTP_GetLock (void) |
Get the OTP Block Lock. | |
static void | FLASH_OB_SharedRAM_Config (uint32_t SharedRamConfig) |
Configure the TCM / AXI Shared RAM. | |
static uint32_t | FLASH_OB_SharedRAM_GetConfig (void) |
Get the TCM / AXI Shared RAM configurtion. | |
static void | FLASH_OB_CPUFreq_BoostConfig (uint32_t FreqBoost) |
Configure the CPU Frequency Boost. | |
static uint32_t | FLASH_OB_CPUFreq_GetBoost (void) |
Get the CPU Frequency Boost state. | |
void | FLASH_Erase_Sector (uint32_t Sector, uint32_t Banks, uint32_t VoltageRange) |
Erase the specified FLASH memory sector. | |
|
static |
Add a CRC sector to the list of sectors on which the CRC will be calculated.
Sector | Specifies the CRC sector number |
Bank | Specifies the Bank |
None |
Definition at line 1719 of file stm32h7xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_ComputeCRC().
|
static |
Select CRC start and end memory addresses on which the CRC will be calculated.
CRCStartAddr | Specifies the CRC start address |
CRCEndAddr | Specifies the CRC end address |
Bank | Specifies the Bank |
None |
Definition at line 1751 of file stm32h7xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_ComputeCRC().
void FLASH_Erase_Sector | ( | uint32_t | Sector, |
uint32_t | Banks, | ||
uint32_t | VoltageRange | ||
) |
Erase the specified FLASH memory sector.
Sector | FLASH sector to erase This parameter can be a value of FLASH Sectors |
Banks | Banks to be erased This parameter can be one of the following values:
|
VoltageRange | The device program/erase parallelism. This parameter can be one of the following values:
|
None |
Definition at line 933 of file stm32h7xx_hal_flash_ex.c.
void FLASH_Erase_Sector | ( | uint32_t | Sector, |
uint8_t | VoltageRange | ||
) |
Erase the specified FLASH memory sector.
Sector | FLASH sector to erase The value of this parameter depend on device used within the same series |
VoltageRange | The device voltage range which defines the erase parallelism. This parameter can be one of the following values:
|
None |
Definition at line 637 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASH_IRQHandler(), HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().
void FLASH_FlushCaches | ( | void | ) |
Flush the instruction and data caches.
None |
Definition at line 370 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASH_IRQHandler(), and HAL_FLASHEx_Erase().
|
static |
Mass erase of FLASH memory.
VoltageRange | The device program/erase parallelism. This parameter can be one of the following values:
|
Banks | Banks to be erased This parameter can be one of the following values:
|
HAL | Status |
Definition at line 856 of file stm32h7xx_hal_flash_ex.c.
|
static |
Full erase of FLASH memory sectors.
VoltageRange | The device voltage range which defines the erase parallelism. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 665 of file stm32f7xx_hal_flash_ex.c.
|
static |
Full erase of FLASH memory sectors.
Mass erase of FLASH memory.
VoltageRange | The device voltage range which defines the erase parallelism. This parameter can be one of the following values:
|
Banks | Banks to be erased This parameter can be one of the following values:
|
HAL | Status |
VoltageRange | The device voltage range which defines the erase parallelism. This parameter can be one of the following values:
|
Banks | Banks to be erased This parameter can be one of the following values:
|
None |
Definition at line 591 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().
|
static |
Set Boot address.
BootOption | Boot address option byte to be programmed, This parameter must be a value of FLASHEx OB BOOT OPTION (OB_BOOT_ADD0, OB_BOOT_ADD1 or OB_BOOT_ADD_BOTH) |
BootAddress0 | Specifies the Boot Address 0 |
BootAddress1 | Specifies the Boot Address 1 |
HAL | Status |
Definition at line 1522 of file stm32h7xx_hal_flash_ex.c.
|
static |
Configure Boot base address.
BootOption | : specifies Boot base address depending from Boot pin = 0 or pin = 1 This parameter can be one of the following values:
|
Address | specifies Boot base address This parameter can be one of the following values:
|
HAL | Status |
Definition at line 958 of file stm32f7xx_hal_flash_ex.c.
|
static |
Configure the Dual Bank Boot.
BootConfig | specifies the Dual Bank Boot Option byte. This parameter can be one of the following values:
|
None |
Definition at line 829 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_AdvOBProgram().
|
static |
Set the BOR Level.
Level | specifies the Option Bytes BOR Reset Level. This parameter can be one of the following values:
|
None |
Definition at line 1490 of file stm32h7xx_hal_flash_ex.c.
|
static |
Set the BOR Level.
Level | specifies the Option Bytes BOR Reset Level. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1287 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
Set CM4 Boot address.
BootOption | Boot address option byte to be programmed, This parameter must be a value of FLASHEx OB BOOT OPTION (OB_BOOT_ADD0, OB_BOOT_ADD1 or OB_BOOT_ADD_BOTH) |
BootAddress0 | Specifies the CM4 Boot Address 0. |
BootAddress1 | Specifies the CM4 Boot Address 1. |
HAL | Status |
Definition at line 1588 of file stm32h7xx_hal_flash_ex.c.
|
static |
Configure the CPU Frequency Boost.
FreqBoost | specifies the CPU Frequency Boost state. This parameter can be a value of FLASHEx OB CPUFREQ BOOST |
None |
Definition at line 1839 of file stm32h7xx_hal_flash_ex.c.
|
static |
Get the CPU Frequency Boost state.
FreqBoost | returns the CPU Frequency Boost state. This return value can be a value of FLASHEx OB CPUFREQ BOOST |
Definition at line 1853 of file stm32h7xx_hal_flash_ex.c.
|
static |
Disable the read/write protection (PCROP) of the desired sectors.
Sector | specifies the sector(s) to be read/write protected or unprotected. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1186 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_AdvOBProgram().
|
static |
Disable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2.
SectorBank1 | specifies the sector(s) to be read/write protected or unprotected for bank1. This parameter can be one of the following values:
|
SectorBank2 | Specifies the sector(s) to be read/write protected or unprotected for bank2. This parameter can be one of the following values:
|
Banks | Disable PCROP protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
Definition at line 933 of file stm32f4xx_hal_flash_ex.c.
|
static |
Disable the write protection of the desired bank1 or bank 2 sectors.
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 868 of file stm32f7xx_hal_flash_ex.c.
|
static |
Disable the write protection of the desired bank1 or bank 2 sectors.
Disable the write protection of the desired bank 1 sectors.
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
Banks | Disable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
WRPSector | specifies the sector(s) to be write protected. The value of this parameter depend on device used within the same series |
Banks | Enable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
WRPSector | specifies the sector(s) to disable write protection. This parameter can be one of the following values:
|
Banks | the specific bank to apply WRP sectors This parameter can be one of the following values:
|
HAL | FLASH State |
Definition at line 768 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
Enable the read/write protection (PCROP) of the desired sectors.
Sector | specifies the sector(s) to be read/write protected or unprotected. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1158 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_AdvOBProgram().
|
static |
Enable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2.
SectorBank1 | Specifies the sector(s) to be read/write protected or unprotected for bank1. This parameter can be one of the following values:
|
SectorBank2 | Specifies the sector(s) to be read/write protected or unprotected for bank2. This parameter can be one of the following values:
|
Banks | Enable PCROP protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
Definition at line 869 of file stm32f4xx_hal_flash_ex.c.
|
static |
Enable the write protection of the desired bank1 or bank2 sectors.
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
HAL | FLASH State |
Definition at line 832 of file stm32f7xx_hal_flash_ex.c.
|
static |
Enable the write protection of the desired bank1 or bank 2 sectors.
Enable the write protection of the desired bank 1 sectors.
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
Banks | Enable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | FLASH State |
WRPSector | specifies the sector(s) to be write protected. The value of this parameter depend on device used within the same series |
Banks | Enable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
WRPSector | specifies the sector(s) to be write protected. This parameter can be one of the following values:
|
Banks | the specific bank to apply WRP sectors This parameter can be one of the following values:
|
HAL | FLASH State |
Definition at line 697 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
Get Boot address.
BootAddress0 | Specifies the Boot Address 0. |
BootAddress1 | Specifies the Boot Address 1. |
HAL | Status |
Definition at line 1560 of file stm32h7xx_hal_flash_ex.c.
|
static |
Configure Boot base address.
BootOption | : specifies Boot base address depending from Boot pin = 0 or pin = 1 This parameter can be one of the following values:
|
uint32_t | Boot Base Address:
|
Definition at line 1042 of file stm32f7xx_hal_flash_ex.c.
|
static |
Returns the FLASH BOR level.
Get the BOR Level.
uint8_t | The FLASH BOR level:
|
The | Option Bytes BOR Reset Level. This parameter can be one of the following values:
|
Definition at line 1357 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBGetConfig().
|
static |
Get CM4 Boot address.
BootAddress0 | Specifies the CM4 Boot Address 0. |
BootAddress1 | Specifies the CM4 Boot Address 1. |
HAL | Status |
Definition at line 1619 of file stm32h7xx_hal_flash_ex.c.
|
static |
Get the Proprietary code readout protection configuration on a given Bank.
PCROPConfig | indicates if the PCROP area for the given Bank shall be erased or not when RDP level decreased from Level 1 to Level 0 or after a bank erase with protection removal |
PCROPStartAddr | gives the start address of the Proprietary code readout protection of the bank |
PCROPEndAddr | gives the end address of the Proprietary code readout protection of the bank |
Bank | the specific bank to apply PCROP protection This parameter can be exclusively one of the following values:
|
None |
Definition at line 1454 of file stm32h7xx_hal_flash_ex.c.
|
static |
Return the FLASH PCROP Protection Option Bytes value.
uint32_t | FLASH PCROP Protection Option Bytes value |
Definition at line 1115 of file stm32f7xx_hal_flash_ex.c.
|
static |
Return the FLASH PCROP_RDP option byte value.
uint32_t | FLASH PCROP_RDP option byte value |
Definition at line 1125 of file stm32f7xx_hal_flash_ex.c.
|
static |
Returns the FLASH Read Protection level.
Get the read protection level.
FLASH | ReadOut Protection Status: This parameter can be one of the following values:
|
RDPLevel | specifies the read protection level. This return value can be one of the following values:
|
Definition at line 1329 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBGetConfig().
|
static |
Get secure area configuration.
SecureAreaConfig | indicates if the secure area will be deleted or not when RDP level decreased from Level 1 to Level 0 or during a mass erase. |
SecureAreaStartAddr | gives the secure area start address |
SecureAreaEndAddr | gives the secure area end address |
Bank | Specifies the Bank |
None |
Definition at line 1686 of file stm32h7xx_hal_flash_ex.c.
|
static |
Return the FLASH User Option Byte value.
uint8_t | FLASH User Option Bytes values: IWDG_SW(Bit0), RST_STOP(Bit1) and RST_STDBY(Bit2). |
The | FLASH User Option Bytes values IWDG1_SW(Bit4), IWDG2_SW(Bit 5), nRST_STOP_D1(Bit 6), nRST_STDY_D1(Bit 7), FZ_IWDG_STOP(Bit 17), FZ_IWDG_SDBY(Bit 18), ST_RAM_SIZE(Bit[19:20]), SECURITY(Bit 21), BCM4(Bit 22), BCM7(Bit 23), nRST_STOP_D2(Bit 24), nRST_STDY_D2(Bit 25), IO_HSLV (Bit 29) and SWAP_BANK_OPT(Bit 31). |
Return the FLASH User Option Byte value.
The | FLASH User Option Bytes values IWDG_SW(Bit4), nRST_STOP_D1(Bit 6), nRST_STDY_D1(Bit 7), FZ_IWDG_STOP(Bit 17), FZ_IWDG_SDBY(Bit 18), ST_RAM_SIZE(Bit[19:20]), SECURITY(Bit 21), IO_HSLV (Bit 29) and SWAP_BANK_OPT(Bit 31). |
Definition at line 1305 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBGetConfig().
|
static |
Get the write protection of the given bank 1 or bank 2 sectors.
WRPState | gives the write protection state on the given bank. This parameter can be one of the following values:
|
WRPSector | gives the write protected sector(s) on the given bank . This parameter can be one of the following values:
|
Bank | the specific bank to apply WRP sectors This parameter can be exclusively one of the following values:
|
HAL | FLASH State |
Definition at line 1064 of file stm32h7xx_hal_flash_ex.c.
|
static |
Return the FLASH Write Protection Option Bytes value.
uint16_t | FLASH Write Protection Option Bytes value |
Definition at line 1315 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBGetConfig().
|
static |
Get the OTP Block Lock.
OTP_Block | specifies the OTP Block to lock. This return value can be a value of FLASH OTP blocks |
Definition at line 1799 of file stm32h7xx_hal_flash_ex.c.
|
static |
Configure the OTP Block Lock.
OTP_Block | specifies the OTP Block to lock. This parameter can be a value of FLASH OTP blocks |
None |
Definition at line 1785 of file stm32h7xx_hal_flash_ex.c.
|
static |
Set the PCROP protection for sectors.
PCROPSector | specifies the sector(s) to be PCROP protected. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1069 of file stm32f7xx_hal_flash_ex.c.
|
static |
Set the PCROP_RDP value.
Pcrop_Rdp | specifies the PCROP_RDP bit value. |
HAL | Status |
Definition at line 1093 of file stm32f7xx_hal_flash_ex.c.
|
static |
Configure the Proprietary code readout protection of the desired addresses.
PCROPConfig | specifies if the PCROP area for the given Bank shall be erased or not when RDP level decreased from Level 1 to Level 0, or after a bank erase with protection removal This parameter must be a value of
|
PCROPStartAddr | specifies the start address of the Proprietary code readout protection This parameter can be an address between begin and end of the bank |
PCROPEndAddr | specifies the end address of the Proprietary code readout protection This parameter can be an address between PCROPStartAddr and end of the bank |
Banks | the specific bank to apply PCROP protection This parameter can be one of the following values:
|
None |
Definition at line 1405 of file stm32h7xx_hal_flash_ex.c.
|
static |
Set the read protection level.
Level | specifies the read protection level. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1218 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
Set the read protection level.
RDPLevel | specifies the read protection level. This parameter can be one of the following values:
|
HAL | status |
Definition at line 1110 of file stm32h7xx_hal_flash_ex.c.
|
static |
Set secure area configuration.
SecureAreaConfig | specify if the secure area will be deleted or not when RDP level decreased from Level 1 to Level 0 or during a mass erase. |
SecureAreaStartAddr | Specifies the secure area start address |
SecureAreaEndAddr | Specifies the secure area end address |
Banks | the specific bank to apply Security protection This parameter can be one of the following values:
|
None |
Definition at line 1644 of file stm32h7xx_hal_flash_ex.c.
|
static |
Configure the TCM / AXI Shared RAM.
SharedRamConfig | specifies the Shared RAM configuration. This parameter can be a value of FLASHEx OB TCM AXI SHARED |
None |
Definition at line 1812 of file stm32h7xx_hal_flash_ex.c.
|
static |
Get the TCM / AXI Shared RAM configurtion.
SharedRamConfig | returns the TCM / AXI Shared RAM configuration. This return value can be a value of FLASHEx OB TCM AXI SHARED |
Definition at line 1826 of file stm32h7xx_hal_flash_ex.c.
|
static |
Program the FLASH User Option Byte.
UserType | The FLASH User Option Bytes to be modified : a combination of FLASHEx OB USER Type |
UserConfig | The FLASH User Option Bytes values: IWDG1_SW(Bit4), IWDG2_SW(Bit 5), nRST_STOP_D1(Bit 6), nRST_STDY_D1(Bit 7), FZ_IWDG_STOP(Bit 17), FZ_IWDG_SDBY(Bit 18), ST_RAM_SIZE(Bit[19:20]), SECURITY(Bit 21), BCM4(Bit 22), BCM7(Bit 23), nRST_STOP_D2(Bit 24), nRST_STDY_D2(Bit 25), IO_HSLV (Bit 29) and SWAP_BANK_OPT(Bit 31). |
HAL | status |
Program the FLASH User Option Byte.
UserType | The FLASH User Option Bytes to be modified : a combination of
|
UserConfig | The FLASH User Option Bytes values: IWDG_SW(Bit4), nRST_STOP_D1(Bit 6), nRST_STDY_D1(Bit 7), FZ_IWDG_STOP(Bit 17), FZ_IWDG_SDBY(Bit 18), ST_RAM_SIZE(Bit[19:20]), SECURITY(Bit 21), IO_HSLV (Bit 29) and SWAP_BANK_OPT(Bit 31). |
HAL | status |
Definition at line 1183 of file stm32h7xx_hal_flash_ex.c.
|
static |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
Wwdg | Selects the IWDG mode This parameter can be one of the following values:
|
Iwdg | Selects the WWDG mode This parameter can be one of the following values:
|
Stop | Reset event when entering STOP mode. This parameter can be one of the following values:
|
Stdby | Reset event when entering Standby mode. This parameter can be one of the following values:
|
Iwdgstop | Independent watchdog counter freeze in Stop mode. This parameter can be one of the following values:
|
Iwdgstdby | Independent watchdog counter freeze in standby mode. This parameter can be one of the following values:
|
NDBank | Flash Single Bank mode enabled. This parameter can be one of the following values:
|
NDBoot | Flash Dual boot mode disable. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 602 of file stm32f7xx_hal_flash_ex.c.
|
static |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
Wwdg | Selects the IWDG mode This parameter can be one of the following values:
|
Iwdg | Selects the WWDG mode This parameter can be one of the following values:
|
Stop | Reset event when entering STOP mode. This parameter can be one of the following values:
|
Stdby | Reset event when entering Standby mode. This parameter can be one of the following values:
|
Iwdgstop | Independent watchdog counter freeze in Stop mode. This parameter can be one of the following values:
|
Iwdgstdby | Independent watchdog counter freeze in standby mode. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 771 of file stm32f7xx_hal_flash_ex.c.
|
static |
Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
Iwdg | Selects the IWDG mode This parameter can be one of the following values:
|
Stop | Reset event when entering STOP mode. This parameter can be one of the following values:
|
Stdby | Reset event when entering Standby mode. This parameter can be one of the following values:
|
HAL | Status |
Definition at line 1252 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBProgram().
|
extern |
Wait for a FLASH operation to complete.
Timeout | maximum flash operationtimeout |
HAL | Status |
Definition at line 569 of file stm32f4xx_hal_flash.c.
Referenced by FLASH_OB_BootAddressConfig(), FLASH_OB_BootConfig(), FLASH_OB_DisablePCROP(), FLASH_OB_DisablePCROP(), FLASH_OB_DisableWRP(), FLASH_OB_DisableWRP(), FLASH_OB_EnablePCROP(), FLASH_OB_EnablePCROP(), FLASH_OB_EnableWRP(), FLASH_OB_EnableWRP(), FLASH_OB_PCROP_Config(), FLASH_OB_PCROP_RDP_Config(), FLASH_OB_RDP_LevelConfig(), FLASH_OB_RDP_LevelConfig(), FLASH_OB_UserConfig(), FLASH_OB_UserConfig(), FLASH_OB_UserConfig(), HAL_FLASH_OB_Launch(), HAL_FLASH_Program(), and HAL_FLASHEx_Erase().