STM32F103xB HAL User Manual
|
Functions | |
static void | FLASH_MassErase (uint32_t Banks) |
Full erase of FLASH memory Bank. | |
void | FLASH_PageErase (uint32_t PageAddress) |
Erase the specified FLASH memory page. | |
static HAL_StatusTypeDef | FLASH_OB_EnableWRP (uint32_t WriteProtectPage) |
Enable the write protection of the desired pages. | |
static HAL_StatusTypeDef | FLASH_OB_DisableWRP (uint32_t WriteProtectPage) |
Disable the write protection of the desired pages. | |
static HAL_StatusTypeDef | FLASH_OB_RDP_LevelConfig (uint8_t ReadProtectLevel) |
Set the read protection level. | |
static HAL_StatusTypeDef | FLASH_OB_UserConfig (uint8_t UserConfig) |
Program the FLASH User Option Byte. | |
static HAL_StatusTypeDef | FLASH_OB_ProgramData (uint32_t Address, uint8_t Data) |
Programs a half word at a specified Option Byte Data address. | |
static uint32_t | FLASH_OB_GetWRP (void) |
Return the FLASH Write Protection Option Bytes value. | |
static uint32_t | FLASH_OB_GetRDP (void) |
Returns the FLASH Read Protection level. | |
static uint8_t | FLASH_OB_GetUser (void) |
Return the FLASH User Option Byte value. |
static void FLASH_MassErase | ( | uint32_t | Banks | ) | [static] |
Full erase of FLASH memory Bank.
Banks | Banks to be erased This parameter can be one of the following values:
|
None |
Definition at line 595 of file stm32f1xx_hal_flash_ex.c.
References assert_param, FLASH_ProcessTypeDef::ErrorCode, HAL_FLASH_ERROR_NONE, and IS_FLASH_BANK.
Referenced by HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().
static HAL_StatusTypeDef FLASH_OB_DisableWRP | ( | uint32_t | WriteProtectPage | ) | [static] |
Disable the write protection of the desired pages.
WriteProtectPage | specifies the page(s) to be write unprotected. The value of this parameter depend on device used within the same series |
HAL | status |
Definition at line 767 of file stm32f1xx_hal_flash_ex.c.
References assert_param, FLASH_ProcessTypeDef::ErrorCode, FLASH_OB_GetWRP(), FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, HAL_FLASHEx_OBErase(), IS_OB_WRP, OB_WRP_PAGES0TO31MASK, OB_WRP_PAGES32TO63MASK, OB_WRP_PAGES64TO95MASK, and OB_WRP_PAGES96TO127MASK.
Referenced by HAL_FLASHEx_OBProgram().
static HAL_StatusTypeDef FLASH_OB_EnableWRP | ( | uint32_t | WriteProtectPage | ) | [static] |
Enable the write protection of the desired pages.
WriteProtectPage | specifies the page(s) to be write protected. The value of this parameter depend on device used within the same series |
HAL | status |
Definition at line 644 of file stm32f1xx_hal_flash_ex.c.
References assert_param, FLASH_ProcessTypeDef::ErrorCode, FLASH_OB_GetWRP(), FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, HAL_FLASHEx_OBErase(), IS_OB_WRP, OB_WRP_PAGES0TO31MASK, OB_WRP_PAGES32TO63MASK, OB_WRP_PAGES64TO95MASK, and OB_WRP_PAGES96TO127MASK.
Referenced by HAL_FLASHEx_OBProgram().
static uint32_t FLASH_OB_GetRDP | ( | void | ) | [static] |
Returns the FLASH Read Protection level.
FLASH | RDP level This parameter can be one of the following values:
|
Definition at line 1034 of file stm32f1xx_hal_flash_ex.c.
References OB_RDP_LEVEL_0, and OB_RDP_LEVEL_1.
Referenced by HAL_FLASHEx_OBErase(), and HAL_FLASHEx_OBGetConfig().
static uint8_t FLASH_OB_GetUser | ( | void | ) | [static] |
Return the FLASH User Option Byte value.
The | FLASH User Option Bytes values: FLASH_OBR_IWDG_SW(Bit2), FLASH_OBR_nRST_STOP(Bit3),FLASH_OBR_nRST_STDBY(Bit4). And FLASH_OBR_BFB2(Bit5) for STM32F101xG and STM32F103xG . |
Definition at line 1060 of file stm32f1xx_hal_flash_ex.c.
References FLASH_POSITION_IWDGSW_BIT.
Referenced by HAL_FLASHEx_OBGetConfig().
static uint32_t FLASH_OB_GetWRP | ( | void | ) | [static] |
Return the FLASH Write Protection Option Bytes value.
The | FLASH Write Protection Option Bytes value |
Definition at line 1021 of file stm32f1xx_hal_flash_ex.c.
Referenced by FLASH_OB_DisableWRP(), FLASH_OB_EnableWRP(), and HAL_FLASHEx_OBGetConfig().
static HAL_StatusTypeDef FLASH_OB_ProgramData | ( | uint32_t | Address, |
uint8_t | Data | ||
) | [static] |
Programs a half word at a specified Option Byte Data address.
Address | specifies the address to be programmed. This parameter can be 0x1FFFF804 or 0x1FFFF806. |
Data | specifies the data to be programmed. |
HAL | status |
Definition at line 988 of file stm32f1xx_hal_flash_ex.c.
References assert_param, FLASH_ProcessTypeDef::ErrorCode, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, and IS_OB_DATA_ADDRESS.
Referenced by HAL_FLASHEx_OBProgram().
static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig | ( | uint8_t | ReadProtectLevel | ) | [static] |
Set the read protection level.
ReadProtectLevel | specifies the read protection level. This parameter can be one of the following values:
|
HAL | status |
Definition at line 886 of file stm32f1xx_hal_flash_ex.c.
References assert_param, FLASH_ProcessTypeDef::ErrorCode, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, and IS_OB_RDP_LEVEL.
Referenced by HAL_FLASHEx_OBErase(), and HAL_FLASHEx_OBProgram().
static HAL_StatusTypeDef FLASH_OB_UserConfig | ( | uint8_t | UserConfig | ) | [static] |
Program the FLASH User Option Byte.
UserConfig | The FLASH User Option Bytes values FLASH_OBR_IWDG_SW(Bit2), FLASH_OBR_nRST_STOP(Bit3),FLASH_OBR_nRST_STDBY(Bit4). And BFBF2(Bit5) for STM32F101xG and STM32F103xG . |
HAL | status |
Definition at line 937 of file stm32f1xx_hal_flash_ex.c.
References assert_param, FLASH_ProcessTypeDef::ErrorCode, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, IS_OB_IWDG_SOURCE, IS_OB_STDBY_SOURCE, IS_OB_STOP_SOURCE, OB_IWDG_SW, OB_STDBY_NO_RST, and OB_STOP_NO_RST.
Referenced by HAL_FLASHEx_OBProgram().
void FLASH_PageErase | ( | uint32_t | PageAddress | ) |
Erase the specified FLASH memory page.
PageAddress | FLASH page to erase The value of this parameter depend on device used within the same series |
None |
Definition at line 1089 of file stm32f1xx_hal_flash_ex.c.
References FLASH_ProcessTypeDef::ErrorCode, and HAL_FLASH_ERROR_NONE.
Referenced by HAL_FLASH_IRQHandler(), HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().