STM32H735xx HAL User Manual
Functions
Extended IO operation functions
FLASHEx Exported Functions

Extended IO operation functions. More...

Functions

HAL_StatusTypeDef HAL_FLASHEx_Erase (FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError)
 Perform a mass erase or erase the specified FLASH memory sectors.
HAL_StatusTypeDef HAL_FLASHEx_Erase_IT (FLASH_EraseInitTypeDef *pEraseInit)
 Perform a mass erase or erase the specified FLASH memory sectors with interrupt enabled.
HAL_StatusTypeDef HAL_FLASHEx_OBProgram (FLASH_OBProgramInitTypeDef *pOBInit)
 Program option bytes.
void HAL_FLASHEx_OBGetConfig (FLASH_OBProgramInitTypeDef *pOBInit)
 Get the Option byte configuration.
HAL_StatusTypeDef HAL_FLASHEx_Unlock_Bank1 (void)
 Unlock the FLASH Bank1 control registers access.
HAL_StatusTypeDef HAL_FLASHEx_Lock_Bank1 (void)
 Locks the FLASH Bank1 control registers access.
HAL_StatusTypeDef HAL_FLASHEx_ComputeCRC (FLASH_CRCInitTypeDef *pCRCInit, uint32_t *CRC_Result)

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 Operations.


Function Documentation

HAL_StatusTypeDef HAL_FLASHEx_ComputeCRC ( FLASH_CRCInitTypeDef pCRCInit,
uint32_t *  CRC_Result 
)
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 (0xFFFFFFFF means that all the sectors have been correctly erased)
Return values:
HALStatus

Definition at line 176 of file stm32h7xx_hal_flash_ex.c.

References assert_param, FLASH_EraseInitTypeDef::Banks, FLASH_ProcessTypeDef::ErrorCode, FLASH_BANK_1, FLASH_Erase_Sector(), FLASH_MassErase(), FLASH_TIMEOUT_VALUE, FLASH_TYPEERASE_MASSERASE, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, IS_FLASH_BANK, IS_FLASH_TYPEERASE, FLASH_EraseInitTypeDef::NbSectors, pFlash, FLASH_EraseInitTypeDef::Sector, FLASH_EraseInitTypeDef::TypeErase, and FLASH_EraseInitTypeDef::VoltageRange.

HAL_StatusTypeDef HAL_FLASHEx_Erase_IT ( FLASH_EraseInitTypeDef pEraseInit)
HAL_StatusTypeDef HAL_FLASHEx_Lock_Bank1 ( void  )

Locks the FLASH Bank1 control registers access.

Return values:
HALStatus

Definition at line 647 of file stm32h7xx_hal_flash_ex.c.

Get the Option byte configuration.

Parameters:
pOBInitpointer to an FLASH_OBProgramInitTypeDef structure that contains the configuration information for the programming.
Note:
The parameter Banks of the pOBInit structure must be set exclusively to FLASH_BANK_1 or FLASH_BANK_2, as this parameter is use to get the given Bank WRP, PCROP and secured area configuration.
Return values:
None

Definition at line 557 of file stm32h7xx_hal_flash_ex.c.

References FLASH_OBProgramInitTypeDef::Banks, FLASH_OBProgramInitTypeDef::BootAddr0, FLASH_OBProgramInitTypeDef::BootAddr1, FLASH_OBProgramInitTypeDef::BORLevel, FLASH_BANK_1, FLASH_OB_CPUFreq_GetBoost(), FLASH_OB_GetBootAdd(), FLASH_OB_GetBOR(), FLASH_OB_GetPCROP(), FLASH_OB_GetRDP(), FLASH_OB_GetSecureArea(), FLASH_OB_GetUser(), FLASH_OB_GetWRP(), FLASH_OB_SharedRAM_GetConfig(), FLASH_OBProgramInitTypeDef::FreqBoostState, OPTIONBYTE_BOOTADD, OPTIONBYTE_BOR, OPTIONBYTE_FREQ_BOOST, OPTIONBYTE_PCROP, OPTIONBYTE_RDP, OPTIONBYTE_SECURE_AREA, OPTIONBYTE_SHARED_RAM, OPTIONBYTE_USER, OPTIONBYTE_WRP, FLASH_OBProgramInitTypeDef::OptionType, FLASH_OBProgramInitTypeDef::PCROPConfig, FLASH_OBProgramInitTypeDef::PCROPEndAddr, FLASH_OBProgramInitTypeDef::PCROPStartAddr, FLASH_OBProgramInitTypeDef::RDPLevel, FLASH_OBProgramInitTypeDef::SecureAreaConfig, FLASH_OBProgramInitTypeDef::SecureAreaEndAddr, FLASH_OBProgramInitTypeDef::SecureAreaStartAddr, FLASH_OBProgramInitTypeDef::SharedRamConfig, FLASH_OBProgramInitTypeDef::USERConfig, FLASH_OBProgramInitTypeDef::WRPSector, and FLASH_OBProgramInitTypeDef::WRPState.

HAL_StatusTypeDef HAL_FLASHEx_OBProgram ( FLASH_OBProgramInitTypeDef pOBInit)

Program option bytes.

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

Definition at line 414 of file stm32h7xx_hal_flash_ex.c.

References assert_param, FLASH_OBProgramInitTypeDef::Banks, FLASH_OBProgramInitTypeDef::BootAddr0, FLASH_OBProgramInitTypeDef::BootAddr1, FLASH_OBProgramInitTypeDef::BootConfig, FLASH_OBProgramInitTypeDef::BORLevel, FLASH_ProcessTypeDef::ErrorCode, FLASH_BANK_1, FLASH_OB_BootAddConfig(), FLASH_OB_BOR_LevelConfig(), FLASH_OB_CPUFreq_BoostConfig(), FLASH_OB_DisableWRP(), FLASH_OB_EnableWRP(), FLASH_OB_PCROPConfig(), FLASH_OB_RDPConfig(), FLASH_OB_SecureAreaConfig(), FLASH_OB_SharedRAM_Config(), FLASH_OB_UserConfig(), FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), FLASH_OBProgramInitTypeDef::FreqBoostState, HAL_FLASH_ERROR_NONE, IS_FLASH_BANK, IS_OPTIONBYTE, IS_WRPSTATE, OB_WRPSTATE_ENABLE, OPTIONBYTE_BOOTADD, OPTIONBYTE_BOR, OPTIONBYTE_FREQ_BOOST, OPTIONBYTE_PCROP, OPTIONBYTE_RDP, OPTIONBYTE_SECURE_AREA, OPTIONBYTE_SHARED_RAM, OPTIONBYTE_USER, OPTIONBYTE_WRP, FLASH_OBProgramInitTypeDef::OptionType, FLASH_OBProgramInitTypeDef::PCROPConfig, FLASH_OBProgramInitTypeDef::PCROPEndAddr, FLASH_OBProgramInitTypeDef::PCROPStartAddr, pFlash, FLASH_OBProgramInitTypeDef::RDPLevel, FLASH_OBProgramInitTypeDef::SecureAreaConfig, FLASH_OBProgramInitTypeDef::SecureAreaEndAddr, FLASH_OBProgramInitTypeDef::SecureAreaStartAddr, FLASH_OBProgramInitTypeDef::SharedRamConfig, FLASH_OBProgramInitTypeDef::USERConfig, FLASH_OBProgramInitTypeDef::USERType, FLASH_OBProgramInitTypeDef::WRPSector, and FLASH_OBProgramInitTypeDef::WRPState.

HAL_StatusTypeDef HAL_FLASHEx_Unlock_Bank1 ( void  )

Unlock the FLASH Bank1 control registers access.

Return values:
HALStatus

Definition at line 625 of file stm32h7xx_hal_flash_ex.c.

References FLASH_KEY1, and FLASH_KEY2.