cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding the cause of HardFault_Handler

pass3master
Senior

Regarding the cause of HardFault_Handler
HardFault_Handler occurs at a specific timing in our software.
I was able to determine which process was causing the problem by looking at the call stack, but is it possible to investigate the cause further by looking at registers or something else?

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2

@pass3master wrote:

 is it possible to investigate the cause further by looking at registers or something else?


Yes it is!

See this - debugging hard faults on both Cortex-M in general and STM32 in particular:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/708193/highlight/true#M51

 

A copy of Joseph Yui's Definitive Guide to Cortex M3 & M4 would also be helpful:

https://shop.elsevier.com/books/the-definitive-guide-to-arm-cortex-m3-and-cortex-m4-processors/yiu/978-0-12-408082-9

https://community.arm.com/support-forums/f/architectures-and-processors-forum/6195/when-will-be-the-release-of-the-definitive-guide-to-cortex-m7

SofLit
ST Employee

Hello,

This is an article how to debug Hardfault on STM32: https://community.st.com/t5/stm32-mcus/how-to-debug-a-hardfault-on-an-arm-cortex-m-stm32/ta-p/672235

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.