HAL
FLASH_Erase_Sector() is only used within HAL.
 
Symbols
loading...
Files
loading...

FLASH_Erase_Sector() function

Erase the specified FLASH memory sector

Syntax

void FLASH_Erase_Sector(uint32_t Sector,     uint8_t VoltageRange);
Implemented in stm32f4xx_hal_flash_ex.c:980

Arguments

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: @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V, the operation will be done by byte (8-bit) @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V, the operation will be done by half word (16-bit) @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V, the operation will be done by word (32-bit) @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External Vpp, the operation will be done by double word (64-bit)

Return value

None

References

LocationReferrerText
stm32f4xx_hal_flash_ex.c:584
void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange)
stm32f4xx_hal_flash_ex.c:980
void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange)
stm32f4xx_hal_flash_ex.h:1044
void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange);
stm32f4xx_hal_flash.c:320HAL_FLASH_IRQHandler()
FLASH_Erase_Sector(addresstmp, pFlash.VoltageForErase);
stm32f4xx_hal_flash_ex.c:198HAL_FLASHEx_Erase()
FLASH_Erase_Sector(index, (uint8_t) pEraseInit->VoltageRange);
stm32f4xx_hal_flash_ex.c:271HAL_FLASHEx_Erase_IT()
FLASH_Erase_Sector(pEraseInit->Sector, pEraseInit->VoltageRange);

Call Tree

Functions calling FLASH_Erase_Sector()
Functions called by FLASH_Erase_Sector()
FLASH_Erase_Sector()
assert_failed()
all items filtered out
Data read by FLASH_Erase_Sector()
Data written by FLASH_Erase_Sector()
FLASH_Erase_Sector()::tmp_psize
all items filtered out
FLASH_Erase_Sector()
FLASH_Erase_Sector()::tmp_psize
all items filtered out
Type of FLASH_Erase_Sector()
FLASH_Erase_Sector()
uint32_t
all items filtered out