FLASH_OB_RDP_LevelConfig() function
Set the read protection level.
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