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.

TMS320F28379D: Math_Blocks under Motor_Control issue with Floating point

Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE

svgen_mf.h is not compatible with floating point.

For example:

SVgen.Tb = (_IQ(1.0)-SVgen.dx-SVgen.dy)>>1;

Is supposed to be divide by 2, but only in Integral types.

Also. general question, are there updated functions for things like SVPWM somewhere? Either in a new library or another H-file; version 4.3 (the latest in controlSUITE) was updated last in 2012.  There are a few other similar issues to this.

Thanks!

  • Hello,

    That's not really an issue with the svgen_mf.h file not being compatible with floats. The compiler will give you that error with any kind of bit manipulation (shifting, ANDing ORing, etc...) operation on a float type. If you did /2 instead of >>1, it would compile.

    Whitney