STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
FLASH Private Functions
Collaboration diagram for FLASH Private Functions:

Functions

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.
 
HAL_StatusTypeDef FLASH_WaitForLastOperation (uint32_t Timeout)
 Wait for a FLASH operation to complete.
 

Detailed Description

Function Documentation

◆ FLASH_Program_DoubleWord()

static void FLASH_Program_DoubleWord ( uint32_t Address,
uint64_t Data )
static

#include <stm32f4xx_hal_flash.c>

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 604 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().

◆ FLASH_Program_Word()

static void FLASH_Program_Word ( uint32_t Address,
uint32_t Data )
static

#include <stm32f4xx_hal_flash.c>

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 638 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().

◆ FLASH_Program_HalfWord()

static void FLASH_Program_HalfWord ( uint32_t Address,
uint16_t Data )
static

#include <stm32f4xx_hal_flash.c>

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 663 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().

◆ FLASH_Program_Byte()

static void FLASH_Program_Byte ( uint32_t Address,
uint8_t Data )
static

#include <stm32f4xx_hal_flash.c>

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 688 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().

◆ FLASH_SetErrorCode()

◆ FLASH_WaitForLastOperation()