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.

Integration between DSP/BIOS Link and Codec Engine..

hi..

I want to integrate between DSP/BIOS Link and Codec Engine.

In other words, i want to insert sample code of encodedecode(loopback) in the readwrite sample($DSPLINK/gpp/src/samples/readwrite) of gppside.

That reason to do this is that I execute loopback except encoding and decoding in encodedecode demo and add image processing code. So what I want is Loopback code is execute in arm(gppside), and image processing code is execute in dsp.

But I am faced with a compile error when i inserted header file.

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

file : ~/dvsdk_1_40_02_33/dsplink-davinci-v1.50-prebuilt/packages/dsplink/gpp/src/samples/readwrite/Linux/main.c

/*--------------------- OS specific headers */
#include <stdio.h>
#include <stdlib.h>

/*---------------------- DSP/BIOS Link */
#include <dsplink.h>

/*----------------------Application Header */
#include <readwrite.h>

/* --------------------Newly added header file -----------------------*/
#include <xdc/std.h>
#include <ti/sdo/dmai/Fifo.h>

...

...

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

I guess I'll have to modify files in make-directory of DSP/LINK (compile.mk, link.mk, and so on..).

But I don't know how to modify the .mk files.

Any advice would be greatly appreciated. :D

  • What type of errors are you getting?  Is it simply that it cannot find the header files... If so, then you probrably need to add the path to these files to your makefile; normally this is done with a '-I' compiler option; I would look where the makefile has some of the include directories defined (-I option) and simply add your paths.

  • There are better methods within Codec Engine to allow you to write an algorithm that runs on the DSP to do image processing.  Here are a couple wiki articles that give good information:

    http://tiexpressdsp.com/index.php?title=Porting_GPP_code_to_DSP_and_Codec_Engine

    http://tiexpressdsp.com/index.php?title=Getting_started_with_IUNIVERSAL

     

     

  • First, I used readwrite example as base. And I modified makefile of readwrite as below.

    --------------------------------------------------------------------
    ...

    export XDC_PATH = $(XDC_INSTALL_DIR)/packages

    ....
    --------------------------------------------------------------------

    And I added $(DSPLINK)/make/Linux/Davinci/compile.mk as below.

    ------------------------------------------------------------------------------
    ...

    STD_INC_PATH += $(CC_SW_INC)$(XDC_PATH)

    ...
    -------------------------------------------------------------------------------

    And, I added #include <xdc/std.h> in $(readwrite)/Linux/main.c, I compiled.
    So, I got these errors.

    ---------------------------------------------------------------------------------------------------------------------------------
    /root/dvsdk_1_40_02_33/xdc_3_00_06/packages/xdc/std.h:92 : error: parse error before "a"
    ....
    ----------------------------------------------------------------------------------------------------------------------------------

    Maybe, Add I all related header file in this way?

    So, I go ahead to add $(DVSDK)/PSP_01_30_00_082/example/dm646x/Source/saMmapLoopback.c in readwrite example than to modifiy these header conflict error.

    So, I did it like that integrating between dsplink and loopback source.

    thank you.

  • Jin,

    I am not sure I understood everything you said in your last message; does this mean you have it working?  If not, can you restate your question please?