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.

TDA2EVM5777: Using vlib in vision sdk

Part Number: TDA2EVM5777

Hi,

Is there any document on how to use the vlib apis in vision sdk?

Is there any sample usecase in vision sdk, which is directly using the vlib apis?

Your suggestions will be helpful.

Thanks,

Suganthi

  • Hi Suganthi,

    Please check in:
    <VisionSDK_install_dir>\ti_components\algorithms_codecs\vlib_c66x_3_3_0_3\docs
    <VisionSDK_install_dir>\ti_components\algorithms_codecs\vlib_c66x_3_3_0_3\examples

    Regards,
    Yordan
  • Hi Yordan,

    Thanks.
    I build the HoughLinesDemo using CCS and the out file is getting created.
    When I try to launch the outfile to DSP1 core in the TDA2xx board using the debugger, the loading is getting failed.
    Please suggest.

    Thanks,
    Suganthi
  • Hi Suganthi,

    I have forwarded the question to vlib expert to comment.

    Regards,
    Yordan
  • Hi expert,

    I am able to build the sample example given in the vlib.
    When I tried to load it in the c66x core of tda2xx core, the loading is failing.

    Query 1:
    There is a linker script provided in the example with dram, stack and heap sizes mentioned. I feel that a change needs to be done in the linker script.
    Can you please provide the details on changing the linker script, for executing on the real hardware?

    Query 2:
    How to simulate the same example Hough program in PC environment?

    Your suggestion will be helpful for us.

    Thanks,
    Suganthi
  • Query 1:

    There is a linker command file that was used on silicon in the following folder vlib_c66x_3_3_0_3\packages\ti\vlib\src\common\c66\lnk.cmd.  I'm not sure if it will work straight away as I haven't tried this with the Hough example (it is used with each of the vlib kernel examples in the library).  I can't try right now since I am away from my board for the next couple weeks, but perhaps this would be a good starting point.

    Query 2:

    The VLIB package only has libraries for the DSP, and does not have a PC library available, so it can not be simulated on the PC.

  • Hi Suganthi,

    You can build any intrinsic DSP code for PC, please take help from below link.
    processors.wiki.ti.com/.../Run_Intrinsics_Code_Anywhere

    Also you can find DSP algorithm (e.g. lane detection ) inside the folder \ti_components\algorithms_codecs. These algorithms can be built for PC as well with command "gmake TARGET_PLATFORM=PC". Some of these algorithms will be using the VLIB APIs.

    Regards
    Deepak Poddar