STM32H735xx HAL User Manual
|
Programming operation functions. More...
Functions | |
HAL_StatusTypeDef | HAL_FLASH_Program (uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress) |
Program a flash word at a specified address. | |
HAL_StatusTypeDef | HAL_FLASH_Program_IT (uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress) |
Program a flash 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. |
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 Sectors Erase: Sector which has been erased (if 0xFFFFFFFF, it means that all the selected sectors have been erased) Program: Address which was selected for data program |
None |
Definition at line 735 of file stm32h7xx_hal_flash.c.
Referenced by HAL_FLASH_IRQHandler().
void HAL_FLASH_IRQHandler | ( | void | ) |
This function handles FLASH interrupt request.
None |
Definition at line 465 of file stm32h7xx_hal_flash.c.
References __HAL_FLASH_CLEAR_FLAG_BANK1, __HAL_FLASH_CLEAR_FLAG_BANK2, __HAL_FLASH_DISABLE_IT_BANK1, __HAL_FLASH_DISABLE_IT_BANK2, __HAL_FLASH_GET_FLAG_BANK1, __HAL_FLASH_GET_FLAG_BANK2, FLASH_ProcessTypeDef::Address, FLASH_ProcessTypeDef::ErrorCode, FLASH_BANK_1, FLASH_Erase_Sector(), FLASH_FLAG_EOP_BANK1, FLASH_FLAG_EOP_BANK2, FLASH_FLAG_OPERR_BANK1, FLASH_FLAG_OPERR_BANK2, FLASH_FLAG_PGSERR_BANK1, FLASH_FLAG_PGSERR_BANK2, FLASH_FLAG_STRBERR_BANK1, FLASH_FLAG_STRBERR_BANK2, FLASH_FLAG_WRPERR_BANK1, FLASH_FLAG_WRPERR_BANK2, FLASH_IT_EOP_BANK1, FLASH_IT_EOP_BANK2, FLASH_IT_INCERR_BANK1, FLASH_IT_INCERR_BANK2, FLASH_IT_OPERR_BANK1, FLASH_IT_OPERR_BANK2, FLASH_IT_PGSERR_BANK1, FLASH_IT_PGSERR_BANK2, FLASH_IT_STRBERR_BANK1, FLASH_IT_STRBERR_BANK2, FLASH_IT_WRPERR_BANK1, FLASH_IT_WRPERR_BANK2, FLASH_PROC_ALLBANK_MASSERASE, FLASH_PROC_MASSERASE_BANK1, FLASH_PROC_MASSERASE_BANK2, FLASH_PROC_NONE, FLASH_PROC_PROGRAM_BANK1, FLASH_PROC_PROGRAM_BANK2, FLASH_PROC_SECTERASE_BANK1, FLASH_PROC_SECTERASE_BANK2, HAL_FLASH_EndOfOperationCallback(), HAL_FLASH_OperationErrorCallback(), FLASH_ProcessTypeDef::NbSectorsToErase, FLASH_ProcessTypeDef::ProcedureOnGoing, FLASH_ProcessTypeDef::Sector, and FLASH_ProcessTypeDef::VoltageForErase.
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 Sectors Erase: Sector number which returned an error Program: Address which was selected for data program |
None |
Definition at line 753 of file stm32h7xx_hal_flash.c.
Referenced by HAL_FLASH_IRQHandler().
HAL_StatusTypeDef HAL_FLASH_Program | ( | uint32_t | TypeProgram, |
uint32_t | FlashAddress, | ||
uint32_t | DataAddress | ||
) |
Program a flash word at a specified address.
TypeProgram | Indicate the way to program at a specified address. This parameter can be a value of FLASH Type Program |
FlashAddress | specifies the address to be programmed. This parameter shall be aligned to the Flash word:
|
DataAddress | specifies the address of data to be programmed. This parameter shall be 32-bit aligned |
HAL_StatusTypeDef | HAL Status |
Definition at line 148 of file stm32h7xx_hal_flash.c.
References assert_param, FLASH_ProcessTypeDef::ErrorCode, FLASH_BANK_1, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, IS_FLASH_PROGRAM_ADDRESS, IS_FLASH_PROGRAM_ADDRESS_BANK1, and IS_FLASH_TYPEPROGRAM.
HAL_StatusTypeDef HAL_FLASH_Program_IT | ( | uint32_t | TypeProgram, |
uint32_t | FlashAddress, | ||
uint32_t | DataAddress | ||
) |
Program a flash word 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 Type Program |
FlashAddress | specifies the address to be programmed. This parameter shall be aligned to the Flash word:
|
DataAddress | specifies the address of data to be programmed. This parameter shall be 32-bit aligned |
HAL | Status |
Definition at line 311 of file stm32h7xx_hal_flash.c.
References __HAL_FLASH_ENABLE_IT_BANK1, __HAL_FLASH_ENABLE_IT_BANK2, FLASH_ProcessTypeDef::Address, assert_param, FLASH_ProcessTypeDef::ErrorCode, FLASH_BANK_1, FLASH_IT_EOP_BANK1, FLASH_IT_EOP_BANK2, FLASH_IT_INCERR_BANK1, FLASH_IT_INCERR_BANK2, FLASH_IT_OPERR_BANK1, FLASH_IT_OPERR_BANK2, FLASH_IT_PGSERR_BANK1, FLASH_IT_PGSERR_BANK2, FLASH_IT_STRBERR_BANK1, FLASH_IT_STRBERR_BANK2, FLASH_IT_WRPERR_BANK1, FLASH_IT_WRPERR_BANK2, FLASH_PROC_PROGRAM_BANK1, FLASH_PROC_PROGRAM_BANK2, FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), HAL_FLASH_ERROR_NONE, IS_FLASH_PROGRAM_ADDRESS, IS_FLASH_PROGRAM_ADDRESS_BANK1, IS_FLASH_TYPEPROGRAM, and FLASH_ProcessTypeDef::ProcedureOnGoing.