Solved
STC_GetMecSpeedRefUnitDefault prototype does not match.
The definition of the function is
__weak int16_t STC_GetMecSpeedRefUnitDefault(SpeednTorqCtrl_Handle_t *pHandle) in speed_torq_ctrl.c file.
It is called in mc_tasks.c as below
STC_GetMecSpeedRefUnitDefault(pSTC[M1]),0);
it is called with additional 0 argument, why? What is the purpose of 0?
