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.

PDK PCIe Sample Project Build Problem

Hello,

I am facing with two major problems after I installed CCS and MCSDK which go as follows:

1. I installed CCS v5.1 and MCDSK v2.0.5.17 which are the latest releases. I am trying to build PCIe sample project that comes along with the MCDSK installation.
It is located under "\TI\pdk_C6678_1_0_0_17\packages\ti\drv\pcie\example\sample". However, it doesn't seem to be a regular CCS project and
I didn't manage to find a way of building it. The only thing that was mentioned in its README file is to build it and have it run on two separate EVMs.

As  a workaround, I created a typical SYS/BIOS project under my own workspace and replaced the *.cfg file of this newly created project with the *.cfg file in the sample project folder. The environment gives the error of that it couldn't find the necessary PCIe package which is referenced in the *.cfg file. How can I fix this issue?

2. Another problem that I am facing with is to import CCS sample projects in general. I installed CCS and MCDSK on a 64-bit Windows 7 platform. However,
no matter how hard I try, I cannot build them properly even if I locate the necessary header files, libs, etc manually. For instance, if I create a simple Sys/BIOS project, the environment gives the error of that it couldn't locate <XDC\Sys.h>. What might have gone wrong with my installation of the environment?

Thanks,
Hakan

  • Hello again,

    There is one more point that I want to mention.

    Even when I try to create a 'sys/bios Helloworld' application from CCS templates, I do not manage to do it. I get the same error about 'XDC/std.h'. The console output is as follows:

    **** Build of configuration Debug for project pcie2 ****

    C:\Program Files (x86)\Texas Instruments\ccsv5\utils\bin\gmake -k all

    'Building file: ../app.cfg'

    'Invoking: XDCtools'

    "C:/Program Files (x86)/Texas Instruments/xdctools_3_22_04_46/xs" --xdcpath="C:/Program Files (x86)/Texas Instruments/bios_6_32_05_54/packages;C:/Program Files (x86)/Texas Instruments/ipc_1_24_00_16/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r release -c "C:/Program Files (x86)/Texas Instruments/ccsv5/tools/compiler/c6000" --compileOptions "-g --optimize_with_debug"

    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]

    [--oc compiler.opt] [--ol linker.cmd]

    infile.cfg

    'Finished building: ../app.cfg'

    ' '

    'Building file: ../pcie_sample.c'

    'Invoking: C6000 Compiler'

    "C:/Program Files (x86)/Texas Instruments/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --include_path="C:/Program Files (x86)/Texas Instruments/ccsv5/tools/compiler/c6000/include" --display_error_number --diag_warning=225 --abi=eabi --preproc_with_compile --preproc_dependency="pcie_sample.pp" --cmd_file="./configPkg/compiler.opt" "../pcie_sample.c"

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

    "..\pcie_sample.h", line 58: fatal error #5: could not open source file "xdc/std.h"

    1 fatal error detected in the compilation of "../pcie_sample.c".

    Compilation terminated.

    >> Compilation failure

    gmake: *** [pcie_sample.obj] Error 1

    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

     

    I think I have a problem about using 'XDC Configuro tool'. Somehow the expected 'ConfigPkg' folder has not been created, so 'compiler.opt' and 'linker.cmd' does not exist.

    How can I be sure if the 'Configuro tool' works correctly ?

    Regars.

     

  • Regarding the installation issues.  When installing ccs and the mcsdk onto windows 7, disable uac (user access control) during the installation.  You can do this by typing "uac" in the search box at the bottom of the start menu.

    Next, when running CCS, try running it as administrator.  (Its OK to keep UAC on at this point).  Modify or create a shortcut for ccs with a compatibility option of "run as adminstrator".  However, there is an alternative to running as administrator shown in http://processors.wiki.ti.com/index.php/Using_CCS_with_Windows_Vista_and_7 but I have not tried it.

    Consider using CCS 5.0.3 for the MCSDK for the time being at least until you have the basics working.  You can have both versions of CCS installed at the same time if you choose.

    Once you are able to get your hello world project working, there is a fully formed CCS project PCIE in "c:\Program Files (x86)\Texas Instruments\pdk_C6678_1_0_0_16\packages\ti\drv\exampleProjects\PCIE_exampleProject".

  • Hello John,

    I'll reinstall CCS and MCSDK in the way that you proposed under my Windows 7 64-bit machine and I'll let you know what happened.

    I managed to build PCIe sample project that comes along with the MCSDK installation. I manually showed the *.cfg file
    in the "Advanced Options" of XDC Tools settings in the project properties. I don't know why it cannot see the *.cfg file this is basically
    the root cause of my problem.

    Thanks in advance,
    Hakan