This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IQsin doesn't work on F28377s



Dear All,


I am currently working on implementing motor control algorithm on F28277s microcontroller. I am trying to use IQmathlib on my current project, however when I tried to compile my code the compiler shows following error:

unresolved symbol __IQ19sin, first referenced in ./adc_soc_epwm_cpu01.obj    F28377S_PRJ_TEMPLATE_FLASH             C/C++ Problem

the code for now is very simple, just free running 3phase SPWM, but I need to make sure it works before I step into FOC algorithm:

thetaU += _IQ(0.031415927);
if(thetaU>(PI<<1))thetaU-=(PI<<1);
    thetaV = thetaU+_IQ(2.0943951);
    if(thetaV>(PI<<1))thetaV-=(PI<<1);
    thetaW = thetaU+_IQ(4.1887902);
    if(thetaW>(PI<<1))thetaW-=(PI<<1);

sineU = _IQ(1500)+_IQmpy(_IQ(1400),_IQsin(thetaU));
sineV = _IQ(1500)+_IQmpy(_IQ(1400),_IQsin(thetaV));
sineW = _IQ(1500)+_IQmpy(_IQ(1400),_IQsin(thetaW));


does anybody has any idea what's going on?I am confused because the compiler only telling me error on IQsin, not the other IQ math related function.


Any help is surely appreciated.

Thanks,

Arief