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.

CCS/TMS570LC4357: Generic C functions?

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

I am using CCS to program the TMS570LC4357 KIT.   When I try to use the function itoa() to convert an integer to string,   CCS complains that it doesn't recognize the function.   So where are the header files for generic C functions located?  I can't find them.

  • Can you please confirm that you are using TI ARM compiler and provide the version that you are using in CCS.  TI ARM compiler RTS library provides a ltoa() function in stdlib.h. Instead of using itoa please consider using ltoa()

    Prototype of the function is as follows:

    int       ltoa(long val, char *buffer);

    Please checkout the header stdlib.h in the include folder of the compiler installation and let us know if you have any follow up questions.

    Regards,

    Rahul

  • I'm using CCS version 9.   I am not sure about ARM RTOS.  I changed the function to ltoa() and it worked.   However,  another function strcat() doesn't work.  How do I find which functions can work and where the header files are?

  • TI Compiler does not provide documentation for the standard RTS functions. They are typically implemented similar to any standard C/C++ compiler. For example the function(strcat) that you are trying to locate is typically part of string.h. Have you included that header? 

    Just at the compiler include folder to search path and add the headers just as in case of standard C. 

    All the include files are located here:

    <CGT_INSTALL_PATH>\ti-cgt-arm_16.9.6.LTS\include

    Hope this helps.

    Regards,

    Rahul

  • Hi Rahul,

    This solves my problem.   I don't know where to click please help me to close the case.   Thank you very much.

    XG