Skip to main content
Angelo Quattrociocchi
Associate III
June 5, 2025
Solved

STSPIN fault software reset

  • June 5, 2025
  • 1 reply
  • 278 views

[VERSION]: MCWB v6.3.2
[TOOL]: STM32CubeMX v6.13.0, STM32CubeIDE v1.11.5
[BOARD]: STEVAL-PTOOL1V1
[PROJECT]: STEVAL-PTOOL1V1_6S_SL

When the external power on/off input is used to start and stop the motor, if a fault is encountered when running, the motor stops and the board must be powered cycled or hard-reset to clear the faults and resume normal operation.

I would like to make it so that when the external on/off input is set to off, that the firmware performs a software reset or clears/reinitializes the status so the next time the external input is set to on, that it tries to start running the motor again.

What would be the best way to do this?

Thanks,

Angelo

Best answer by GMA

Hello @Angelo Quattrociocchi,

There is a provided API "MC_AcknowledgeFaultMotor1()" on mc_api.c.

1 reply

GMA
GMABest answer
Technical Moderator
June 5, 2025

Hello @Angelo Quattrociocchi,

There is a provided API "MC_AcknowledgeFaultMotor1()" on mc_api.c.

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