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/TMS320F28069M: TMU results on c28x is not correct

Part Number: TMS320F28069M

Tool/software: Code Composer Studio

Hi!

I am working on F28069 uc and I want to use TMU. Unfortunately TMU results on c28x is not correct:

cos_a = cosf(2.0f*PI);      /* cos(2pi) = 1 */
cos_a = __cos(2.0*PI);      /* __cos(2pi) = 2pi??????????????? */
cos_a = __cospuf32(1.0f);   /* __cospuf32(1.0f) = 1??????????????? */

The CCS project is attached. Please guide me.

Thanks.

  • Omid, I don't see any attachments. Also, it isn't clear from the source comments as to what exactly you are observing vs expecting. Please clarify.

  • The CCS Version: 10.1.0.00010

    The Compiler Version: v20.2.1.LTS

    Hi Sira,

    Thank you for your response.

    I attached the project again (tmu.zip). The project has two build configurations, FUP32 and FPU32_TMU, with different project options. In the FPU32_TMU build configuration tmu support is enabled and floating point mode is relaxed.

    Now, Consider cos(2pi) (or any instructions supported by tmu). For fpu32 or softlib, the expected value is one and the observed value is one. For tmu, observed value is 2pi!?!? Unfortunately tmu result is wrong.

    best regards, omid

    8836.tmu.zip

  • According to datasheet, on f28069 TMU is not available. This parameter is available only for specific C28x devices (such as f28388d).