Error with IQMath during C2000 Code Generation and TI Launchpad

2 ビュー (過去 30 日間)
DKalale
DKalale 2016 年 2 月 10 日
Hi,
I am using MATLAB2016a Prerelease to compile embedded code for a TI TMS320F28069M Launchpad. This is working fine.
I am building a model off of the c28069pmsmfoc example in simulink which has extensive use of fixed point math. My ultimate problem is that whenever I add an IQMath function, I can still successfully compile code, but when I burn the code, it causes my launchpad to freeze up (i.e. no more blinking LED at 1/2 sec interval). I think it has something to do with not referencing the IQMath libraries correctly. I get the following "warning" in the matlab console during the compile process:
<Linking>
warning: build attribute vendor section TI missing in
"C:/MATLAB/SupportPackages/R2016aPrerelease/toolbox/target/supportpackages/t
ic2000/rtlib/IQmath_fpu32.lib<IQ17toF.obj>": compatibility cannot be
determined
If I look in the generated C Code from the report, it is calling the C function and it is referenced in the header file. Since this is a library that is installed with the C2000 HW Support package, I don't think I did anything wrong installing it...
/* C28x IQmath Library (stiiqmath_iqtof) - '<Root>/IQN to Float' */
3012 {
3013 rtb_IQNtoFloat = _IQ17toF (rtb_Saturation);
3014 }
After reading about this online a bit, I have seen that this warning is from the libraries being compiled in an older version of Code Composer Studio. Does anyone know how to recompile the libraries in CCSV5 (if this would help)?
Any ideas on how to get the model properly referencing the IQMath functions?
Thanks for the help.

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by