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.

TMS320C6670 - OMP Example Project

Other Parts Discussed in Thread: TMS320C6670

Hi,

I have a problem about compiling Code Composer example OMP project for TMS320C6670 evaluation board.

My Code Composer Studio Version: 5.2.1.00018 

Here are the screenshots, am I missing something in the configuration ?

Thanks in advance.

Hakan.

  • Hi Hakan,

    I followed your procedure to build the project successfully. (Note: i did not add "C:\ti\omp_1_01_03_02\packages" in include path and "C:\ti\omp_1_01_03_02\packages\ti\omp\lib\release" in file search path. please delete this in your properties and try) 

    Are you try to build any other example?

    Are you referring "BIOS MCSDK 2.0 Getting Started Guide" for CCS and MCSDK installation?

    Refer the below link to import and build the project:

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/327429/1141639.aspx#1141639

    Thanks,

  • Hi Ganapathi

    Yes, I followed "BIOS MCSDK 2.0 Getting Started Guide" for CCS and MCSDK installation.

    I have removed "C:\ti\omp_1_01_03_02\packages" from include path and

    "C:\ti\omp_1_01_03_02\packages\ti\omp\lib\release" from file search path.

     

    But it can not find "omp.h". 

    Is there something wrong with "CG_TOOL_ROOT" property ?

    And I have also added a new RTSC Configuration File (Dene.cfg) to the project but it is empty (I did not add any property to it.) and I am building the project in "Release" mode.

    1184.console.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    **** Build of configuration Release for project Dene ****
    C:\ti\ccsv5\utils\bin\gmake -k all
    'Building file: ../Dene.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_23_04_60/xs" --xdcpath="C:/ti/omp_1_01_03_02/packages;C:/ti/bios_6_33_06_50/packages;C:/ti/ipc_1_24_03_32/packages;C:/ti/pdk_C6670_1_1_2_5/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.omp.examples.platforms.evm6670 -r release -c "C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.4.7"
    Usage: xs xdc.tools.configuro [--help]
    [-v | -q]
    [-@ optionsfile]
    [-o outdir]
    [-b config_bld | -c codegen_dir | --cb]
    [-t target] [-p platform[:instance]] [-r profile]
    [-Dname=value]
    [-w | -x regexp]
    [--rtsName pkg_name]
    [--cfgArgs args_string]
    [--linkTemplate linker_template]
    [--tcf] [--bios5] [--pkg] [--generationOnly]
    [--compileOptions compile_options_string]
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I can provide the CCS project file in the next post if you prefer. 

    I have also attached build console output to the post.

    Thanks in advance. 

    Hakan.

     

  • Hi Hakan,

    In my project properties->Linked Resources CG_TOOL ROOT path is "C:\Program Files\Texas Instruments\C6000 Code Generation Tools 7.4.0" this is compiler installed path. please check the path is correct in your project properties setting.

    Refer below link to Import CCS eclipse project example.

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/327429/1141639.aspx#1141639

    Thanks,

  • Hi Ganapathi;

    My  CG_TOOL_ROOT is "C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.4.7".

    My problem is not about importing an existing project as you mentioned in your reply, but creating a new one from CCS project template.

    I think the problem is about this line :

    >> ERROR: Cannot open command file './configPkg/compiler.opt': No such file or directory

    When I try to build in Release mode, CCS does not create "compiler.opt" file under "configPkg" folder. So I copied the one from omp folder. Now it compiles the project but when it comes to linking, it says it cant find the "linker.cmd" file under the "configPkg" folder. And there is actually no "linker.cmd" file under the folder.

    My questions :

    - Why can't I build a simple project from a CCS project template easily ?

    - Why does CCS not create "compiler.opt" or "linker.cmd" files in the necessary folders automatically ?

    I searched the linker files for C6670 but there is none. There is linker file for C6678 but there is no linker file for C6670. And I cant build my project with C6678 linker file.

    Why did TI not support the linker file for C6670 ?

    - What are proper project configurations for a successful release build ? Which project files provide which attributes for the build process ? Where can I get detailed STEP BY STEP TUTORIAL about build process ?

    I feel I have to inform you that it is not very possible to get enough information about CCS and C6670 specifically except this forum. 

    Thanks.

    Hakan.

     

     

     

     

     

     

  • Hi Hakan,

    i successfully build the project on debug/release modes. i attached the build console log in this mail.

    0675.Build_log.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    **** Build of configuration Release for project test123 ****
    C:\ti\ccsv5\utils\bin\gmake -k all
    'Building file: ../omp_config.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_23_04_60/xs" --xdcpath="C:/ti/omp_1_01_03_02/packages;C:/ti/bios_6_33_06_50/packages;C:/ti/ipc_1_24_03_32/packages;C:/ti/pdk_C6670_1_1_2_6/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.omp.examples.platforms.evm6670 -r debug -c "C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.4.0" "../omp_config.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg ...
    cle66 package/cfg/omp_config_pe66.c ...
    'Finished building: ../omp_config.cfg'
    ' '
    'Building file: ../omp_matvec.c'
    'Invoking: C6000 Compiler'
    "C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.4.0/bin/cl6x" -mv6600 --abi=eabi -O2 --include_path="C:/Program Files/Texas Instruments/C6000 Code Generation Tools 7.4.0/include" --display_error_number --diag_warning=225 --diag_wrap=off --openmp --preproc_with_compile --preproc_dependency="omp_matvec.pp" --cmd_file="./configPkg/compiler.opt" "../omp_matvec.c"
    'Finished building: ../omp_matvec.c'
    ' '
    'Building target: test123.out'
    'Invoking: C6000 Linker'
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    i guess some include path is wrong in your project. 

    Can you share your project here so that I can take a look at the project properties and let you know the possible solution. 

    Thanks,

  • Hi Ganapathi,

    You can find the project attached. 5224.Dene.zip

  • Hi Hakan,

    Apologize for the delay. I have change the compiler version in your project properties (TI v7.4.5) after change the compliler version i able to build your project successfully.

    Install the compiler version 7.4.5 and change the compiler in your project properties. i have attached screen shot in this threat.

    Thanks,