STM32H735xx 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 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.

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 0xFFFFFFFF, it means that all the selected sectors have been erased) Program: Address which was selected for data program
Return values:
None

Definition at line 735 of file stm32h7xx_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 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.

Parameters:
TypeProgramIndicate the way to program at a specified address. This parameter can be a value of FLASH Type Program
FlashAddressspecifies the address to be programmed. This parameter shall be aligned to the Flash word:
  • 256 bits for STM32H74x/5X devices (8x 32bits words)
  • 128 bits for STM32H7Ax/BX devices (4x 32bits words)
  • 256 bits for STM32H72x/3X devices (8x 32bits words)
DataAddressspecifies the address of data to be programmed. This parameter shall be 32-bit aligned
Return values:
HAL_StatusTypeDefHAL 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.

Parameters:
TypeProgramIndicate the way to program at a specified address. This parameter can be a value of FLASH Type Program
FlashAddressspecifies the address to be programmed. This parameter shall be aligned to the Flash word:
  • 256 bits for STM32H74x/5X devices (8x 32bits words)
  • 128 bits for STM32H7Ax/BX devices (4x 32bits words)
  • 256 bits for STM32H72x/3X devices (8x 32bits words)
DataAddressspecifies the address of data to be programmed. This parameter shall be 32-bit aligned
Return values:
HALStatus

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.