STM32L443xx HAL User Manual
|
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. |
Programming operation functions.
=============================================================================== ##### Programming operation functions ##### =============================================================================== [..] This subsection provides a set of functions allowing to manage the FLASH program operations.
void HAL_FLASH_EndOfOperationCallback | ( | uint32_t | ReturnValue | ) |
FLASH end of operation interrupt callback.
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 |
None |
Definition at line 454 of file stm32l4xx_hal_flash.c.
Referenced by HAL_FLASH_IRQHandler().
void HAL_FLASH_IRQHandler | ( | void | ) |
Handle FLASH interrupt request.
None |
Definition at line 311 of file stm32l4xx_hal_flash.c.
References __HAL_FLASH_CLEAR_FLAG, __HAL_FLASH_DISABLE_IT, __HAL_FLASH_GET_FLAG, FLASH_ProcessTypeDef::Address, FLASH_ProcessTypeDef::Bank, FLASH_ProcessTypeDef::ErrorCode, FLASH_FLAG_EOP, FLASH_FLAG_SR_ERRORS, FLASH_FlushCaches(), FLASH_IT_EOP, FLASH_IT_OPERR, FLASH_PageErase(), FLASH_PROC_MASS_ERASE, FLASH_PROC_NONE, FLASH_PROC_PAGE_ERASE, FLASH_PROC_PROGRAM, FLASH_PROC_PROGRAM_LAST, HAL_FLASH_EndOfOperationCallback(), HAL_FLASH_OperationErrorCallback(), FLASH_ProcessTypeDef::NbPagesToErase, FLASH_ProcessTypeDef::Page, and FLASH_ProcessTypeDef::ProcedureOnGoing.
void HAL_FLASH_OperationErrorCallback | ( | uint32_t | ReturnValue | ) |
FLASH operation error interrupt callback.
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 |
None |
Definition at line 472 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.
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 |
HAL_StatusTypeDef | HAL Status |
Definition at line 169 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.
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 |
HAL | Status |
Definition at line 251 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.