We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
You need to give more information:Which toolchain? which debug hardware? Setup as JTAG or Serial wire? Have you try reducing the debug clock frequency? Is the flash programming working at all?It can be caused by many different factors. E.g.- debug pins blocked by I/O usage- incorrect PLL settings- issues with voltage level on debug pins