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.

Adding Library to existing DSP code under SysBIOS (in CCS v5)

Other Parts Discussed in Thread: SYSBIOS, MATHLIB

Hi all!

I'm new to CCS v5.

I have a project code that's running under DSP C674x SYSBIOS v6. I want  to add software library to it.

Are there any examples how to do it? Maybe some guide ... How to merge my existing project and new library?

How to build library for running under SYSBIOS?

Regards,

Bakir

I know how to do it in makefiles under the linux, but I haven't such experience under the Windows in CCS.

  • Hi,

    Thanks for your post.

    In windows CCS environment, you can add library search path in the corresponding DSP project properties -> C6000 Linker-> FileSearchPath and under this, you can add the dsp library path and merge it to your existing DSP project. After you add dsp library in the linker path, you could use the DSP library kernel API functions applicable into your working project.

    Individually, you could import the DSP library project in CCS and you can clean & rebuild the DSP lib. project. After rebuild, it will generate a new static dsp libraries "dsplib.lib" and "dsplib_cn.lib" in the below path:

    ~\ti\dsplib_c674x_3_2_0_1\packages\ti\dsplib\lib

    Along with static dsp libraries, you will also see newly generated files (dsplib.ae674, dsplib.a674, dsplib_cn.a674, dsplib_cn.ae674) for both little and big endian from the same path above. When you clean & rebuild the DSP library project, you could see generating the dsp library source folders dspliba674, dsplibae674, dsplib_cna674, dsplib_cnae674 for all dsp library kernel functions from the below path:

    ~\ti\dsplib_c674x_3_2_0_1\packages\ti\dsplib\package\lib\lib

    Please refer the below E2E post tagged by Petr Duga for the steps to import mathlib header file and adding the corresponding compiler and linker library paths. They have used mathlib for instance in the below path and likewise, you can do it for dsplib into your existing dsp bios project.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/325949

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    -------------------------------------------------------------------------------------------------------

  • Hi Bakir,
    Please refer to the following TI wiki.

    processors.wiki.ti.com/.../Include_paths_and_options

    Also, please make use of our dedicated CCS forum for your CCS queries. :-)

    e2e.ti.com/.../81
  • Hi Sivaraj, Titus!

    Thank you very much!

    Dear Sivaraj,
    I was not entirely accurate in my question. But I think your guides gave me basic rules "How to ...".

    Actually I'm trying to port codec in Audio example project. I need to use coder and then decoder and find out DSP load with this. So I wanted to build my codec library and then bind this shared lib (in linux codec.so) to my Audio project.

    Dear Titus,

    You read my thoughts. I think your link is very useful!


    Best regards,
    Bakir