cancel
Showing results for 
Search instead for 
Did you mean: 

how to trace the reason of hardfault

manoj23
Associate II
Posted on July 23, 2013 at 06:27

Hi all,

I am getting hardfault exception in my code. And when i watched my registers CFSR and HFSR their values are like

CFSR = 0x00001100

   - IBUSERR = 1

   - STKERR = 1

HFSR 

   - FORCED = 1

So can you just tell me what those flag means? 

I am using STM32F407 microcontroller. And for coding and compiling i am using IAR Embedded Workbench with versino 6.40. What problem i am actually facing is that due to some reason my controller is going into the hardfault which is an exception. So i just want to trace the previous state or previous function which cause to this hardfault. So how can i trace that?

Thanks & Regards,

Jonam

0 REPLIES 0