Hello, everyone.
I'm developing a FIR filter and after doing my best to reach a high frequency performance (I got 50 MHz of signal input for a 52 coefficients filter), I decided to test the DSPLIB since I see I could reach frequencies above 140 MHz.
In order to create the project I tried different methods:
1) Whit RTSC
- I created a simple "Hello word" CCS5 project and after I added a .cfg file to convert the project to a RTSC.
- In Properties>General>RTSC I checked the DSPLIB and the MATHLIB options.
- In my source file I added the ".../inc/dsplib.h" and "../inc/mathlib.h" headers.
2) Trying to manually linking the libraries.
- I created a simple "Hello word" CCS5 project.
- In Properties>c6000 Compiler>Include options I added the paths to the DSPLIB installation folder and the DSPLIB packages folder.
- Link the DSPLIB library with one of those two methods:
- In Properties>c6000 Linker>File Search Path I added the library file dsplib.a66.
- In my .cmd I added at the beggining the line -l "C:/ti/dsplib_c66x_3_0_0_8/lib/dsplib.a66"
- In my source file I added the ".../inc/dsplib.h" and "../inc/mathlib.h" headers.
In both cases, when I build the program an error saying "unresolved symbol xx" for any function xx of the library I use. Besides, when I'm writing the code the autocompletion doesn't show any help about the fuctions of the library but it does for example, for the mathlib.
I add an example of the console log of my error.
**** Build of configuration Debug for project testdsplibka ****
C:\ti\ccsv5\utils\bin\gmake -k all
'Building target: testdsplibka.out'
'Invoking: C6000 Linker'
"C:/ti/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --display_error_number --diag_warning=225 --abi=eabi -z -m"testdsplibka.map" --warn_sections -i"C:/ti/ccsv5/tools/compiler/c6000/lib" -i"C:/ti/ccsv5/tools/compiler/c6000/include" --reread_libs --rom_model -o "testdsplibka.out" "./main.obj" -l"libc.a" -l"C:\ti\dsplib_c66x_3_1_0_0\lib\dsplib.a66" "../lnk.cmd"
<Linking>
warning #10349-D: creating output section ".init_array" without a SECTIONS
specification. For additional information on this section, please see the
'C6000 EABI Migration' guide at
http://processors.wiki.ti.com/index.php/C6000_EABI:C6000_EABI_Migration#C6x_
EABI_Sections
undefined first referenced
symbol in file
--------- ----------------
DSP_fir_r8 ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "testdsplibka.out" not built
>> Compilation failure
gmake: *** [testdsplibka.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
How can I correctly linking the DSPLIB into my project? Is there any step missing?
Thank you.