Skip to main content
Visitor II
August 28, 2020
Question

Using STLink V2 with openocd sometimes persists HW breakpoints. Is there a quicker way to clear them other than disconnecting the STLink V2 for an extended period of time.

  • August 28, 2020
  • 0 replies
  • 516 views

Every once in a while when remote debugging I wind up with not being able to set HW breakpoints. There's no clear indication of when this will happen, and I'm typically only setting a single break point. If I disconnect the USB to the STLink V2 for a few seconds the problem still remains, but if the USB is disconnected for some longer period say a minute or two then it appears that the stuck break point is no longer remembered. Is there a clear way to clear the stuck HW break point other than keeping the STLink V2 powered down for an extended period of time?

    This topic has been closed for replies.