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.

Floating Point Math Library for MSP430

Other Parts Discussed in Thread: MSPMATHLIB, MATHLIB

Hello,

I am trying to obtain the download for the mspmathlib.

The following link has a place to select the download of the software, but when selected it goes to a Code Composer download page.

http://www.ti.com/tool/mspmathlib

Can someone point me to the correct link to download the library?

Thanks,

Brent

  • Hi Brent,
    The floating point math library for MSP430 is included in the download package for CCS v6. This is why clicking on "get software" takes you to the CCS download page. Currently you cannot download a standalone version of the library, so you can only get it though an IDE such as IAR or CCS.

    I hope this helps,

    Damian
  • Thanks for the response Damian.

    I am currently using CC5 (this is what I have a license for). I see the libraries located at:
    C:\TI_CC55\ccsv5\ccs_base\msp430\lib

    but I can not find the associated msp430_math.h??

    I have also downloaded a CC6 version (won't work with my current license) and I see the libraries at:
    C:\TI_CC60\ccsv6\ccs_base\msp430\lib\5xx_6xx_FRxx

    but again I can not find the associated msp430_math.h??

    I assume I can use CC5 since the libraries were part of the installation.

    Just not sure why the missing header file??

    Any ideas on where I can get this?

    Thanks,

    Brent
  • Brent,
    Did you add the correct LIB file for your data model? Once the LIB is included to your project, the msp430_math.h should be visible to the project. Instructions are here in the UG for mathlib: http://www.ti.com/lit/ug/slau499/slau499.pdf

    Damian
  • Hi Damian,

    Yes, I followed those instructions.

    Below are screen shots from my project.

    Here is where I added the associated library:

    As you can see there is a ? by the msp430_math.h indicating it is unresolved.

    Not sure what I am doing wrong?

    Any ideas?

    Thanks,

    Brent

     

  • Hi Brent,

    I apologize for the confusion with the math library. I tested it on my side and was having the same problem you have, so I did a bit of research and this is the fix:

    1) Create a new project

    2) Go to project -> Properties -> Build -> MSP Linker -> File Search Path

    3) Ensure libmath.a is the first listed library under "--library, -l":

    4) Do NOT add the library file I suggested on the previous email. This is required for older versions of CCS, but not for CCS v5. 

    5) Do NOT include "msp430_math.h" but include "math.h" in your project file:

     

    6) You should be able to build your project

    We are currently working on updating the online documentation to clarify this. Please let me know if you have any further problems.

    Damian

  • Thanks Damian, that works

**Attention** This is a public forum