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.

How to add build configuration file into CCS project

Guru* 95265 points

Other Parts Discussed in Thread: SYSBIOS

Dear all,

My goal is to manually convert a project from using makefile into a CCS project. The project has several RTSC modules (like SYSBIOS, IPC, etc...) added by using a .cfg file. It also has a config.bld file and .xs file defined some memory sections and their placements.

In the created CCS projects, I have the same source code, include path added, RTSC modules, also with .cfg file. The code can be compiled but can't be linked as they can't find the memory section definition. If I add the .bld file into my CCS project, the project treat it as a source code file and try to compile it. 

How can I add the config.bld and .xs file into the CCS project?

Regards, Eric

  • Some update:

    I found that configuration file can be added to CCS XDCTools---->advanced options. But still some problem:

    Working case (use makefile):

    # Making bin/debug/configuro/.config ...
    c:/ti/xdctools_3_32_00_06_core/xs --xdcpath="c:/ti/bios_6_45_01_29/packages;c:/t
    i/ipc_3_43_02_04/packages;c:/ti/xdctools_3_32_00_06_core/packages" \
    xdc.tools.configuro -o bin/debug/configuro \
    -t ti.targets.elf.C66 \
    -c c:/ti_6_1_3/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0 \
    -p ti.platforms.evmDRA7XX:dsp1 \
    -b ../../shared/config.bld -r debug \
    Dsp1.cfg
    making package.mak (because of package.bld) ...
    generating interfaces for package configuro (because package/package.xdc.inc is
    older than package.xdc) ...
    configuring Dsp1.xe66 from package/cfg/Dsp1_pe66.cfg ...
    generating custom ti.sdo.utils library makefile ...
    generating custom ti.sdo.ipc library makefile ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...

    Failure case (CCS project)

    "C:\\ti_6_1_3\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: C:/Data/VPS/make2ccs/Dsp/example/Dsp1.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/bios_6_45_01_29/packages;C:/ti/ipc_3_43_02_04/packages;C:/ti_6_1_3/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evmDRA7XX -r debug -b "C:/Data/VPS/make2ccs/shared/config.bld" -c "C:/ti_6_1_3/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0" "C:/Data/VPS/make2ccs/Dsp/example/Dsp1.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring Dsp1.xe66 from package/cfg/Dsp1_pe66.cfg ...
    subdir_rules.mk:7: recipe for target 'configPkg/linker.cmd' failed
    js: "C:/Data/VPS/make2ccs/shared/ipc.cfg.xs", line 57: TypeError: Cannot read property "base" from undefined (C:/Data/VPS/make2ccs/shared/ipc.cfg.xs#57)
    "C:/Data/VPS/make2ccs/Dsp/example/Dsp1.cfg", line 50
    "./package/cfg/Dsp1_pe66.cfg", line 188
    gmake.exe: *** [package/cfg/Dsp1_pe66.xdl] Error 1
    js: "C:/ti/xdctools_3_32_00_06_core/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake: *** [configPkg/linker.cmd] Error 1
    gmake: Target 'all' not remade because of errors.

    Why in the CCS project, configuring Dsp1.xe66 from package/cfg/Dsp1_pe66.cfg ...failed? how the .xs caused the trouble in CCS case but not makefile case? Thanks!

    Regards, Eric

  • You forgot ":dsp1" part in the platform name in the failed build.
  • Sasha,

    Yes, I also noticed that. In the makefile case, I have following:

     $(XDC_INSTALL_DIR)/xs --xdcpath="$(subst +,;,$(PKGPATH))" \
                xdc.tools.configuro -o $(CONFIG) \
                -t ti.targets.elf.C66 \
                -c $(ti.targets.elf.C66) \
                -p ti.platforms.evmDRA7XX:dsp1 \
                -b ../../shared/config.bld -r $(PROFILE) \
                $(cfgfile)

    When create a CCS project, I tried to select the platform as:

    How can I specify the :dsp1 in CCS project?

    Regards, Eric

  • Eric,
    you can edit the Platform field and add ":dsp1" to the platform name.