> Do you know how to check if there was a HW breakpoint set? I guess there are > some registers in the debug logic which store these addresses. can we dump > these registers?
The FP_COMPn registers? https://developer.arm.com/documentation/ddi0489/f/debug/about-the-fpb/fpb-programmers-model The encoding for a hardware breakpoint is outlined here: https://interrupt.memfault.com/blog/cortex-m-debug-monitor#programmatically-installing-breakpoints-with-the-fpb