FLASH_OB_DisablePCROP() function
Disable the read/write protection (PCROP) of the desired sectors of Bank 1 and/or Bank 2.
Arguments
SectorBank1
specifies the sector(s) to be read/write protected or unprotected for bank1. This parameter can be one of the following values: @arg OB_PCROP: A value between OB_PCROP_SECTOR_0 and OB_PCROP_SECTOR_11 @arg OB_PCROP_SECTOR__All
SectorBank2
Specifies the sector(s) to be read/write protected or unprotected for bank2. This parameter can be one of the following values: @arg OB_PCROP: A value between OB_PCROP_SECTOR_12 and OB_PCROP_SECTOR_23 @arg OB_PCROP_SECTOR__All
Banks
Disable PCROP protection on all the sectors for the specific bank This parameter can be one of the following values: @arg FLASH_BANK_1: WRP on all sectors of bank1 @arg FLASH_BANK_2: WRP on all sectors of bank2 @arg FLASH_BANK_BOTH: WRP on all sectors of bank1 & bank2
Return value
HAL Status
Notes
This function can be used only for STM32F42xxx/43xxx devices.