Issue with Encoder Alignment Function
Dear ST Support Team,
I am following the procedure described in AN5464 – Position control of a three-phase permanent magnet motor using X-CUBE-MCSDK. As mentioned in Section 5.8, MC_StartMotor1() performs the encoder alignment and zero-reset procedure, and MC_GetAlignmentStatusMotor1() is used to check whether the alignment has been completed.
I have verified that the encoder Z (index) signal is working correctly and have checked the Z-index pulse separately. However, the alignment function call is still failing, and the alignment is not completing as expected.
Could you please help me identify what could be causing the alignment function to fail even though the Z-index signal is working correctly? Please also suggest which parameters, configuration settings, or firmware sections I should check for debugging this issue.
Reference: AN5464, Section 5.8 – API Usage.
Regards,
Prathmesh
