Error when using debugging under Atollic TrueStudio / STM32
I found the answer elsewhere but I will repeat it here for other people:


Close Atollic TrueStudio (not sure if this is needed)
Startup ST Utility
Press the Reset button and keep it pressed
Select Erase Chip (in Target menu)
Release the Reset button
The chip is erased
Close ST Utility
Startup Atollic TrueStudio


Debug should work now