Skip to main content
Associate III
August 7, 2024
Solved

STM32F446VET7 HardFault_Handler

  • August 7, 2024
  • 3 replies
  • 1632 views

Hello

I design a PCB and I am using STM32F446VET7

When I try to debug in competely clear project (created from STM32Cube IDE - Cube mx)

I got the void HardFault_Handler(void) function after  SystemClock_Config();.

 

testbenchmark_0-1723035868199.png

With HSE or HSI dosent matter I got the same error. 

I got 2 more same PCB which work fine, so my design is not problem.

I recheck my solder and change my mcu still the same.

I also check the BOOT0 pin which connected GND. 

What could be the problem?

This topic has been closed for replies.
Best answer by Andrew Neil

@testbenchmark wrote:

I got the void HardFault_Handler(void) function after  SystemClock_Config();.?


So find what, exactly, is causing the Hard Fault.

Lots of resources online; eg,

https://community.arm.com/support-forums/f/embedded-forum/3257/debugging-a-cortex-m0-hard-fault

 


@testbenchmark wrote:

I got 2 more same PCB which work fine, so my design is not problem.


No, that doesn't follow.

Your design could be marginal - so you could have 2 boards which barely work, and one which only just fails ...

3 replies

TDK
August 7, 2024

> I got 2 more same PCB which work fine, so my design is not problem.

Given that your board fails with an empty project, we're awfully confident aren't we? Could be right, but manufacturing could have issues.

 

Is this the same board as previous soldering issues?

Solved: STM32F446VET7, SystemClock_Config(); FAULT - STMicroelectronics Community

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
Associate III
August 7, 2024

Hi TDK thank you for answering.

In the previous topic my HSE soldering was the problem I fix that and that PCB is work fine right now.

For this PCB I recheck my HSE solder, BOOT0 pin solder and MCU solder.

I even resolder and change my MCU.

But problem is probably in soldering but I dont know where to look for?

Andrew Neil
Andrew NeilBest answer
Super User
August 7, 2024

@testbenchmark wrote:

I got the void HardFault_Handler(void) function after  SystemClock_Config();.?


So find what, exactly, is causing the Hard Fault.

Lots of resources online; eg,

https://community.arm.com/support-forums/f/embedded-forum/3257/debugging-a-cortex-m0-hard-fault

 


@testbenchmark wrote:

I got 2 more same PCB which work fine, so my design is not problem.


No, that doesn't follow.

Your design could be marginal - so you could have 2 boards which barely work, and one which only just fails ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.