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.

CCS/TMS320C6678: platform_lib compile problem

Part Number: TMS320C6678
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi,

I use CCS 6.1.3.00034 with PDK_c667x_2_0_5.

I want to use platform_lib in my project and build test project as follows.

  1. Create a new CCS project  with project template menu -> SYS/BIOS->TI Target Examples -> Typical

  2. Compile generated project -> (OK. No Problem)

  3. add following line in app.cfg.

      var PlatformLib = xdc.loadPackage('ti.platform.evmc6678l');

  4. Build again and get following error message

**** Build of configuration Debug for project HBOX_TEST ****

"C:\\ti6\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: C6000 Compiler'
"C:/ti6/ti-cgt-c6000_8.1.3/bin/cl6x" -mv6600 --include_path="C:/ti6/ti-cgt-c6000_8.1.3/include" -g --diag_wrap=off --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main.d" --cmd_file="configPkg/compiler.opt" "../main.c"
'Finished building: ../main.c'
' '
'Building file: ../app.cfg'
'Invoking: XDCtools'
"C:/ti6/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti6/bios_6_46_04_53/packages;C:/ti6/pdk_c667x_2_0_5/packages;C:/ti6/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r release -c "C:/ti6/ti-cgt-c6000_8.1.3" --compileOptions "-g --optimize_with_debug" "../app.cfg"
configuring app.xe66 from package/cfg/app_pe66.cfg ...
subdir_rules.mk:7: recipe for target 'configPkg/linker.cmd' failed
js: "D:/WORK_TI6/HBOX_TEST/app.cfg", line 19: xdc.services.global.XDCException: xdc.PACKAGE_NOT_FOUND: C:\ti6\pdk_c667x_2_0_5\packages\ti\platform\evmc6678l\package.xdc found along the package path, but no schema file was found. Ensure that the package 'ti.platform.evmc6678l' is completely built.
"./package/cfg/app_pe66.cfg", line 191
xdctools_3_32_01_22_core\gmake.exe: *** [package/cfg/app_pe66.xdl] Error 1
js: "C:/ti6/xdctools_3_32_01_22_core/packages/xdc/tools/Cmdr.xs", line 52: 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.

**** Build Finished ****


I tested same project without any error at CCS 5.4.0 with PDK_C6678_1_1_2_6.

Can someone help me how to fix this problem ?

Regards.

Brian 

  • Hi Brian,

    I've forwarded this to the software experts. Their feedback should be posted here.

    BR
    Tsvetolin Shulev
  • Hi,

    There is an existing CCS project for 6678 platform under: pdk_c667x_2_0_5\packages\ti\platform\evmc6678l\platform_lib, you don't need to create a new one. Also, PDK_c667x_2_0_5 uses CCS 7.0 from Release note.

    So, just import CCS project into CCS 7.0 and build, there is no issue as I tried:


    **** Build of configuration Debug for project platform_lib_evmc6678l ****

    "C:\\ti_7_0_0\\ccsv7\\utils\\bin\\gmake" -k all
    'Building file: ../src/evm66x_i2c.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evm66x_i2c.d" --obj_directory="src" "../src/evm66x_i2c.c"
    'Finished building: ../src/evm66x_i2c.c'
    ' '
    'Building file: ../src/evm66x_nand.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evm66x_nand.d" --obj_directory="src" "../src/evm66x_nand.c"
    "../src/evm66x_nand.c", line 207: warning #179-D: variable "ecc16" was declared but never referenced
    'Finished building: ../src/evm66x_nand.c'
    ' '
    'Building file: ../src/evmc6678.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evmc6678.d" --obj_directory="src" "../src/evmc6678.c"
    'Finished building: ../src/evmc6678.c'
    ' '
    'Building file: ../src/evmc6678_phy.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evmc6678_phy.d" --obj_directory="src" "../src/evmc6678_phy.c"
    'Finished building: ../src/evmc6678_phy.c'
    ' '
    'Building file: ../src/evmc66x_fpga.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evmc66x_fpga.d" --obj_directory="src" "../src/evmc66x_fpga.c"
    "../src/evmc66x_fpga.c", line 143: warning #188-D: pointless comparison of unsigned integer with zero
    'Finished building: ../src/evmc66x_fpga.c'
    ' '
    'Building file: ../src/evmc66x_gpio.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evmc66x_gpio.d" --obj_directory="src" "../src/evmc66x_gpio.c"
    'Finished building: ../src/evmc66x_gpio.c'
    ' '
    'Building file: ../src/evmc66x_i2c_eeprom.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evmc66x_i2c_eeprom.d" --obj_directory="src" "../src/evmc66x_i2c_eeprom.c"
    'Finished building: ../src/evmc66x_i2c_eeprom.c'
    ' '
    'Building file: ../src/evmc66x_nor.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evmc66x_nor.d" --obj_directory="src" "../src/evmc66x_nor.c"
    'Finished building: ../src/evmc66x_nor.c'
    ' '
    'Building file: ../src/evmc66x_spi.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evmc66x_spi.d" --obj_directory="src" "../src/evmc66x_spi.c"
    'Finished building: ../src/evmc66x_spi.c'
    ' '
    'Building file: ../src/evmc66x_uart.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/evmc66x_uart.d" --obj_directory="src" "../src/evmc66x_uart.c"
    'Finished building: ../src/evmc66x_uart.c'
    ' '
    'Building file: ../src/platform.c'
    'Invoking: C6000 Compiler'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/cl6x" -mv6600 --abi=eabi --include_path="C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/include" --include_path="C:/ti/pdk_c667x_2_0_5/packages" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/csl" --include_path="C:/ti/pdk_c667x_2_0_5/packages/ti/platform" -g --define=SOC_C6678 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="src/platform.d" --obj_directory="src" "../src/platform.c"
    'Finished building: ../src/platform.c'
    ' '
    'Building target: C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/lib/debug/ti.platform.evm6678l.ae66'
    'Invoking: C6000 Archiver'
    "C:/ti_7_0_0/ccsv7/tools/compiler/ti-cgt-c6000_8.1.2/bin/ar6x" r "C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/lib/debug/ti.platform.evm6678l.ae66" "./src/evm66x_i2c.obj" "./src/evm66x_nand.obj" "./src/evmc6678.obj" "./src/evmc6678_phy.obj" "./src/evmc66x_fpga.obj" "./src/evmc66x_gpio.obj" "./src/evmc66x_i2c_eeprom.obj" "./src/evmc66x_nor.obj" "./src/evmc66x_spi.obj" "./src/evmc66x_uart.obj" "./src/platform.obj" "../lib/debug/ti.platform.evm6678l.lite.lib"
    ==> new archive 'C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/lib/debug/ti.platform.evm6678l.ae66'
    ==> building archive 'C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/lib/debug/ti.platform.evm6678l.ae66'
    'Finished building target: C:/ti/pdk_c667x_2_0_5/packages/ti/platform/evmc6678l/platform_lib/lib/debug/ti.platform.evm6678l.ae66'
    ' '

    **** Build Finished ****

    Regards, Eric
  • Yes, I checked your solution and it worked well.

    By the way, the old method (include [var PlatformLib = xdc.loadPackage('ti.platform.evmc6678l'); ] in app.cfg) is obsolete now ?

    Is there any way to use loadPackage command ?

    Regards,
    Brain
  • Hi,

    Even with the old PDK 1.1.2.6 you mentioned (MCSDK 2.1.2.6), we still use the CCS project to build the platform library, not the xdc.loadPackage approach. The reason probably in CCS 5.4 + older XDC, the ti.platform.evm6678l is defined in XDC installation. In latest, it is defined in the SYSBIOS.

    Regards, Eric