STM32L486xx HAL User Manual
Functions
FLASH Private Functions
FLASH

Functions

HAL_StatusTypeDef FLASH_WaitForLastOperation (uint32_t Timeout)
 Wait for a FLASH operation to complete.
void FLASH_PageErase (uint32_t Page, uint32_t Banks)
 Erase the specified FLASH memory page.
void FLASH_FlushCaches (void)
 Flush the instruction and data caches.
static void FLASH_Program_DoubleWord (uint32_t Address, uint64_t Data)
 Program double-word (64-bit) at a specified address.
static void FLASH_Program_Fast (uint32_t Address, uint32_t DataAddress)
 Fast program a row double-word (64-bit) at a specified address.

Function Documentation

void FLASH_FlushCaches ( void  )
void FLASH_PageErase ( uint32_t  Page,
uint32_t  Banks 
)

Erase the specified FLASH memory page.

Parameters:
Page,:FLASH page to erase This parameter must be a value between 0 and (max number of pages in the bank - 1)
Banks,:Bank(s) where the page will be erased This parameter can be one of the following values:
  • FLASH_BANK_1: Page in bank 1 to be erased
  • FLASH_BANK_2: Page in bank 2 to be erased
Return values:
None

Definition at line 582 of file stm32l4xx_hal_flash_ex.c.

References assert_param, FLASH_BANK_1, IS_FLASH_BANK_EXCLUSIVE, and IS_FLASH_PAGE.

Referenced by HAL_FLASH_IRQHandler(), HAL_FLASHEx_Erase(), and HAL_FLASHEx_Erase_IT().

static void FLASH_Program_DoubleWord ( uint32_t  Address,
uint64_t  Data 
) [static]

Program double-word (64-bit) at a specified address.

Parameters:
Address,:specifies the address to be programmed.
Data,:specifies the data to be programmed.
Return values:
None

Definition at line 713 of file stm32l4xx_hal_flash.c.

References assert_param, and IS_FLASH_PROGRAM_ADDRESS.

Referenced by HAL_FLASH_Program(), and HAL_FLASH_Program_IT().

static void FLASH_Program_Fast ( uint32_t  Address,
uint32_t  DataAddress 
) [static]

Fast program a row double-word (64-bit) at a specified address.

Parameters:
Address,:specifies the address to be programmed.
DataAddress,:specifies the address where the data are stored.
Return values:
None

Definition at line 732 of file stm32l4xx_hal_flash.c.

References assert_param, FLASH_NB_DOUBLE_WORDS_IN_ROW, and IS_FLASH_MAIN_MEM_ADDRESS.

Referenced by HAL_FLASH_Program(), and HAL_FLASH_Program_IT().

HAL_StatusTypeDef FLASH_WaitForLastOperation ( uint32_t  Timeout)

Wait for a FLASH operation to complete.

Parameters:
Timeout,:maximum flash operation timeout
Return values:
HAL_StatusTypeDefHAL Status

Definition at line 662 of file stm32l4xx_hal_flash.c.

References __HAL_FLASH_CLEAR_FLAG, __HAL_FLASH_GET_FLAG, FLASH_ProcessTypeDef::ErrorCode, FLASH_FLAG_BSY, FLASH_FLAG_ECCD, FLASH_FLAG_EOP, FLASH_FLAG_SR_ERRORS, and HAL_GetTick().

Referenced by FLASH_OB_PCROPConfig(), FLASH_OB_RDPConfig(), FLASH_OB_UserConfig(), FLASH_OB_WRPConfig(), HAL_FLASH_OB_Launch(), HAL_FLASH_Program(), and HAL_FLASHEx_Erase().