Can't run debugger - It was working
Hi,
I struggled with a similar situation for 2 days. The error message sometimes changes but was consistent in failing. Then it went away and then came back - very frustrating. I eventually narrowed it to being caused by invalid breakpoints. (breakpoints that were in comments or referring to line numbers that was no longer valid in the code).
Everytime it comes back, I have to remove all breakpoints, clean the project and rebuild. Occassionaly I also have to use ST Link utility to wipe the existing program from the board’s memory. Then it usually works again until I forget to clean up my breakpoints, and I am forced to repeat all over.
I hope this helps.