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/TMS320F28035: TMDSCNCD28035

Part Number: TMS320F28035

Tool/software: Code Composer Studio

Hi

How can I use the atan2 in code composer for the TMS320F28035?

If I need libraries what would they be?

regards,

  • Luis,

    If you had a device that had the TMU, the compiler would have generated asm code that uses the TMU to perform fast atan2 operations. If you had the FPU module, you could have used the FPUFastRTS library to implement a fast atan2 (much faster than the standard RTS library, but slower than TMU). But the 28035 device has neither the FPU nor TMU, so it seems like you will have to use the standard RTS library.

    Thanks,

    Sira

  • Thanks for the answer.

    I need to add files to my project? What do I need for trigonometric functions to work? I'm working with FLASH memory.

    Thanks,

    Luis

  • Luis,

    The TI compiler (e.g. path is C:\ti\ccsv8\tools\compiler\ti-cgt-c2000_18.12.1.LTS\lib) contains the necessary libraries that you will need to link into your project. You will see a file called libc.a - this is the archiver index file that will point to the final library file depending on the project settings.

    For example, if you are building for COFF, the lib file linked will be rts2800_fpu32.lib. If your building the output in EABI format, the lib file linked will be rts2800_fpu32_eabi.lib. If you have FPU64 in the device, then the lib file linked will be rts2800_fpu64_eabi.lib (note that FPU64 supports only EABI output).

    Also note that the compiler release contains run-time support source, so that any library variants that are required but not provided in the build can be built by the user.

    And From spru514s, "

    If
    the library name is explicitly specified (e.g. -library=rts2800_ml.lib), run-time support looks for that library
    exactly. If the library name is not specified, the linker uses the index library libc.a to pick an appropriate
    library."

    If you need additional details, refer to spru514s or the Archiver chapter of spru513s.

    Thanks,

    Sira