STM32L486xx 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 double word or fast program of a row at a specified address.
HAL_StatusTypeDef HAL_FLASH_Program_IT (uint32_t TypeProgram, uint32_t Address, uint64_t Data)
 Program double word or fast program of a row at a specified address with interrupt enabled.
void HAL_FLASH_IRQHandler (void)
 Handle 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:
ReturnValue,:The value saved in this parameter depends on the ongoing procedure Mass Erase: Bank number which has been requested to erase Page Erase: Page which has been erased (if 0xFFFFFFFF, it means that all the selected pages have been erased) Program: Address which was selected for data program
Return values:
None

Definition at line 469 of file stm32l4xx_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:
ReturnValue,:The value saved in this parameter depends on the ongoing procedure Mass Erase: Bank number which has been requested to erase Page Erase: Page number which returned an error Program: Address which was selected for data program
Return values:
None

Definition at line 487 of file stm32l4xx_hal_flash.c.

Referenced by HAL_FLASH_IRQHandler().

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

Program double word or fast program of a row at a specified address.

Parameters:
TypeProgram,:Indicate the way to program at a specified address. This parameter can be a value of FLASH Program Type
Address,:specifies the address to be programmed.
Data,:specifies the data to be programmed This parameter is the data for the double word program and the address where are stored the data for the row fast program
Return values:
HAL_StatusTypeDefHAL Status

Definition at line 184 of file stm32l4xx_hal_flash.c.

References __HAL_FLASH_DATA_CACHE_DISABLE, assert_param, FLASH_ProcessTypeDef::CacheToReactivate, FLASH_ProcessTypeDef::ErrorCode, FLASH_CACHE_DCACHE_ENABLED, FLASH_CACHE_DISABLED, FLASH_FlushCaches(), FLASH_Program_DoubleWord(), FLASH_Program_Fast(), FLASH_TIMEOUT_VALUE, FLASH_TYPEPROGRAM_DOUBLEWORD, FLASH_TYPEPROGRAM_FAST, FLASH_TYPEPROGRAM_FAST_AND_LAST, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, and IS_FLASH_TYPEPROGRAM.

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

Program double word or fast program of a row at a specified address with interrupt enabled.

Parameters:
TypeProgram,:Indicate the way to program at a specified address. This parameter can be a value of FLASH Program Type
Address,:specifies the address to be programmed.
Data,:specifies the data to be programmed This parameter is the data for the double word program and the address where are stored the data for the row fast program
Return values:
HALStatus

Definition at line 266 of file stm32l4xx_hal_flash.c.

References __HAL_FLASH_DATA_CACHE_DISABLE, __HAL_FLASH_ENABLE_IT, FLASH_ProcessTypeDef::Address, assert_param, FLASH_ProcessTypeDef::CacheToReactivate, FLASH_ProcessTypeDef::ErrorCode, FLASH_CACHE_DCACHE_ENABLED, FLASH_CACHE_DISABLED, FLASH_IT_EOP, FLASH_IT_OPERR, FLASH_PROC_PROGRAM, FLASH_PROC_PROGRAM_LAST, FLASH_Program_DoubleWord(), FLASH_Program_Fast(), FLASH_TYPEPROGRAM_DOUBLEWORD, FLASH_TYPEPROGRAM_FAST, FLASH_TYPEPROGRAM_FAST_AND_LAST, HAL_FLASH_ERROR_NONE, IS_FLASH_TYPEPROGRAM, and FLASH_ProcessTypeDef::ProcedureOnGoing.