Skip to main content
MR.2
Associate II
May 28, 2020
Question

What are the possible for hard fault handler? How to resolve the exception?

  • May 28, 2020
  • 2 replies
  • 560 views

..

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
May 28, 2020

This topic has been gone over thousands of times, review some of the prior postings.​

Look at a disassembly of the faulting code, and CPU registers, report.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
May 28, 2020

Get some debug output to SWO or UART, and have the handler output some diagnostics rather than just get stuck in a while(1) loop telling you nothing.

Likely accessing data out-of-bounds, perhaps errant point or corrupt state.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..