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.

CC2652P7: support for math functions

Part Number: CC2652P7


Hi,

I need to use log functions in my algorithms(ex:  log10f) and also to print floating point numbers.

Have included  " #include <math.h>"

Looks like the compiler is not able to find math.h. I don't get any build errors though.

What should I cross check?

Thanks

Karthik

  • Hi Karthik,

    The math library is included as part of the compiler directory in your CCS installation, for example C:\ti\ccs1230\ccs\tools\compiler\ti-cgt-armllvm_2.1.3.LTS\include\c.  You may not be able to open the declaration of this file directly inside of CCS, however you should be able to use math functions after including the header file.  For example, I was able to "#include <math.h>" in my SimpleLink SDK TI Driver project to use log10 and sin functions without any build errors.  Here also is the TI Arm Clang Compiler Tools User’s Guide.

    Regards,
    Ryan