Skip to main content
Angelo Quattrociocchi
Associate III
Jun 5, 2025 2:34 AM UTC
Solved

STSPIN fault software reset

[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

This topic has been closed for replies.
GMA
GMABest answer
ST Technical Moderator
Jun 5, 2025 1:14 PM UTC

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 'Best answer'.Best regards.GMA

1 reply

GMA
GMABest answer
ST Technical Moderator
Jun 5, 2025 1:14 PM UTC

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 'Best answer'.Best regards.GMA