STM32L4xx_HAL_Driver  1.14.0

Peripheral Errors functions. More...

Functions

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

Detailed Description

Peripheral Errors functions.

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

Function Documentation

◆ HAL_FLASH_GetError()

uint32_t HAL_FLASH_GetError ( void  )

Get the specific FLASH error flag.

Return values
FLASH_ErrorCodeThe 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 625 of file stm32l4xx_hal_flash.c.

626 {
627  return pFlash.ErrorCode;
628 }
FLASH_ProcessTypeDef pFlash
Variable used for Program/Erase sectors under interruption.