cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Fault Handler error in STM32F103CBT6TR

suba512
Associate II

So, when I was actually trying to work on the STM32F103CBT6TR MCU which is placed onto the custom board while I tried to toggle PA1 in it which only gave floating values then in debug, I found out it is going into Hard Fault Handler so then again I replaced them with new IC but again it is coming as same Hard Fault Handler. I also tried for pin 0 too. What can we do to solve this?

25 REPLIES 25

I'm not a hardware designer, but I'm aware that issues with the power supply circuitry can cause spurious problems.

Another board (like the Bluepill) would only be a proper indication if the MCU on this reference board is identical (identical package), and the code deals with the same GPIOs.

Well, I did the same this with the blue pill board. I used the STM32F103C8T6 while the one I am using in my project board is STM32F103CBT6TR which is pretty similar, I guess. So, I did flash the same toggle program for available pins in it, and I was able to see toggle on all pins which I configured. I would also like to clarify that custom board here I mean is the board we design for our project and in that we use this microcontroller STM32F103CBT6TR IC. I just wanted to say here so you won't misinterpret anything. Thank you.

Which suggests that the issue is not with controller or program but with the hardware which you have designed.

Am I correct?

We still are analyzing the hardware design till now, so far there is no issue. Till we are analyzing in both factors like searching for any error in code and also upon our hardware for issue. But where do you think, the issue might be in...

 

Now, that you have tried all possible combinations which one could think of. The only issue I think; can be to check your hardware design.

I will check onto the hardware design and will update you, thank you.