STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
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_AdvOBProgram (FLASH_AdvOBProgramInitTypeDef *pAdvOBInit) |
Program option bytes. | |
void | HAL_FLASHEx_AdvOBGetConfig (FLASH_AdvOBProgramInitTypeDef *pAdvOBInit) |
Get the OBEX byte configuration. | |
HAL_StatusTypeDef | HAL_FLASHEx_OB_SelectPCROP (void) |
Select the Protection Mode. | |
HAL_StatusTypeDef | HAL_FLASHEx_OB_DeSelectPCROP (void) |
Deselect the Protection Mode. | |
Extended IO operation functions.
=============================================================================== ##### Extended programming operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the Extension FLASH programming operations.
HAL_StatusTypeDef HAL_FLASHEx_Erase | ( | FLASH_EraseInitTypeDef * | pEraseInit, |
uint32_t * | SectorError ) |
#include <stm32f4xx_hal_flash_ex.h>
Perform a mass erase or erase the specified FLASH memory sectors.
[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) |
HAL | Status |
Definition at line 160 of file stm32f4xx_hal_flash_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, FLASH_EraseInitTypeDef::Banks, FLASH_Erase_Sector(), FLASH_FlushCaches(), FLASH_MassErase(), FLASH_TIMEOUT_VALUE, FLASH_TYPEERASE_MASSERASE, FLASH_WaitForLastOperation(), HAL_ERROR, HAL_OK, IS_FLASH_NBSECTORS, 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 | ) |
#include <stm32f4xx_hal_flash_ex.h>
Perform a mass erase or erase the specified FLASH memory sectors with interrupt enabled.
pEraseInit | pointer to an FLASH_EraseInitTypeDef structure that contains the configuration information for the erasing. |
HAL | Status |
Definition at line 231 of file stm32f4xx_hal_flash_ex.c.
References __HAL_FLASH_CLEAR_FLAG, __HAL_FLASH_ENABLE_IT, assert_param, FLASH_ProcessTypeDef::Bank, FLASH_EraseInitTypeDef::Banks, FLASH_Erase_Sector(), FLASH_FLAG_EOP, FLASH_FLAG_OPERR, FLASH_FLAG_PGAERR, FLASH_FLAG_PGPERR, FLASH_FLAG_PGSERR, FLASH_FLAG_WRPERR, FLASH_IT_EOP, FLASH_IT_ERR, FLASH_MassErase(), FLASH_PROC_MASSERASE, FLASH_PROC_SECTERASE, FLASH_TYPEERASE_MASSERASE, HAL_OK, IS_FLASH_NBSECTORS, IS_FLASH_TYPEERASE, FLASH_EraseInitTypeDef::NbSectors, FLASH_ProcessTypeDef::NbSectorsToErase, pFlash, FLASH_ProcessTypeDef::ProcedureOnGoing, FLASH_EraseInitTypeDef::Sector, FLASH_ProcessTypeDef::Sector, FLASH_EraseInitTypeDef::TypeErase, FLASH_ProcessTypeDef::VoltageForErase, and FLASH_EraseInitTypeDef::VoltageRange.
HAL_StatusTypeDef HAL_FLASHEx_OBProgram | ( | FLASH_OBProgramInitTypeDef * | pOBInit | ) |
#include <stm32f4xx_hal_flash_ex.h>
Program option bytes.
pOBInit | pointer to an FLASH_OBInitStruct structure that contains the configuration information for the programming. |
HAL | Status |
Definition at line 281 of file stm32f4xx_hal_flash_ex.c.
References __HAL_LOCK, __HAL_UNLOCK, assert_param, FLASH_OBProgramInitTypeDef::Banks, FLASH_OBProgramInitTypeDef::BORLevel, FLASH_OB_BOR_LevelConfig(), FLASH_OB_DisableWRP(), FLASH_OB_EnableWRP(), FLASH_OB_RDP_LevelConfig(), FLASH_OB_UserConfig(), HAL_ERROR, IS_OPTIONBYTE, IS_WRPSTATE, OB_IWDG_SW, OB_STDBY_NO_RST, OB_STOP_NO_RST, OB_WRPSTATE_ENABLE, OPTIONBYTE_BOR, OPTIONBYTE_RDP, OPTIONBYTE_USER, OPTIONBYTE_WRP, FLASH_OBProgramInitTypeDef::OptionType, pFlash, FLASH_OBProgramInitTypeDef::RDPLevel, FLASH_OBProgramInitTypeDef::USERConfig, FLASH_OBProgramInitTypeDef::WRPSector, and FLASH_OBProgramInitTypeDef::WRPState.
void HAL_FLASHEx_OBGetConfig | ( | FLASH_OBProgramInitTypeDef * | pOBInit | ) |
#include <stm32f4xx_hal_flash_ex.h>
Get the Option byte configuration.
pOBInit | pointer to an FLASH_OBInitStruct structure that contains the configuration information for the programming. |
None |
Definition at line 340 of file stm32f4xx_hal_flash_ex.c.
References FLASH_OBProgramInitTypeDef::BORLevel, FLASH_OB_GetBOR(), FLASH_OB_GetRDP(), FLASH_OB_GetUser(), FLASH_OB_GetWRP(), OPTIONBYTE_BOR, OPTIONBYTE_RDP, OPTIONBYTE_USER, OPTIONBYTE_WRP, FLASH_OBProgramInitTypeDef::OptionType, FLASH_OBProgramInitTypeDef::RDPLevel, FLASH_OBProgramInitTypeDef::USERConfig, and FLASH_OBProgramInitTypeDef::WRPSector.
HAL_StatusTypeDef HAL_FLASHEx_AdvOBProgram | ( | FLASH_AdvOBProgramInitTypeDef * | pAdvOBInit | ) |
#include <stm32f4xx_hal_flash_ex.h>
Program option bytes.
pAdvOBInit | pointer to an FLASH_AdvOBProgramInitTypeDef structure that contains the configuration information for the programming. |
HAL | Status |
Definition at line 369 of file stm32f4xx_hal_flash_ex.c.
References assert_param, FLASH_OB_DisablePCROP(), FLASH_OB_EnablePCROP(), HAL_ERROR, IS_OBEX, IS_PCROPSTATE, OB_PCROP_STATE_ENABLE, OPTIONBYTE_PCROP, FLASH_AdvOBProgramInitTypeDef::OptionType, FLASH_AdvOBProgramInitTypeDef::PCROPState, and FLASH_AdvOBProgramInitTypeDef::Sectors.
void HAL_FLASHEx_AdvOBGetConfig | ( | FLASH_AdvOBProgramInitTypeDef * | pAdvOBInit | ) |
#include <stm32f4xx_hal_flash_ex.h>
Get the OBEX byte configuration.
pAdvOBInit | pointer to an FLASH_AdvOBProgramInitTypeDef structure that contains the configuration information for the programming. |
None |
Definition at line 425 of file stm32f4xx_hal_flash_ex.c.
References OPTCR_BYTE0_ADDRESS, OPTCR_BYTE2_ADDRESS, and FLASH_AdvOBProgramInitTypeDef::Sectors.
HAL_StatusTypeDef HAL_FLASHEx_OB_SelectPCROP | ( | void | ) |
#include <stm32f4xx_hal_flash_ex.h>
Select the Protection Mode.
HAL | Status |
Definition at line 457 of file stm32f4xx_hal_flash_ex.c.
References HAL_OK, OB_PCROP_SELECTED, and OPTCR_BYTE3_ADDRESS.
HAL_StatusTypeDef HAL_FLASHEx_OB_DeSelectPCROP | ( | void | ) |
#include <stm32f4xx_hal_flash_ex.h>
Deselect the Protection Mode.
HAL | Status |
Definition at line 482 of file stm32f4xx_hal_flash_ex.c.
References HAL_OK, OB_PCROP_DESELECTED, and OPTCR_BYTE3_ADDRESS.