HAL
FLASH_OB_RDP_LevelConfig() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALFLASH_OB_RDP_LevelConfig()

FLASH_OB_RDP_LevelConfig() function

Set the read protection level.

Syntax

static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t Level);
Implemented in stm32f4xx_hal_flash_ex.c:1160

Arguments

Level

specifies the read protection level. This parameter can be one of the following values: @arg OB_RDP_LEVEL_0: No protection @arg OB_RDP_LEVEL_1: Read protection of the memory @arg OB_RDP_LEVEL_2: Full chip protection

Return value

HAL Status

Notes

WARNING: When enabling OB_RDP level 2 it's no more possible to go back to level 1 or 0

References

LocationReferrerText
stm32f4xx_hal_flash_ex.c:1160
static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t Level)
stm32f4xx_hal_flash_ex.c:103
static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t Level);
stm32f4xx_hal_flash_ex.c:313HAL_FLASHEx_OBProgram()
status = FLASH_OB_RDP_LevelConfig(pOBInit->RDPLevel);

Call Tree

Functions calling FLASH_OB_RDP_LevelConfig()
Functions called by FLASH_OB_RDP_LevelConfig()
all items filtered out
FLASH_OB_RDP_LevelConfig()
assert_failed()
all items filtered out
Data read by FLASH_OB_RDP_LevelConfig()
Data written by FLASH_OB_RDP_LevelConfig()
FLASH_OB_RDP_LevelConfig()::status
all items filtered out
FLASH_OB_RDP_LevelConfig()
FLASH_OB_RDP_LevelConfig()::status
all items filtered out
Type of FLASH_OB_RDP_LevelConfig()
FLASH_OB_RDP_LevelConfig()