STM32F479xx HAL User Manual
|
Modules | |
Extended IO operation functions | |
Extended IO operation functions. | |
Functions | |
void | FLASH_Erase_Sector (uint32_t Sector, uint8_t VoltageRange) |
Erase the specified FLASH memory sector. | |
void | FLASH_FlushCaches (void) |
Flush the instruction and data caches. | |
static void | FLASH_MassErase (uint8_t VoltageRange, uint32_t Banks) |
Full erase of FLASH memory sectors. | |
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_BootConfig (uint8_t BootConfig) |
Configure the Dual Bank Boot. | |
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_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. |
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 586 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_PSIZE_BYTE, FLASH_PSIZE_DOUBLE_WORD, FLASH_PSIZE_HALF_WORD, FLASH_PSIZE_WORD, FLASH_SECTOR_11, FLASH_VOLTAGE_RANGE_1, FLASH_VOLTAGE_RANGE_2, FLASH_VOLTAGE_RANGE_3, IS_FLASH_SECTOR, and IS_VOLTAGERANGE.
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 1311 of file stm32f4xx_hal_flash_ex.c.
References __HAL_FLASH_DATA_CACHE_DISABLE, __HAL_FLASH_DATA_CACHE_ENABLE, __HAL_FLASH_DATA_CACHE_RESET, __HAL_FLASH_INSTRUCTION_CACHE_DISABLE, __HAL_FLASH_INSTRUCTION_CACHE_ENABLE, and __HAL_FLASH_INSTRUCTION_CACHE_RESET.
Referenced by HAL_FLASH_IRQHandler(), and HAL_FLASHEx_Erase().
static void FLASH_MassErase | ( | uint8_t | VoltageRange, |
uint32_t | Banks | ||
) | [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:
|
Banks | Banks to be erased This parameter can be one of the following values:
|
HAL | Status |
Definition at line 542 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_BANK_1, FLASH_BANK_BOTH, FLASH_MER_BIT, IS_FLASH_BANK, and IS_VOLTAGERANGE.
Referenced by HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().
static HAL_StatusTypeDef FLASH_OB_BootConfig | ( | uint8_t | BootConfig | ) | [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 778 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), IS_OB_BOOT, and OPTCR_BYTE0_ADDRESS.
Referenced by HAL_FLASHEx_AdvOBProgram().
static HAL_StatusTypeDef FLASH_OB_BOR_LevelConfig | ( | uint8_t | Level | ) | [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 1231 of file stm32f4xx_hal_flash_ex.c.
References assert_param, IS_OB_BOR_LEVEL, and OPTCR_BYTE0_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
static HAL_StatusTypeDef FLASH_OB_DisablePCROP | ( | uint32_t | SectorBank1, |
uint32_t | SectorBank2, | ||
uint32_t | Banks | ||
) | [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 882 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_BANK_1, FLASH_BANK_BOTH, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), IS_FLASH_BANK, IS_OB_PCROP, OPTCR1_BYTE2_ADDRESS, and OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_AdvOBProgram().
static HAL_StatusTypeDef FLASH_OB_DisableWRP | ( | uint32_t | WRPSector, |
uint32_t | Banks | ||
) | [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:
|
Banks | Disable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | Status |
Definition at line 717 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_BANK_1, FLASH_BANK_BOTH, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), IS_FLASH_BANK, IS_OB_WRP_SECTOR, OB_WRP_SECTOR_12, OB_WRP_SECTOR_All, OPTCR1_BYTE2_ADDRESS, and OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
static HAL_StatusTypeDef FLASH_OB_EnablePCROP | ( | uint32_t | SectorBank1, |
uint32_t | SectorBank2, | ||
uint32_t | Banks | ||
) | [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 818 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_BANK_1, FLASH_BANK_BOTH, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), IS_FLASH_BANK, IS_OB_PCROP, OPTCR1_BYTE2_ADDRESS, and OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_AdvOBProgram().
static HAL_StatusTypeDef FLASH_OB_EnableWRP | ( | uint32_t | WRPSector, |
uint32_t | Banks | ||
) | [static] |
Enable 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:
|
Banks | Enable write protection on all the sectors for the specific bank This parameter can be one of the following values:
|
HAL | FLASH State |
Definition at line 646 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_BANK_1, FLASH_BANK_BOTH, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), IS_FLASH_BANK, IS_OB_WRP_SECTOR, OB_WRP_SECTOR_12, OB_WRP_SECTOR_All, OPTCR1_BYTE2_ADDRESS, and OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
static uint8_t FLASH_OB_GetBOR | ( | void | ) | [static] |
Returns the FLASH BOR level.
uint8_t | The FLASH BOR level:
|
Definition at line 1301 of file stm32f4xx_hal_flash_ex.c.
References OPTCR_BYTE0_ADDRESS.
Referenced by HAL_FLASHEx_OBGetConfig().
static uint8_t FLASH_OB_GetRDP | ( | void | ) | [static] |
Returns the FLASH Read Protection level.
FLASH | ReadOut Protection Status: This parameter can be one of the following values:
|
Definition at line 1273 of file stm32f4xx_hal_flash_ex.c.
References OB_RDP_LEVEL_0, OB_RDP_LEVEL_1, OB_RDP_LEVEL_2, and OPTCR_BYTE1_ADDRESS.
Referenced by HAL_FLASHEx_OBGetConfig().
static uint8_t FLASH_OB_GetUser | ( | void | ) | [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). |
Definition at line 1249 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBGetConfig().
static uint16_t FLASH_OB_GetWRP | ( | void | ) | [static] |
Return the FLASH Write Protection Option Bytes value.
uint16_t | FLASH Write Protection Option Bytes value |
Definition at line 1259 of file stm32f4xx_hal_flash_ex.c.
References OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_OBGetConfig().
static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig | ( | uint8_t | Level | ) | [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 1162 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), IS_OB_RDP_LEVEL, and OPTCR_BYTE1_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
static HAL_StatusTypeDef FLASH_OB_UserConfig | ( | uint8_t | Iwdg, |
uint8_t | Stop, | ||
uint8_t | Stdby | ||
) | [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 1196 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), IS_OB_IWDG_SOURCE, IS_OB_STDBY_SOURCE, IS_OB_STOP_SOURCE, and OPTCR_BYTE0_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().