This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to trace back hard fault handler

What's the proper way to debug what's causing my eval board to reset? I'm assuming I need to put a breakpoint in the hard fault handle, but how do I trace that back to the source of the error? Or should I modify the handler?

I also noticed that the breakpoint in the hardfault handler isn't triggered unless I step through the code line-by-line. Is this expected?

image description

Related