cancel
Showing results for 
Search instead for 
Did you mean: 

How to know about what cause a Hard Fault Exception in STM32 hardware ?

mkt8fr
Associate
Posted on June 30, 2008 at 14:14

How to know about what cause a Hard Fault Exception in STM32 hardware ?

3 REPLIES 3
mkt8fr
Associate
Posted on May 17, 2011 at 12:38

Hello dear STM-users and others,

I need your help to know of what is the best way to solve that problem: know about what cause a Hard Fault Exception during a basic use of a STM32 product.

This will help many of our developpers to understand the reason of the fault and will increase the development process.

I need to know what is required, how to do that, and what is possible to do to:

- know about the problem

- where the problem was launched

- is is tpossible to get the complete stack that cause the problem

...

Anyway thank you for any reflexion on that subject, and if you've already found an answer, please don't hesitate to let me know...

Regards ,

Fabien Martre

16-32micros
Associate III
Posted on May 17, 2011 at 12:38

Hi fabien, paul,

Some kind of pointers are here as well

http://www.st.com/mcu/forums-cat-6778-23.html

.

Cheers,

STOne-32.

paulsmitton9
Associate III
Posted on May 17, 2011 at 12:38

There are registers to do this, see:

http://www.st.com/mcu/forums-cat-6667-23.html

Once you have found the cause of the fault, you can find out the address of the instruction that caused it.