STM32F439xx HAL User Manual
Modules | Functions
FLASH Exported Functions
FLASH

Modules

 Programming operation functions
 

Programming operation functions.


 Peripheral Control functions
 

management functions


 Peripheral State and Errors functions
 

Peripheral Errors functions.


Functions

HAL_StatusTypeDef FLASH_WaitForLastOperation (uint32_t Timeout)
 Wait for a FLASH operation to complete.
static void FLASH_Program_DoubleWord (uint32_t Address, uint64_t Data)
 Program a double word (64-bit) at a specified address.
static void FLASH_Program_Word (uint32_t Address, uint32_t Data)
 Program word (32-bit) at a specified address.
static void FLASH_Program_HalfWord (uint32_t Address, uint16_t Data)
 Program a half-word (16-bit) at a specified address.
static void FLASH_Program_Byte (uint32_t Address, uint8_t Data)
 Program byte (8-bit) at a specified address.
static void FLASH_SetErrorCode (void)
 Set the specific FLASH error flag.

Function Documentation

static void FLASH_Program_Byte ( uint32_t  Address,
uint8_t  Data 
) [static]

Program byte (8-bit) at a specified address.

Note:
This function must be used when the device voltage range is from 1.8V to 3.6V.
If an erase and a program operations are requested simultaneously, the erase operation is performed before the program one.
Parameters:
Addressspecifies the address to be programmed.
Dataspecifies the data to be programmed.
Return values:
None

Definition at line 706 of file stm32f4xx_hal_flash.c.

References assert_param, FLASH_PSIZE_BYTE, and IS_FLASH_ADDRESS.

Referenced by HAL_FLASH_Program(), and HAL_FLASH_Program_IT().

static void FLASH_Program_DoubleWord ( uint32_t  Address,
uint64_t  Data 
) [static]

Program a double word (64-bit) at a specified address.

Note:
This function must be used when the device voltage range is from 2.7V to 3.6V and Vpp in the range 7V to 9V.
If an erase and a program operations are requested simultaneously, the erase operation is performed before the program one.
Parameters:
Addressspecifies the address to be programmed.
Dataspecifies the data to be programmed.
Return values:
None

Definition at line 628 of file stm32f4xx_hal_flash.c.

References assert_param, FLASH_PSIZE_DOUBLE_WORD, and IS_FLASH_ADDRESS.

Referenced by HAL_FLASH_Program(), and HAL_FLASH_Program_IT().

static void FLASH_Program_HalfWord ( uint32_t  Address,
uint16_t  Data 
) [static]

Program a half-word (16-bit) at a specified address.

Note:
This function must be used when the device voltage range is from 2.1V to 3.6V.
If an erase and a program operations are requested simultaneously, the erase operation is performed before the program one.
Parameters:
Addressspecifies the address to be programmed.
Dataspecifies the data to be programmed.
Return values:
None

Definition at line 681 of file stm32f4xx_hal_flash.c.

References assert_param, FLASH_PSIZE_HALF_WORD, and IS_FLASH_ADDRESS.

Referenced by HAL_FLASH_Program(), and HAL_FLASH_Program_IT().

static void FLASH_Program_Word ( uint32_t  Address,
uint32_t  Data 
) [static]

Program word (32-bit) at a specified address.

Note:
This function must be used when the device voltage range is from 2.7V to 3.6V.
If an erase and a program operations are requested simultaneously, the erase operation is performed before the program one.
Parameters:
Addressspecifies the address to be programmed.
Dataspecifies the data to be programmed.
Return values:
None

Definition at line 656 of file stm32f4xx_hal_flash.c.

References assert_param, FLASH_PSIZE_WORD, and IS_FLASH_ADDRESS.

Referenced by HAL_FLASH_Program(), and HAL_FLASH_Program_IT().

static void FLASH_SetErrorCode ( void  ) [static]
HAL_StatusTypeDef FLASH_WaitForLastOperation ( uint32_t  Timeout)