HAL FLASH Extension Driver
SectorError: pointer to variable that contains the
configuration information on faulty sector in case of error
(0xFFFFFFFF means that all the sectors have been correctly
erased)
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.
pEraseInit: pointer to an FLASH_EraseInitTypeDef structure
that contains the configuration information for the erasing.
HAL_FLASHEx_OBProgram
HAL_StatusTypeDef HAL_FLASHEx_OBProgram
(FLASH_OBProgramInitTypeDef * pOBInit)
pOBInit: pointer to an FLASH_OBInitStruct structure that
contains the configuration information for the programming.
HAL_FLASHEx_OBGetConfig
void HAL_FLASHEx_OBGetConfig
(FLASH_OBProgramInitTypeDef * pOBInit)
Get the Option byte configuration.
pOBInit: pointer to an FLASH_OBInitStruct structure that
contains the configuration information for the programming.
FLASH_Erase_Sector
void FLASH_Erase_Sector (uint32_t Sector, uint8_t
VoltageRange)
Erase the specified FLASH memory sector.
Sector: FLASH sector to erase The value of this parameter
depend on device used within the same series
VoltageRange: The device voltage range which defines the
erase parallelism. This parameter can be one of the following
values:
FLASH_VOLTAGE_RANGE_1: when the device voltage
range is 1.8V to 2.1V, the operation will be done by byte
(8-bit)
FLASH_VOLTAGE_RANGE_2: when the device voltage