BOOT0 láb felhúzása & stm32flash progival az UART-on keresztül esetleg? Ezekkel tudod állítani a read protect és write protectet is.
Azt írja a man stm32flash, hogy
-u Specify to disable write-protection from STM32 flash. The STM32 will be reset after this operation.
Tehát téglát nem tudsz csinálni ezek szerint.