BLDC Motor with FOC SDK V4.3 sometimes stops delayed
We are using the FOC SDK V4.3 on a STM32F302. Motor is an e-bike motor with 550W 36V 20poles, using Hall-Sensors.
System is running fine so far. But sometimes when calling the function MCI_StopMotor(mci) we experience a delay of about 20 seconds until the motor really stops and the function MCI_GetSTMState(mci) returns IDLE. The function MCI_StopMotor(mci) does return TRUE.
We call MCI_StopMotor(mci) and then (if it returns TRUE, what it always does) wait until MCI_GetSTMState(mci) returns IDLE. But this sometimes leads to long delays, as mentioned. The motor just keeps spinning with the actual speed for about 20 seconds and then stops. Of course this behaviour is somewhat critical in an e-bike application.
What can we do about this issue? It is difficult to reproduce, but it does happen from time to time.
Can anyone help?
Thanks in advance,
Martin
