cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F446VET7 HardFault_Handler

testbenchmark
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Evangelist III

@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 ...

View solution in original post

3 REPLIES 3
TDK
Guru

> 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".

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
Evangelist III

@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 ...