Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32f0/STM32F0x0/Flash/SR#0x0
Flash status register
Busy
Programming error
Write protection error
End of operation
https://github.com/modm-io/cmsis-svd-stm32