cancel
Showing results for 
Search instead for 
Did you mean: 

Hardfault error at timer callback

Nirbhik
Associate II

The thing is,i have a custom design board with STM32F446RE  and it's Nucleo variant
i have a code with multiple timers but when i run the program on my custom board it goes to Hardfault error after a timer callback but the same problem dosent happens with the Nucleo board although the code remains the same

1 ACCEPTED SOLUTION

Accepted Solutions

Don't discount bad design

Make sure clock expectations are the same, make sure VCAP capacitors are correctly rated as designed/populated. You've got 4u7 F between them, and see 1.25V

Check FLASH wait states.

Root Cause the HARD FAULT, with a handler that does a better job than while(1) silently dying.

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

View solution in original post

4 REPLIES 4
SofLit
ST Employee

Hello @Nirbhik and welcome to the community.


@Nirbhik wrote:

The thing is,i have a custom design board with STM32F446RE  and it's Nucleo variant.


What do you mean by variant. is it Blue/Black pill board?

Do you have the same Clock source and frequency values?

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.

Don't discount bad design

Make sure clock expectations are the same, make sure VCAP capacitors are correctly rated as designed/populated. You've got 4u7 F between them, and see 1.25V

Check FLASH wait states.

Root Cause the HARD FAULT, with a handler that does a better job than while(1) silently dying.

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

Yes i hadn't placed a capacitor at the Vcap pin 
also about your last statement
"Root Cause the HARD FAULT, with a handler that does a better job than while(1) silently dying."
i use the debug tools of ST and i was able to pinpoint the error because of the call stack whose image i am attaching below

i have the NUCLEO-F446RE and yes i have the same clock source as i am using the same clock based on the internal oscillator