Hi Eugene,
Actually, FLASH_PflashSetProtection API is used to set the protection bit, write the Program Flash Protection Registers

It is 4Bytes, just 32bit.
ProtRegBits can be set by yourself in the code, you totally can define it.
Wish it helps you!
If you still have question about it, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------