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.

Compiler/TMS320F280049: CLACos/sin erroneous results

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI C/C++ Compiler

CLACos() and CLASin() functions are both returning results along the line of +-1.0e+9.  The values do change slightly depending on the input but a stay in the same order of magnitude for all inputs -2pi to +2pi.

I'm assuming I don't have something loaded correctly.

The CLAcos/sin location along with the tables are shown below from the .map file:

And here is the search path:

not sure what I am overlooking.  

Thanks

  • Here is the code snippet that is running in CLATask2.  Task 2 is triggered in c2000 software at 1kHz.

    And a plot of the results:

  • FWIW the CLAsincos() function works as expected.

    generates this output:

  • DTruex,

    Have you tried running the C2000Ware example for CLACos on the F28004x?  There is a FLASH build configuration as well as a RAM build configuration.  Comparing this to your implementation would provide clues as to where things have gone wrong. 

    C:\ti\c2000\C2000Ware_<version>\libraries\math\CLAmath\c28\examples\cos

    Regards

    Lori

  • Note: due to holidays in the US next week, responses may be delayed. 

    Hi Dtruex,

    I haven’t heard from you for a few days, so I hope this helped answer your question or you were able to resolve the issue.  

    Please click the green "Verified Answer" button if the issue is resolved.

    If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.

    • If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.
    • If you have a new question, click the "Ask a new question" button.

    Regards,
    Lori

  • Lori,

    Since the CLAsincos() function works in my firmware this has lost a bit of urgency.  I did confirm the example CLAcos() function provided works as expected running from RAM or FLASH.  There are a number of differences in the xx_lnk.cmd files in need to sort through (this project is based on an example from an earlier revision of  C2000Ware), I just haven't had time.

    Given that I have a project that works as expected I should be able to track down the problem.  Thanks for your help.  

  • Thank you for the feedback!  I will close this thread.