2017-06-20 04:40 AM
Hi,
I'm using STM32L1, and I would like to read out the option bytes values to make sure I was able to lock the read option of the memory.
What is the quickest way to do so ?
Thank you.
2017-06-20 06:49 AM
Hi Wonder Cakes!
if you are using hal libraies, check your Cube example\Flash\Flash_WriteProtection Folders,
It goes like this
FLASH_OBProgramInitTypeDef OptionsBytesStruct;
...
HAL_FLASH_Unlock(); HAL_FLASH_OB_Unlock(); HAL_FLASHEx_OBGetConfig(&OptionsBytesStruct);Is that what you want?