2024-11-05 03:05 AM
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?
Solved! Go to Solution.
2024-11-05 03:11 AM
@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:
A copy of Joseph Yui's Definitive Guide to Cortex M3 & M4 would also be helpful:
2024-11-05 03:11 AM
@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:
A copy of Joseph Yui's Definitive Guide to Cortex M3 & M4 would also be helpful:
2024-11-05 03:13 AM
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