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.

TMS320F28P650DH: CLA Math Library not working in C2000 Ware Version 5.00

Part Number: TMS320F28P650DH
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi,

If I include the following library  C:/ti/c2000/C2000Ware_5_00_00_00/libraries/math/CLAmath/c28/lib/cla1_math_library_datarom_fpu32_eabi.lib during build, the function CLAsin and CLAcos does not seem to work but, CLAsqrt works. I get the below warnings on using the above library.

If I include the library  C:/ti/c2000/C2000Ware_5_02_00_00/libraries/math/CLAmath/c28/lib/cla1_math_library_datarom_fpu32_eabi.lib, I don't get any of the above warnings and CLAsin and CLAcos seems to be working.

I need clarifications for the below questions:

1) What is the difference in the library cla1_math_library_datarom_fpu32_eabi.lib between the ones shipped in C2000Ware 5.00 and C2000Ware 5.02?

2) For 28p65x, which library should be included: cla1_math_library_datarom_fpu32_eabi or cla2_math_library_datarom_fpu32_eabi ?

Thanks,

Mukul

  • Hi Mukul,

    For the library files, the following is the meaning of each part of the name:

    cla0/cla1/cla2 - refers to the specific CLA type implemented on the device being used

    • for F28P65x, the CLA is Type 2, so you should use cla2

    datarom - cut down version of the library that assumes the math tables are already in the ROM

    • for F28P65x (and all other GEN 3 devices) the tables are hardcoded in the ROM, so you can use one of the datarom library files

    eabi - used for a project with the EABI data format setting enabled (any lib file that doesn't say eabi is made for COFF data format)

    • You can find the setting for this in your project Properties

    fpu32 - used for project with the hardware floating point unit turned on (any lib file that doesn't say fpu32 is made for a project with fpu32 disabled)

    • You can find this setting in the Processor Options tab of you project properties

    For the F28P65x device, there were some issues with the Boot ROM symbol files included in past C2000ware versions (these are the lib files located in C2000ware path: [C2000ware instakll]/libraries/boot_rom/f28P65x/rev0/rom_symbol_libs/cpu1/claDataROM/lib/). These issues are due to the fact that the library was compiled using c28x addresses (32-bit) rather than CLA addresses (16-bit), which should be why you are receiving this error.  See the thread linked here for more details. I will confirm with the Boot ROM team that the symbol files were fixed in C2000ware 5.02. But if you aren't seeing the warnings with 5.02, that should indicate that it was fixed.

    Best Regards,

    Delaney

  • Hi Mukul,

    Delaney is currently out of office until after the holidays. Please expect a delay in response. Thank you for your patience.

    Best Regards,

    Aishwarya

  • Hi Mukul,

    To update, I am still trying to track down which versions of C2000ware have fixed the issue but should have a response in the next couple of days. If you aren't seeing the warnings with C2000ware 5.02, you should be safe to use the lib files from that version.

    Best Regards,

    Delaney