Extended IO operation functions.
More...
Extended IO operation functions.
===============================================================================
##### Extended programming operation functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to manage the Extension FLASH
programming operations.
◆ HAL_FLASHEx_AdvOBGetConfig()
◆ HAL_FLASHEx_AdvOBProgram()
◆ HAL_FLASHEx_Erase()
Perform a mass erase or erase the specified FLASH memory sectors.
- Parameters
-
[in] | pEraseInit | pointer to an FLASH_EraseInitTypeDef structure that contains the configuration information for the erasing. |
[out] | SectorError | pointer to variable that contains the configuration information on faulty sector in case of error (0xFFFFFFFFU means that all the sectors have been correctly erased) |
- Return values
-
Definition at line 160 of file stm32f4xx_hal_flash_ex.c.
◆ HAL_FLASHEx_Erase_IT()
Perform a mass erase or erase the specified FLASH memory sectors with interrupt enabled.
- Parameters
-
pEraseInit | pointer to an FLASH_EraseInitTypeDef structure that contains the configuration information for the erasing. |
- Return values
-
Definition at line 231 of file stm32f4xx_hal_flash_ex.c.
◆ HAL_FLASHEx_OB_DeSelectPCROP()
HAL_StatusTypeDef HAL_FLASHEx_OB_DeSelectPCROP |
( |
void |
| ) |
|
Deselect the Protection Mode.
- Note
- After PCROP activated Option Byte modification NOT POSSIBLE! excepted Global Read Out Protection modification (from level1 to level0)
-
Once SPRMOD bit is active unprotection of a protected sector is not possible
-
Read a protected sector will set RDERR Flag and write a protected sector will set WRPERR Flag
-
This function can be used only for STM32F42xxx/STM32F43xxx/STM32F401xx/STM32F411xx/STM32F446xx/ STM32F469xx/STM32F479xx/STM32F412xx/STM32F413xx devices.
- Return values
-
Definition at line 482 of file stm32f4xx_hal_flash_ex.c.
◆ HAL_FLASHEx_OB_GetBank2WRP()
uint16_t HAL_FLASHEx_OB_GetBank2WRP |
( |
void |
| ) |
|
Returns the FLASH Write Protection Option Bytes value for Bank 2.
- Note
- This function can be used only for STM32F42xxx/STM32F43xxx/STM32F469xx/STM32F479xx devices.
- Return values
-
The | FLASH Write Protection Option Bytes value |
Definition at line 504 of file stm32f4xx_hal_flash_ex.c.
◆ HAL_FLASHEx_OB_SelectPCROP()
HAL_StatusTypeDef HAL_FLASHEx_OB_SelectPCROP |
( |
void |
| ) |
|
Select the Protection Mode.
- Note
- After PCROP activated Option Byte modification NOT POSSIBLE! excepted Global Read Out Protection modification (from level1 to level0)
-
Once SPRMOD bit is active unprotection of a protected sector is not possible
-
Read a protected sector will set RDERR Flag and write a protected sector will set WRPERR Flag
-
This function can be used only for STM32F42xxx/STM32F43xxx/STM32F401xx/STM32F411xx/STM32F446xx/ STM32F469xx/STM32F479xx/STM32F412xx/STM32F413xx devices.
- Return values
-
Definition at line 457 of file stm32f4xx_hal_flash_ex.c.
◆ HAL_FLASHEx_OBGetConfig()
Get the Option byte configuration.
- Parameters
-
pOBInit | pointer to an FLASH_OBInitStruct structure that contains the configuration information for the programming. |
- Return values
-
Definition at line 340 of file stm32f4xx_hal_flash_ex.c.
◆ HAL_FLASHEx_OBProgram()
Program option bytes.
- Parameters
-
pOBInit | pointer to an FLASH_OBInitStruct structure that contains the configuration information for the programming. |
- Return values
-
Definition at line 281 of file stm32f4xx_hal_flash_ex.c.