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.

What is right way to include DSP LIB?

Hello!

I want to use DSPLIB in CCS v5 project. When DSPLIB was installed, specifically dsplib_c66x_3_2_0_1, It was found by CCS on the next start. However, I have noticed that for most of products discovered, there is an entry in linked resources list. For example, I see

AIF2_INSTALL_PATH pointing to ${TI_PDK_INSTALL_DIR}\packages\

and many others, but I see nothing pointing to just installed DSPLIB. Should I define new path variable for DSPLIB? If so, what place should I point at, I mean just root or packages folder, i.e.

DSPLIB_INSTALL_DIR = C:\ti\dsplib_c66x_3_2_0_1\packages

or

DSPLIB_INSTALL_DIR = C:\ti\dsplib_c66x_3_2_0_1

Thanks in advance.

  • After installing DSPLIB you should see the build variable TI_MAS_DSPLIB_C66X_INSTALL_DIR (under Project Properties->Build_Variables tab, enable "Show system variables"), which points to the root directory of the DSPLIB install. I see this in my install.

  • AartiG,

    Thank you for the hint. TI_MAS_DSPLIB_C66X_INSTALL_DIR really exists in build variables. So for compiler include options I add the following line

    "${TI_MAS_DSPLIB_C66X_INSTALL_DIR}"

    and for linker file search path I add

    "${TI_MAS_DSPLIB_C66X_INSTALL_DIR}/packages/ti/dsplib/lib"

    Is that right way?

    Thanks in advance.

  • That would be correct if those are the directories you want it to search for compiler include files and libraries respectively. I see the header file dsplib.h in the \dsplib_c66x_3_2_0_1\packages\ti\dsplib directory though so if you are including that header file in your source then you should set the compiler include option to that path.

  • When I set the path as in previous post, then compiler can find header as

    #include <ti/dsplib/dsplib.h>

    I see other products referred similar way, say

    #include <ti/csl/csl_cpsw.h>
    #include <ti/csl/csl_bootcfg.h>
    #include <ti/drv/cppi/cppi_drv.h>

    so I thought my way was consistent with above. You know, these are very basic questions mature developer should never ask, but switching to new tools really makes me newbie, so I wish to pick up recommended practice.

  • rrlagic said:

    When I set the path as in previous post, then compiler can find header as

    #include <ti/dsplib/dsplib.h>

    If the #include specification looks like that then yes the compiler include path should be set to the  \dsplib_c66x_3_2_0_1\packages folder.

  • Got it, thanks!