STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Peripheral State and Errors functions

Peripheral Errors functions. More...

Collaboration diagram for Peripheral State and Errors functions:

Functions

uint32_t HAL_FLASH_GetError (void)
 Get the specific FLASH error flag.
 
HAL_StatusTypeDef FLASH_WaitForLastOperation (uint32_t Timeout)
 Wait for a FLASH operation to complete.
 

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 )

#include <stm32f4xx_hal_flash.h>

Get the specific FLASH error flag.

Return values
FLASH_ErrorCodeThe returned value can be a combination of:
  • 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

Definition at line 530 of file stm32f4xx_hal_flash.c.

References FLASH_ProcessTypeDef::ErrorCode, and pFlash.

◆ FLASH_WaitForLastOperation()

HAL_StatusTypeDef FLASH_WaitForLastOperation ( uint32_t Timeout)