2025-08-25 3:59 AM
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.