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/TMS320F280049C: TMS320F280049C: problems with adding fastRTS

Other Parts Discussed in Thread: C2000WARE

Hello!
I have some problems adding to the project C28x Floating Point Unit fastRTS library.

I did the following:

1. In the project properties tab File Search Path, I added the name of the library and the path.

2. In the tab Build / Link Order I added the library and set the priority.

After that I try to compile my project, but I get the following error:

I hope for help in solving this problem.

  • Andrey,

    Was this error triggered only after you added the FPU fastRTS library to the project? In any case, this is a compiler bug and we would need a test case to reproduce and analyze the problem. Could you please zip up your project folder and attach it here for us to look at? Thanks.

  • Yes, this error appeared only after adding the library “rts2800_fpu_fast_supplement.lib”. 

    First I added the library "rts2800_fpu32.lib" (by default it was not included in the project).Everything worked fine with her.

    But my problem arose only after adding the library “rts2800_fpu_fast_supplement.lib”. 

    At the same time, I did not copy the library “rts2800_fpu_fast_supplement.lib” itself into the folder with the project. I pointed the way to her at C:\ti\c2000\C2000Ware_1_00_06_00\libraries\math\FPUfastRTS\c28\lib.

    Project_1.rar

  • Andrey,

    Thank you for providing the project. Using it I was able to reproduce the error.

    I noticed a couple of issues with the project. Here are the steps I took that got rid of the error:

    1) Under Linker options->File Search Path, the library is listed as rts2800_fpu_fast_supplement.lib while the actual library name is rts2800_fpu32_fast_supplement.lib. Change the name here.

    2) Remove the quotes around the file name.

    3) Change the entry in the Link Order tab to add the new library (with the correct name and without quotes) and remove the old one.

    4) Build project.

    Let me know if this helps fix the error.

  • AartiG, thanks, that solved my problem.
    I have one more small question.

    I check for how many periods in my code mathematical operations are performed. And I found no match. The library documentation "C28x Floating Point Unit fastRTS Library" (page 15) states that the division operation is performed in 24 cycles, and the square root operation in 28 cycles.
    In my code, these operations are performed in 29 and 33 clock cycles. These are lines 70 and 71.
            x3 = x2 / x1;
            x3 = sqrt (x1);
    What can be the reason for the discrepancy of these data?
    I look at the number of cycles taken by the execution of a line of code using the Count Event tab in the Breakpoints tab.
  • Thank you for the update and glad that the original issue is resolved.

    For your new question, I would suggest creating a new post in the C2000 device forum as the experts there are more knowledgeable about the fastRTS library. Having a separate thread for each question makes it easier to track and also keeps the discussion more focused for others that may be searching for similar topics. Thanks!