For the STM32F303 I got the answer from STM-Suport that the OB has to be erased before it can be written (probably it might be useful then to read it first and save the settings read out). Also, the OB_Launch command triggers a reset, so OB_Lock and ...