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.

Empty Content in SECTIONS of link.xdt

Other Parts Discussed in Thread: CCSTUDIO

Hi,

My problem was unable to get a valid link.xdt for universal_codec copy after using genpackage wizard.

I was following instructions at http://processors.wiki.ti.com/index.php/C64x%2B_iUniversal_Codec_Creation_-_from_memcpy_to_Canny_Edge_Detector#Building_the_Linux_Application .

 

I wanna integrate my codecs to a new server.

 

Unfortunately, I got an error which pointed to link.xdt. I checked link.xdt. Nothing between braces.

SECTIONS

{
}

That was the problem.

 

Then, I checked the example at dvsdk_1_11_00_universal_codecs_ccsv3_3/codecs_1_10_new/packages/ti/fae/codecs/universal_copy/link.xdt,

SECTIONS

{

% if (this.UNIVERSAL_COPY.codeSection) {

    .text:algAlloc  > `this.UNIVERSAL_COPY.codeSection`

    .text:algFree  > `this.UNIVERSAL_COPY.codeSection`

    .text:algInit  > `this.UNIVERSAL_COPY.codeSection`

    .text:algProcess  > `this.UNIVERSAL_COPY.codeSection`

    .text:algControl  > `this.UNIVERSAL_COPY.codeSection`

%}

}

There is something in SECTIONS.

 

Actually, I was using genpackage wizard to create a codec package. But in Step 6 (Generate Linker Template), nothing appear in the box. I tried different .a64P for codec of universal_copy, such as one in codec_engine_2_23/examples/xdais/dm and dvsdk_1_11_00_universal_codecs_ccsv3_3/codecs_1_10_new/packages/ti/fae/codecs/universal_copy.

 

Same results.

 

Any solution? I am using DVSDK_2_00_00_22 with xdctools_3_10_05_61.

 

Thanks.

 

 

  • Vincent,

    Did you get this problem solved as your other post was for a later linker error?

    Iain 

  • Hi Iain,

     

    The problem was not solved. This is a different case, as it occurred when calling genpackage. In the other post, I just copyed sample codec package, then created a server based on the codec. I didn't build the codec myself.

     

    In this case, I tried to build the codec package from the very start(universal_copy.a64p). In the link.xdt, nothing existed between SECTIONS{}. This finally led to an error in building server.

    //===================================================================

    package/cfg/universal_copy_ires_unitserver_evmdm6467_x64P.xdl, line 78:   error:
    //===================================================================

    However, I checked the link.xdt in the sample codec, where there was something between SECTIONS{}.

     

     

    How to handle this?

     

    thanks.

  • Vincent,

    I think the problem is a typo in the instructions. When you create the codec with xs ti.sdo.codecutils.genpackage

    at step 4 can you leave the Check to update section info box ticked. This being unticked was only way I could reproduce your problem.

    So I've changed the wiki article to now read

    Step 4

    Browse for the appropriate executables:

    cg_xml: C:/dvsdk_1_11_00_00/cg_xml_2_10

    ofd6x: C:/CCStudio_v3.3/C6000/cgtools/bin/ofd6x.exe

    nm6x: C:/CCStudio_v3.3/C6000/cgtools/bin/nm6x.exe

    Tick the "Check to guess GetStackSize()" tick box.

    Stack Size Pad %: 20

    Leave ticked the "Check to update section info:" tick box.

    Select "Next"

     

     

    Iain

  • Hi Iain,

     

    Unfortuantely, I still got the same problem.

     

    Actually, I am developing on Linux with dvsdk_2_00_00_22. I mean, I was building the codec and unit server on Linux.

     

    Does it matter?

  • //============ building error =================================
    >> package/cfg/unidm6467_x64P.xdl, line 78:   error:
                   syntax error
    gmake[1]: *** [unidm6467.x64P] Error 1

     

    //================== unidm6467_x64P.xdl===================================

    /* Content from ti.fae.codecs.universal_copy_ires (ti/fae/codecs/universal_copy_ires/link.xdt): */
    SECTIONS
    {


    }

    //================== link.xdt ===============================================

    SECTIONS

    {



    }

     

    //======================== genpackage log =========================================

    Message Log:

    Codec package file creation successful...
    Files output to
    /home/vincent/dvsdk_2_00_00_22_Canny_iUniversal/dm6467_dvsdk_combos_2_05/packages/ti/fae/codecs/universal_copy_ires


    Warning: You may need to attach a header file - Wizard did not find iuniversal_copy_ires.h



    Worst case stack = 0 (not including stack size padding). Warning: Can't locate object method "new" via package "XML::Parser" at XML/Simple.pm line 404.

     

    Thanks.

  • Ah, I got it.

     

    I was stupid to use ceutils 1.06. That's the problem.

     

    Now, no problem with ceutils1.07.

     

    Thank you for your help,Iain.