What's wrong with the following command:
PhaseDiscrete = _IQ15mpy(_IQ15(PhaseDiscrete),_IQ15(Speed));
Both arguments are _iq15, so as PhaseDiscrete.
Adding this statement in the program prevents it from running, although no errors occur during the Build procedure.
What's wrong?