STM32L486xx HAL User Manual
Functions
Peripheral State and Errors functions
FLASH Exported Functions

Peripheral Errors functions. More...

Functions

uint32_t HAL_FLASH_GetError (void)
 Get the specific FLASH error flag.

Detailed Description

Peripheral Errors functions.

 ===============================================================================
                ##### Peripheral Errors functions #####
 ===============================================================================  
    [..]
    This subsection permits to get in run-time Errors of the FLASH peripheral.


Function Documentation

uint32_t HAL_FLASH_GetError ( void  )

Get the specific FLASH error flag.

Return values:
FLASH_ErrorCode,:The returned value can be:
  • HAL_FLASH_ERROR_RD: FLASH Read Protection error flag (PCROP)
  • HAL_FLASH_ERROR_PGS: FLASH Programming Sequence error flag
  • HAL_FLASH_ERROR_PGP: FLASH Programming Parallelism error flag
  • HAL_FLASH_ERROR_PGA: FLASH Programming Alignment error flag
  • HAL_FLASH_ERROR_WRP: FLASH Write protected error flag
  • HAL_FLASH_ERROR_OPERATION: FLASH operation Error flag
  • HAL_FLASH_ERROR_NONE: No error set
  • HAL_FLASH_ERROR_OP: FLASH Operation error
  • HAL_FLASH_ERROR_PROG: FLASH Programming error
  • HAL_FLASH_ERROR_WRP: FLASH Write protection error
  • HAL_FLASH_ERROR_PGA: FLASH Programming alignment error
  • HAL_FLASH_ERROR_SIZ: FLASH Size error
  • HAL_FLASH_ERROR_PGS: FLASH Programming sequence error
  • HAL_FLASH_ERROR_MIS: FLASH Fast programming data miss error
  • HAL_FLASH_ERROR_FAST: FLASH Fast programming error
  • HAL_FLASH_ERROR_RD: FLASH PCROP read error
  • HAL_FLASH_ERROR_OPTV: FLASH Option validity error
  • FLASH_FLAG_PEMPTY : FLASH Boot from not programmed flash (apply only for STM32L43x/STM32L44x devices)
  • HAL_FLASH_ERROR_ECCD: FLASH two ECC errors have been detected

Definition at line 638 of file stm32l4xx_hal_flash.c.

References FLASH_ProcessTypeDef::ErrorCode.