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.

The usage of mathlib

Other Parts Discussed in Thread: MATHLIB

Hi everyone,

I try to invoke a function of the mathlib in my routine based on CCS5  and  I have connected the C6678 EVM to my computer .

The following code is part of  the test code source.

for(i=0;  i<2048;  i++)

{

        c [i]  =  divdp  ( a [i] ,  b [i] );

}

The array a , b and  c  have been defined before.

 I installed the mathlib in the directory   of D:/ software / ccsv5 /mathlib_c66x_3.0.0.0. 

Then I copy  divdp.asm and  divdp.h to the directory of my project. In addtion, I add the directory D:/software/ccsv5/mathlib_c66x_3.0.0.0/packages

to the include options, the directory  D:/software/ccsv5/mathlib_c66x_3.0.0.0/lib/mathlib.ae66 to the file search path.  

When I build the project ,there are always three errors.

(1)  1' Building file: .. /divsp.asm '   '  Invoking : C6000  Compiler '  " D:/ software / ccsv5 / tools /compiler /c6000 /bin /c16x" -mv6600 -g - -include_path=

" D:/ software / ccsv5 / tools /compiler /c6000/ include " --include _path =" D:/ software / ccsv5 /mathlib_c66x_3.0.0.0/packa "

(2) 1 gmake : Target '  all ' not remade because of errors. D:\software \ ccsv5 \utils \gmake \gmake -k all  . ' Building file : ../ main.c '   ' Invoking C6000 Compiler '

" D:/ software / ccsv5/tools /compiler /c6000 /bin /c16x " -mv6600 -g -include_path="D:

(3) Linking failed . Check the console window for details.

I don't know how to solve the problem.

  • Try adding the path to mathlib.ae66 to something labeled like "Library Search Path" under the "Linker" in the properties -- instead of "Include Directories" under "Compiler"

  • Hi twentz ,

            Thank you very much for your reply.

             I added the path to mathlib.ae66 to File Search Path ,which includes Library Search Path, under the C6000 Linker in the properties.But another error appeared.

    It reads " [E0200 ] Operation cannot be performed on" . When I clicked on the error information ,the cursor located at the insruction ,  .if( OVERRIDE_RTS = 1) , in divdp .asm.

            Divdp .asm is a file in mathlib3.0.0.0  and I have never changed anything  in it.  So I think there couldn't be errors in divdp.asm.  I don't know why this error information

    appears.

            I'm looking forward to your help. Thank you!