Skip to main content
Associate
August 25, 2025
Question

Crash occurs when using MCSDK 6.4.0 on STM32G431CBT6

  • August 25, 2025
  • 1 reply
  • 698 views

Hello,
I am using MCSDK6.4.0 on STM32G431CBT6 for motor drive development.
The generated code runs without any modifications. When using the Motor Pilot tool to start the motor,
the chip crash, and there is no change in the motor. Debugging reveals that the program randomly enters NMI_Handler,
HardFault_Handler, and FMAC_IRQHandler when starting the motor (after entering FMAC_IRQHandler several times during the first programming run,
it does not enter again). I am using STMCubeMX 6.3.0. The chip's power supply is measured to be normal, and no reset has occurred.
Below is a screenshot of the interrupt entry. What is the cause of this issue, and how can it be resolved.微信图片_20250825161834_138_8.png微信图片_20250825162106_139_8.png微信图片_20250825162210_140_8.png微信图片_20250825163135_141_8.png

1 reply

GMA
Technical Moderator
September 1, 2025

Hello @QingWu,

As it is a custom board, reproduction is not feasible.
Could you verify that no electrical perturbation originating from the power section reaches the MCU?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.Best regards.GMA