cancel
Showing results for 
Search instead for 
Did you mean: 

STSPIN fault software reset

Angelo Quattrociocchi
Associate III

[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

1 ACCEPTED SOLUTION

Accepted Solutions
GMA
ST Employee

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

View solution in original post

1 REPLY 1
GMA
ST Employee

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