STM32F439xx HAL User Manual
Functions
Programming operation functions
FLASH Exported Functions

Programming operation functions. More...

Functions

HAL_StatusTypeDef HAL_FLASH_Program (uint32_t TypeProgram, uint32_t Address, uint64_t Data)
 Program byte, halfword, word or double word at a specified address.
HAL_StatusTypeDef HAL_FLASH_Program_IT (uint32_t TypeProgram, uint32_t Address, uint64_t Data)
 Program byte, halfword, word or double word at a specified address with interrupt enabled.
void HAL_FLASH_IRQHandler (void)
 This function handles FLASH interrupt request.
__weak void HAL_FLASH_EndOfOperationCallback (uint32_t ReturnValue)
 FLASH end of operation interrupt callback.
__weak void HAL_FLASH_OperationErrorCallback (uint32_t ReturnValue)
 FLASH operation error interrupt callback.

Detailed Description

Programming operation functions.

 ===============================================================================
                  ##### Programming operation functions #####
 ===============================================================================  
    [..]
    This subsection provides a set of functions allowing to manage the FLASH 
    program operations.


Function Documentation

void HAL_FLASH_EndOfOperationCallback ( uint32_t  ReturnValue)

FLASH end of operation interrupt callback.

Parameters:
ReturnValueThe value saved in this parameter depends on the ongoing procedure Mass Erase: Bank number which has been requested to erase Sectors Erase: Sector which has been erased (if 0xFFFFFFFFU, it means that all the selected sectors have been erased) Program: Address which was selected for data program
Return values:
None

Definition at line 400 of file stm32f4xx_hal_flash.c.

Referenced by HAL_FLASH_IRQHandler().

void HAL_FLASH_IRQHandler ( void  )
void HAL_FLASH_OperationErrorCallback ( uint32_t  ReturnValue)

FLASH operation error interrupt callback.

Parameters:
ReturnValueThe value saved in this parameter depends on the ongoing procedure Mass Erase: Bank number which has been requested to erase Sectors Erase: Sector number which returned an error Program: Address which was selected for data program
Return values:
None

Definition at line 417 of file stm32f4xx_hal_flash.c.

Referenced by HAL_FLASH_IRQHandler().

HAL_StatusTypeDef HAL_FLASH_Program ( uint32_t  TypeProgram,
uint32_t  Address,
uint64_t  Data 
)

Program byte, halfword, word or double word at a specified address.

Parameters:
TypeProgramIndicate the way to program at a specified address. This parameter can be a value of FLASH Type Program
Addressspecifies the address to be programmed.
Dataspecifies the data to be programmed
Return values:
HAL_StatusTypeDefHAL Status

Definition at line 172 of file stm32f4xx_hal_flash.c.

References assert_param, FLASH_Program_Byte(), FLASH_Program_DoubleWord(), FLASH_Program_HalfWord(), FLASH_Program_Word(), FLASH_TIMEOUT_VALUE, FLASH_TYPEPROGRAM_BYTE, FLASH_TYPEPROGRAM_HALFWORD, FLASH_TYPEPROGRAM_WORD, FLASH_WaitForLastOperation(), and IS_FLASH_TYPEPROGRAM.

HAL_StatusTypeDef HAL_FLASH_Program_IT ( uint32_t  TypeProgram,
uint32_t  Address,
uint64_t  Data 
)

Program byte, halfword, word or double word at a specified address with interrupt enabled.

Parameters:
TypeProgramIndicate the way to program at a specified address. This parameter can be a value of FLASH Type Program
Addressspecifies the address to be programmed.
Dataspecifies the data to be programmed
Return values:
HALStatus

Definition at line 230 of file stm32f4xx_hal_flash.c.

References __HAL_FLASH_ENABLE_IT, FLASH_ProcessTypeDef::Address, assert_param, FLASH_IT_EOP, FLASH_IT_ERR, FLASH_PROC_PROGRAM, FLASH_Program_Byte(), FLASH_Program_DoubleWord(), FLASH_Program_HalfWord(), FLASH_Program_Word(), FLASH_TYPEPROGRAM_BYTE, FLASH_TYPEPROGRAM_HALFWORD, FLASH_TYPEPROGRAM_WORD, IS_FLASH_TYPEPROGRAM, and FLASH_ProcessTypeDef::ProcedureOnGoing.