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.

SM320F2812-EP: SM320F2812-EP

Part Number: SM320F2812-EP
Other Parts Discussed in Thread: SM320F2812, C2000WARE

I have been tasked with updating/maintaining a legacy SM320F2812 project developed by a subcontractor.  The original development environment is not available to me so I have to port the code to a (much) newer version of Code Composer Studio and recreate "IQMathlib.lib"

I've downloaded "IQMathLib.zip" and extracted the files but it seems to be missing something as well making some questionable assumptions:

The "readme.txt" file simply says "This project will build the Tiva IQmath Library", with no direction.

I've got a "config.in" file which looks like it drives a lot of the creation of the library; it runs Perl to create source files from templates and appears to build subsidiary make files.  But I don't know how to use this file to do anything.  What drives it?

I've gor a "makefile" which references "makefile..iqmathlib" and I think the referenced file comes out of the process which uses "config.in".

I've got a "makefile.lmi" which has a comment that it runs after "buildproj finishes generating the project".  This comports with "config.in" which sets "makefile.lmi" as "POSTAMBLE".  I assume "buildproj" is the file which uses "config.in". but I don't find any "buildproj".

"makefile.lmi" also appears to be using "sed" to modify project files, apparently changing directories based on the project file extension.  I don't know where these project files would come from, but I assume something in "buildproj" drives it.  The problem is that I don't have "sed", and I don't have any compilers installed that could process these project files.

I realize this zip file is something like 13 years old and things have moved on but I've got to deal with the existing hardware and code base.  Can you give me any guidance as to how to actually use this archive to create "IQMathLib"?

  • Hello Allen,

    I'm not sure where you got this version of IQmath or why it was a separate zip file, but we provide the IQmath library as part of the C2000Ware SDK installation in the directory C2000Ware_4_XX_XX_XX\libraries\math\IQmath\c28. The library includes a user's guide, some library/header files, and some examples. What you're describing doesn't sound anything like that, so I'm not sure if this is from some other site or just from a very old version of IQmath. Is it possible for you to check whether the current library is compatible with your existing code base (not much has been changed regarding the library itself, so I would hope that there is no problems here)? I have no access to anything before 2017 for C2000Ware/IQmath, so I'm not sure how this library was used, who created it, or what might be going wrong.

    Best regards,

    Omer Amir

  • The version I downloaded came from "SW-TM4C-IQMATH Driver or library | TI.com" and was the only non-MSP430 version if IQMathLib I could find.  The version you pointed me to seems to have what I need without my having to concern myself with building the library,

    I really have no idea whether the current version is code-compatible with my existing code; I'm converting from CCS 3.3 to CCS 12.3, which is, I think, slightly worse than starting from scratch.  But I can now build against this library and see how much (or little) I've gained.

    Thank you for a quick response.