Other Parts Discussed in Thread: CONTROLSUITE
Currently we are trying to verify Level 5 (Trapezoidal Control of BLDC Motors Using Hall Effect Sensors).
While building Level 5 we are getting compilation error as below. MATH_TYPE is set as IQ_MATH.
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.
Currently we are trying to verify Level 5 (Trapezoidal Control of BLDC Motors Using Hall Effect Sensors).
While building Level 5 we are getting compilation error as below. MATH_TYPE is set as IQ_MATH.
You may have a look at the following links to change the .cmd accordingly since you are using F28069M device, but the reference code is based on F28069.
https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/418468/1931338
https://e2e.ti.com/support/microcontrollers/c2000/f/171/p/832121/3077993
And you don't need to change the MATH_TYPE in IQmathLib.h, which should be set to FLOAT_MATH in BLDC_Sensored-Settings.h. Please don't change anything to do an evaluation before you are familiar with the reference code.
With respect to 1st link above, we changed the settings as in the attached snap, but the issue related to ISA error is still there. (when MATH_TYPE = IQ_MATH)
Secondly, we want to understand, why BLDC_Sensored-Settings.h shall have only FLOAT_MATH? [why IQ_MATH can not be used?]
How MATH_TYPE affects performance of Level 5 or Level 6?
For now, we changed the pid_grando.f file as below and Level 5 started working then. [bypassing _IQsat()] and MATH_TYPE = FLOAT_MATH
/*v.term.Out= _IQsat(v.data.v1, v.param.Umax, v.param.Umin); */ \
if (v.data.v1 > v.param.Umax) \
v.term.Out = v.param.Umax; \
if (v.data.v1 < v.param.Umin) \
v.term.Out = v.param.Umin; \
v.data.w1 = (v.term.Out == v.data.v1) ? _IQ(1.0) : _IQ(0.0); \
Download the controlSUITE and reinstall it, the original project should work well for F28069 if you don't change anything.
Btw, just need to change .cmd file as I reply above if you are using F28069M controlCard.