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

management functions More...

Collaboration diagram for Peripheral Control functions:

Functions

HAL_StatusTypeDef HAL_FLASH_Unlock (void)
 Unlock the FLASH control register access.
 
HAL_StatusTypeDef HAL_FLASH_Lock (void)
 Locks the FLASH control register access.
 
HAL_StatusTypeDef HAL_FLASH_OB_Unlock (void)
 Unlock the FLASH Option Control Registers access.
 
HAL_StatusTypeDef HAL_FLASH_OB_Lock (void)
 Lock the FLASH Option Control Registers access.
 
HAL_StatusTypeDef HAL_FLASH_OB_Launch (void)
 Launch the option byte loading.
 

Detailed Description

management functions

 ===============================================================================
                      ##### Peripheral Control functions #####
 ===============================================================================
    [..]
    This subsection provides a set of functions allowing to control the FLASH
    memory operations.

Function Documentation

◆ HAL_FLASH_Unlock()

HAL_StatusTypeDef HAL_FLASH_Unlock ( void )

#include <stm32f4xx_hal_flash.h>

Unlock the FLASH control register access.

Return values
HALStatus

Definition at line 425 of file stm32f4xx_hal_flash.c.

References FLASH_KEY1, FLASH_KEY2, HAL_ERROR, and HAL_OK.

◆ HAL_FLASH_Lock()

HAL_StatusTypeDef HAL_FLASH_Lock ( void )

#include <stm32f4xx_hal_flash.h>

Locks the FLASH control register access.

Return values
HALStatus

Definition at line 449 of file stm32f4xx_hal_flash.c.

References HAL_OK.

◆ HAL_FLASH_OB_Unlock()

HAL_StatusTypeDef HAL_FLASH_OB_Unlock ( void )

#include <stm32f4xx_hal_flash.h>

Unlock the FLASH Option Control Registers access.

Return values
HALStatus

Definition at line 461 of file stm32f4xx_hal_flash.c.

References FLASH_OPT_KEY1, FLASH_OPT_KEY2, HAL_ERROR, and HAL_OK.

◆ HAL_FLASH_OB_Lock()

HAL_StatusTypeDef HAL_FLASH_OB_Lock ( void )

#include <stm32f4xx_hal_flash.h>

Lock the FLASH Option Control Registers access.

Return values
HALStatus

Definition at line 481 of file stm32f4xx_hal_flash.c.

References HAL_OK.

◆ HAL_FLASH_OB_Launch()

HAL_StatusTypeDef HAL_FLASH_OB_Launch ( void )

#include <stm32f4xx_hal_flash.h>

Launch the option byte loading.

Return values
HALStatus

Definition at line 493 of file stm32f4xx_hal_flash.c.

References FLASH_TIMEOUT_VALUE, FLASH_WaitForLastOperation(), and OPTCR_BYTE0_ADDRESS.