2021-07-20 08:59 AM
2021-07-21 02:30 AM
You will find the answer in HAL and the reference manual:
HAL_FLASH_Lock locks FLASH Registers access using SET_BIT(FLASH->CR, FLASH_CR_LOCK);
HAL_FLASH_OB_Lock locks FLASH Option Byte Registers access using SET_BIT(FLASH->CR, FLASH_CR_OPTLOCK);
Please read the description for the LOCK and OPTLOCK bits in the reference manual under section Flash control register (FLASH_CR).
Regards
/Peter
2021-07-21 02:30 AM
You will find the answer in HAL and the reference manual:
HAL_FLASH_Lock locks FLASH Registers access using SET_BIT(FLASH->CR, FLASH_CR_LOCK);
HAL_FLASH_OB_Lock locks FLASH Option Byte Registers access using SET_BIT(FLASH->CR, FLASH_CR_OPTLOCK);
Please read the description for the LOCK and OPTLOCK bits in the reference manual under section Flash control register (FLASH_CR).
Regards
/Peter