STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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) |
Mass erase of FLASH memory. | |
static HAL_StatusTypeDef | FLASH_OB_EnableWRP (uint32_t WRPSector, uint32_t Banks) |
Enable the write protection of the desired bank 1 sectors. | |
static HAL_StatusTypeDef | FLASH_OB_DisableWRP (uint32_t WRPSector, uint32_t Banks) |
Disable the write protection of the desired bank 1 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. | |
HAL_StatusTypeDef | FLASH_WaitForLastOperation (uint32_t Timeout) |
Wait for a FLASH operation to complete. | |
void FLASH_Erase_Sector | ( | uint32_t | Sector, |
uint8_t | VoltageRange ) |
#include <stm32f4xx_hal_flash_ex.h>
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 977 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_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 | ) |
#include <stm32f4xx_hal_flash_ex.h>
Flush the instruction and data caches.
None |
Definition at line 1306 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 |
#include <stm32f4xx_hal_flash_ex.c>
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:
|
None |
Definition at line 948 of file stm32f4xx_hal_flash_ex.c.
References assert_param, IS_FLASH_BANK, and IS_VOLTAGERANGE.
Referenced by HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
Enable the write protection of the desired bank 1 sectors.
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 |
Definition at line 1027 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_OK, IS_FLASH_BANK, IS_OB_WRP_SECTOR, and OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
Disable the write protection of the desired bank 1 sectors.
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 |
Definition at line 1063 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_OK, IS_FLASH_BANK, IS_OB_WRP_SECTOR, and OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
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 1157 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_OK, IS_OB_RDP_LEVEL, and OPTCR_BYTE1_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
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 1191 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_OK, IS_OB_IWDG_SOURCE, IS_OB_STDBY_SOURCE, IS_OB_STOP_SOURCE, and OPTCR_BYTE0_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
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 1226 of file stm32f4xx_hal_flash_ex.c.
References assert_param, HAL_OK, IS_OB_BOR_LEVEL, and OPTCR_BYTE0_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
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 1244 of file stm32f4xx_hal_flash_ex.c.
Referenced by HAL_FLASHEx_OBGetConfig().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
Return the FLASH Write Protection Option Bytes value.
uint16_t | FLASH Write Protection Option Bytes value |
Definition at line 1254 of file stm32f4xx_hal_flash_ex.c.
References OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_OBGetConfig().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
Returns the FLASH Read Protection level.
FLASH | ReadOut Protection Status: This parameter can be one of the following values:
|
Definition at line 1268 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 |
#include <stm32f4xx_hal_flash_ex.c>
Returns the FLASH BOR level.
uint8_t | The FLASH BOR level:
|
Definition at line 1296 of file stm32f4xx_hal_flash_ex.c.
References OPTCR_BYTE0_ADDRESS.
Referenced by HAL_FLASHEx_OBGetConfig().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
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 1096 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_OK, IS_OB_PCROP, and OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_AdvOBProgram().
|
static |
#include <stm32f4xx_hal_flash_ex.c>
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 1124 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_OK, IS_OB_PCROP, and OPTCR_BYTE2_ADDRESS.
Referenced by HAL_FLASHEx_AdvOBProgram().
|
extern |
#include <stm32f4xx_hal_flash_ex.c>
Wait for a FLASH operation to complete.
Timeout | maximum flash operationtimeout |
HAL | Status |
Definition at line 544 of file stm32f4xx_hal_flash.c.
Referenced by FLASH_OB_DisablePCROP(), FLASH_OB_DisableWRP(), FLASH_OB_EnablePCROP(), FLASH_OB_EnableWRP(), FLASH_OB_RDP_LevelConfig(), FLASH_OB_UserConfig(), HAL_FLASH_OB_Launch(), HAL_FLASH_Program(), and HAL_FLASHEx_Erase().