2024-08-07 05:59 AM - edited 2024-08-07 06:04 AM
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();.
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?
Solved! Go to Solution.
2024-08-07 06:15 AM
@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 ...
2024-08-07 06:05 AM
> 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
2024-08-07 06:09 AM
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?
2024-08-07 06:15 AM
@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 ...