Hello Jens Wagner,
If use P&E debug probe, in debug mode, there is this function :

If use J-link, you can sue J-Llink Commander :
J-Link Commander | SEGGER - The Embedded Experts
If use CMSIS-DAP, try to erase by sector , then Program:


Have a great day,
TIC
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------