STM32F4xx_HAL_Driver  1.8.3
Extended IO operation functions

Extended IO operation functions. More...

+ Collaboration diagram for Extended IO operation functions:

Functions

HAL_StatusTypeDef HAL_FLASHEx_Erase (FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError)
 Perform a mass erase or erase the specified FLASH memory sectors. More...
 
HAL_StatusTypeDef HAL_FLASHEx_Erase_IT (FLASH_EraseInitTypeDef *pEraseInit)
 Perform a mass erase or erase the specified FLASH memory sectors with interrupt enabled. More...
 
HAL_StatusTypeDef HAL_FLASHEx_OBProgram (FLASH_OBProgramInitTypeDef *pOBInit)
 Program option bytes. More...
 
void HAL_FLASHEx_OBGetConfig (FLASH_OBProgramInitTypeDef *pOBInit)
 Get the Option byte configuration. More...
 
HAL_StatusTypeDef HAL_FLASHEx_AdvOBProgram (FLASH_AdvOBProgramInitTypeDef *pAdvOBInit)
 Program option bytes. More...
 
void HAL_FLASHEx_AdvOBGetConfig (FLASH_AdvOBProgramInitTypeDef *pAdvOBInit)
 Get the OBEX byte configuration. More...
 
HAL_StatusTypeDef HAL_FLASHEx_OB_SelectPCROP (void)
 Select the Protection Mode. More...
 
HAL_StatusTypeDef HAL_FLASHEx_OB_DeSelectPCROP (void)
 Deselect the Protection Mode. More...
 
uint16_t HAL_FLASHEx_OB_GetBank2WRP (void)
 Returns the FLASH Write Protection Option Bytes value for Bank 2. More...
 

Detailed Description

Extended IO operation functions.

 ===============================================================================
                ##### Extended programming operation functions #####
 ===============================================================================
    [..]
    This subsection provides a set of functions allowing to manage the Extension FLASH
    programming operations.

Function Documentation

◆ HAL_FLASHEx_AdvOBGetConfig()

void HAL_FLASHEx_AdvOBGetConfig ( FLASH_AdvOBProgramInitTypeDef pAdvOBInit)

Get the OBEX byte configuration.

Parameters
pAdvOBInitpointer to an FLASH_AdvOBProgramInitTypeDef structure that contains the configuration information for the programming.
Return values
None

Definition at line 425 of file stm32f4xx_hal_flash_ex.c.

◆ HAL_FLASHEx_AdvOBProgram()

HAL_StatusTypeDef HAL_FLASHEx_AdvOBProgram ( FLASH_AdvOBProgramInitTypeDef pAdvOBInit)

Program option bytes.

Parameters
pAdvOBInitpointer to an FLASH_AdvOBProgramInitTypeDef structure that contains the configuration information for the programming.
Return values
HALStatus

Definition at line 369 of file stm32f4xx_hal_flash_ex.c.

◆ HAL_FLASHEx_Erase()

HAL_StatusTypeDef HAL_FLASHEx_Erase ( FLASH_EraseInitTypeDef pEraseInit,
uint32_t *  SectorError 
)

Perform a mass erase or erase the specified FLASH memory sectors.

Parameters
[in]pEraseInitpointer to an FLASH_EraseInitTypeDef structure that contains the configuration information for the erasing.
[out]SectorErrorpointer 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
HALStatus

Definition at line 160 of file stm32f4xx_hal_flash_ex.c.

◆ HAL_FLASHEx_Erase_IT()

HAL_StatusTypeDef HAL_FLASHEx_Erase_IT ( FLASH_EraseInitTypeDef pEraseInit)

Perform a mass erase or erase the specified FLASH memory sectors with interrupt enabled.

Parameters
pEraseInitpointer to an FLASH_EraseInitTypeDef structure that contains the configuration information for the erasing.
Return values
HALStatus

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
HALStatus

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
TheFLASH 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
HALStatus

Definition at line 457 of file stm32f4xx_hal_flash_ex.c.

◆ HAL_FLASHEx_OBGetConfig()

void HAL_FLASHEx_OBGetConfig ( FLASH_OBProgramInitTypeDef pOBInit)

Get the Option byte configuration.

Parameters
pOBInitpointer to an FLASH_OBInitStruct structure that contains the configuration information for the programming.
Return values
None

Definition at line 340 of file stm32f4xx_hal_flash_ex.c.

◆ HAL_FLASHEx_OBProgram()

HAL_StatusTypeDef HAL_FLASHEx_OBProgram ( FLASH_OBProgramInitTypeDef pOBInit)

Program option bytes.

Parameters
pOBInitpointer to an FLASH_OBInitStruct structure that contains the configuration information for the programming.
Return values
HALStatus

Definition at line 281 of file stm32f4xx_hal_flash_ex.c.