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.

TMS320F28035: Trouble including IQmath.lib

Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE

Dear all,

I cannot get the IQmath library correctly included. First i got this error: (Similar to a related post i found

undefined first referenced   
  symbol       in file        
 --------- ----------------   
 __IQ24div ./eQEP_Calculus.obj

So then i followed the IQMath_Quickstart.pdf document found on: ...\C2000Ware_3_04_00_00_Software\libraries\math\IQmath\c28\docs, and now i get the following error:

error #16008-D: file "E:/Programes/TexasInstruments_CCS/C2000Ware_3_04_00_00_Software/libraries/math/IQmath/c28/lib/IQmath_coff.lib<IQ24div.obj>" specifies ISA revision "C2800", which is not compatible with ISA revision "C28FPU32" specified in a previous file or on the command line.

I attach some screen capures of how my project explorer and project build settings look like.

I believe i followed what the guide said, but i am surelly missing something ... Any ideas?

Thank you very much for your time!

Joan

  • Hi Joan,

    Can you make sure that the IQMath LIb that you are including is compatible with the project settings?

    Make sure that the object file format (coff/eabi) of the lib and the project match

    Make sure that if you are enabling --float_support=fpu32, you use the corresponding lib file and similarly if you are not.

    Alternatively, you directly use the index library (IQMathLib.h), which willl automatically pick the right lib file based on the project configuration

    -Shantanu

  • Hi Shantau,

    Thank you very much for your answer. As you said i think the problem was the "object

     file format" because i changed the library files to the ones that end with "(...)_coff.lib"

    Now the error is gone, but now i get these two warnigs:

    "Cannot resolve archive (...)rts2800_fpu32_fast_supplement.lib to a compatible library as no input files have been encountered".

    And this same warning for the file "IQmath.lib".

    I think i'll eventually get it but i should read more documentation on what are for example "coff" and "eabi" formats, because i had no idea they existed, or how libraries are managed in CCS, what is an input file etc... could you suggest any books/documents that could help?

    Thank you very much!

    JoanM

  • Joan

    To fix the "cannot resolve archive" diagnostic, change the link order so the "-l libc.a" entry appears after all the object files. That way, you can always force the linker to choose an appropriate run-time-support library.

    You can read more about these in the compiler guide. Choose the document that describes the compiler that you are using: https://www.ti.com/tool/C2000-CGT#downloads

    -Shantanu