Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Programming operation functions
[FLASH Exported Functions]
Programming operation functions. More...
Modules | |
Peripheral Control functions | |
Functions | |
HAL_StatusTypeDef | HAL_FLASH_Program (uint32_t TypeProgram, uint32_t Address, uint64_t Data) |
Program 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 halfword, word or double word at a specified address with interrupt enabled. | |
void | HAL_FLASH_IRQHandler (void) |
This function handles FLASH interrupt request. |
Detailed Description
Programming operation functions.
Function Documentation
void HAL_FLASH_IRQHandler | ( | void | ) |
This function handles FLASH interrupt request.
- Return values:
-
None
FLASH end of operation interrupt callback
- Parameters:
-
ReturnValue,: The value saved in this parameter depends on the ongoing procedure - Mass Erase: No return value expected
- Pages Erase: Address of the 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
FLASH operation error interrupt callback
- Parameters:
-
ReturnValue,: The value saved in this parameter depends on the ongoing procedure - Mass Erase: No return value expected
- Pages Erase: Address of the page which returned an error
- Program: Address which was selected for data program
- Return values:
-
none
Definition at line 350 of file stm32f1xx_hal_flash.c.
HAL_StatusTypeDef HAL_FLASH_Program | ( | uint32_t | TypeProgram, |
uint32_t | Address, | ||
uint64_t | Data | ||
) |
Program halfword, word or double word at a specified address.
- Note:
- The function HAL_FLASH_Unlock() should be called before to unlock the FLASH interface The function HAL_FLASH_Lock() should be called after to lock the FLASH interface
- If an erase and a program operations are requested simultaneously, the erase operation is performed before the program one.
- FLASH should be previously erased before new programmation (only exception to this is when 0x0000 is programmed)
- Parameters:
-
TypeProgram,: Indicate the way to program at a specified address. This parameter can be a value of FLASH_Type_Program Address,: Specifies the address to be programmed. Data,: Specifies the data to be programmed
- Return values:
-
HAL_StatusTypeDef HAL Status
Definition at line 186 of file stm32f1xx_hal_flash.c.
HAL_StatusTypeDef HAL_FLASH_Program_IT | ( | uint32_t | TypeProgram, |
uint32_t | Address, | ||
uint64_t | Data | ||
) |
Program halfword, word or double word at a specified address with interrupt enabled.
- Note:
- The function HAL_FLASH_Unlock() should be called before to unlock the FLASH interface The function HAL_FLASH_Lock() should be called after to lock the FLASH interface
- If an erase and a program operations are requested simultaneously, the erase operation is performed before the program one.
- Parameters:
-
TypeProgram,: Indicate the way to program at a specified address. This parameter can be a value of FLASH_Type_Program Address,: Specifies the address to be programmed. Data,: Specifies the data to be programmed
- Return values:
-
HAL_StatusTypeDef HAL Status
Definition at line 285 of file stm32f1xx_hal_flash.c.
Generated on Tue Jul 12 2022 15:37:32 by
