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.

DSPLINK : DSP-side building problems

Other Parts Discussed in Thread: OMAPL138

Hi,

I'm working on OMAP L138 and I'd like to run DSPLINK samples (loop sample). I'm using an host Linux and I've  followed the procedure described at http://processors.wiki.ti.com/index.php/Building_The_OMAP-L1_SDK#DSPLink but I'm not able to build completely the DSP-side sources. The building process seems correct until the following output occurs:

/bin/sh: /cg6x_61_9/bin/cl6x: no such file or directory

gmake[3]: **** [failure.c.deb] Error 127

Could you help me?

Thanks for your time,

Best Regards,

Giambattista

 

 

 

  • Giambattista Carnevale said:

    /bin/sh: /cg6x_61_9/bin/cl6x: no such file or directory

    This is the C6000 Code Generation Tools C compiler that apparently the make build flow is not finding on your system.  You will need to obtain the Linux version of the C6000 code generation tools to install on your host computer.

  • Thanks!

    But actually a I found a typo into the make file C64xxp_5.xx_linux.mk and the path to /cg6x_61_9/bin/cl6x was not correct, once fixed the typo I can build all files when I use "/xdctools_3_16_01_27/gmake" from "/dsp/src". However  a linking problem occurs when I try to build the loop sample only, in fact by using the command "make -s debug" from "/dsp/src/samples/loop" I obtain the following output:   

    [LOOP                ] ------- DIRS ------------------ INCLUDE ------------
    [LOOP                ] ------- DIRS ------------------ DEBUG --------------
    [LOOP                ] ------- DIRS ------------------ EXPORT -------------
    [LOOP                ] ------- BLDINFO --------------- DEBUG --------------
    [LOOP                ] ------- CLEAN ----------------- DEBUG --------------
    [LOOP                ] ------- INCLUDES -----------------------------------
    [LOOP                ] ------- OBJECT ---------------- DEBUG --------------
    Compiling main.c...
    Compiling loop_config.c...
    Compiling tskLoop.c...
    Compiling swiLoop.c...
    Generating DSP/BIOS configuration files ...
    Compiling loopcfg_c.c...
    Compiling loopcfg.s62...
    [LOOP                ] ------- TARGET ---------------- DEBUG --------------
    Generating loop.out...
    <Linking>
    "/tmp/13583G9jxTp", line 10: fatal error: unrecognized file:
       "/home/reicom/OMAP_L138_arm_1_00_00_08/dsplink_linux_1_65_00_01/dsplink"

    >> Compilation failure
    make[1]: *** [loop.out.deb] Error 1
    make: *** [trgdeb] Error 2

    Could you help me?

    Thanks for your time.

    Giambattista

     


  • Giambattista,

    Is there a space at the end of the $DSPLINK environment variable definition? or I still suspect an incorrect path in the make file?

    Deepali

  • Deepali,

     

    you're right! There was a double forward slash into the path definition of the DSPLINK enviromnent variable, once removed one forward slash the building (make -s) works correctly.

    Thanks for your time,

    Giambattista

     

     

  • Dear Deepali,

    I tested the loop sample of DSPLINK with DSP in TSK mode and and it works correctly but when I try to run the sample with DSP in SWI mode the following error occurs:

    <Linking>

     undefined     first referenced                                                                                                        
      symbol           in file                                                                                                             
     ---------     ----------------                                                                                                        
     _ZCPYDATA_SWI /home/reicom/OMAP_L138_arm_1_00_00_08/dsplink_linux_1_65_00_01/dsplink/dsp/BUILD/OMAPL138GEM_0/LOOP/OBJ/DEBUG/loopcfg.obj


    I'm using an host linux and I switched to SWI_MODE by using following steps:

    1) I set DspTskMode=0 by using
     host $ perl config/bin/dsplinkcfg.pl --platform=OMAPL138 --nodsp=1 --dspcfg_0=OMAPL138GEMSHMEM --dspos_0=DSPBIOS5XX --gppos=ARM --comps=ponslrmc --DspTskMode=0
    2) In COMPONENT file I set USER_CC_DEFNS := -d"SWI_MODE

    Could you help me?

    Thanks for your time!

    Best Regards.

    Giambattista
  • GiamBatttista

    Please use DSP_SWI_MODE instead of SWI_MODE and try?

    Deepali

  • Deepali,

    I modified the USR_CC_DEFNS by setting DSP_SWI_MODE instead of SWI_MODE but a compilation failure occurs. Note that I'm using an OMAPL138 target.

     

    Best regards,

     

    Giambattista

  • Giambattista

    Did you rebuild the $DSPLINK/dsp/src folder?

    This function is present under DSP_SWI_MODE in file   $(DSPLINK)/dsp/src/data/DspBios/

    Deepali