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: After fresh installation, still cannot build simple typical example project

Guru* 84110 points
Part Number: TMS320C6678
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Last week, I tried to build a simple HelloWorld example using TI-RTOS for the EVMC6678. It failed because it was looking for a wrong file or XDC version or something. Since I had multiple versions of CCS and of many libraries, and since I used a deeper folder naming than just C:\TI, I uninstalled all versions of CCS and all of the SDKs and libraries that I had, rebooted and then installed CCSv7 and the ProcSDK TI-RTOS C6678 using the default C:\TI for everything.

Again, I tried to create a new CCS Project using SYS/BIOS (the name TI-RTOS did not show up) and the Typical selection. I picked the ti.platforms.evmc6678 and let it finish.

When I went to build the project, as is, I got the following to the Build console. It looks just like it did before I uninstalled and re-installed. It appears to be trying to use a c64p library, but it should be using a c66 library. I am not sure what the problems are. I have attached my archived project file in case you can tell me anything from that.


**** Build of configuration Debug for project HelloWorld ****

"C:\\TI\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O
gmake[1]: Entering directory 'C:/Users/a0157014/Documents/CCS70wks_test/HelloWorld/Debug'
'Building file: ../app.cfg'
'Invoking: XDCtools'
"C:/TI/xdctools_3_50_02_20_core/xs" --xdcpath="C:/TI/bios_6_46_04_53/packages;C:/TI/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r release -c "C:/TI/ccsv7/tools/compiler/ti-cgt-c6000_8.2.0" --compileOptions "-g --optimize_with_debug" "../app.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring app.xe66 from package/cfg/app_pe66.cfg ...
subdir_rules.mk:12: recipe for target 'build-1746206719-inproc' failed
error: xdc.cfg.Program: "C:/TI/xdctools_3_50_02_20_core/packages/xdc/cfg/Program.xs", line 71: xdc.cfg.Program : The package 'ti.sysbios.family.c64p' is not compatible with XDCtools used in this build. Please either use XDCtools compatible with that package, or update the product containing that package, or rebuild the package with XDCtools 3.50 or later.
js: "C:/TI/xdctools_3_50_02_20_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/app_pe66.xdl] Error 1
js: "C:/TI/xdctools_3_50_02_20_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1746206719-inproc] Error 1
gmake[1]: Leaving directory 'C:/Users/a0157014/Documents/CCS70wks_test/HelloWorld/Debug'
gmake: *** No rule to make target 'build-1746206719', needed by 'configPkg/compiler.opt'.
gmake: Target 'all' not remade because of errors.

HelloWorld.zip

Thanks for any help or advice.

Regards,
RandyP

  • RandyP said:
    When I went to build the project, as is, I got the following to the Build console. It looks just like it did before I uninstalled and re-installed. It appears to be trying to use a c64p library, but it should be using a c66 library. I am not sure what the problems are. I have attached my archived project file in case you can tell me anything from that.

    I can repeat that error with your project when using:

    - CCS 7.2.0.00013 

    - Compiler TI v8.2.0

    - SYS/BIOS 6.46.4.53

    - XDCtools 3.50.2.20_core

    Where the versions of the Compiler, SYS/BIOS and XDCtools are the same as for your build which failed.

    What I have found is that CCS can't automatically detect / warn if the version of XDCtools is incompatible with the version of SYS/BIOS.

    SYS/BIOS Product Releases reports that SYS/BIOS 6.46.04.53 is "(Recommended with XDCTools 3.32.01.22 , CCSv6.1.0 or higher)".

    When the example project was changed to use XDCtools 3.32.1.22_core, instead of XDCtools 3.50.2.20_core, then the project built successfully:

    **** Build of configuration Debug for project HelloWorld ****
    
    "C:\\ti\\ccs720\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O 
    gmake[1]: Entering directory 'C:/Users/mr_halfword/workspace_v7/HelloWorld/Debug'
    'Building file: ../app.cfg'
    'Invoking: XDCtools'
    "C:/ti/ccs710/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/bios_6_46_04_53/packages;C:/ti/ccs720/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.platforms.evm6678 -r release -c "C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-c6000_8.2.0" --compileOptions "-g --optimize_with_debug" "../app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app.xe66 from package/cfg/app_pe66.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/Users/mr_halfword/workspace_v7/HelloWorld/src/sysbios/sysbios.ae66 ...
    gmake[1]: Entering directory `C:/Users/mr_halfword/workspace_v7/HelloWorld/src/sysbios'
    cle66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/BIOS.c ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
       subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
       subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
       subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
       subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
       subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
       subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
       subsequent release. The behavior is enabled by default.
    asme66 C:/ti/bios_6_46_04_53/packages/ti/sysbios/timers/timer64/Timer_asm.s64P ...
    remark #24038-D: --optimize_with_debug is deprecated and will be removed in a
       subsequent release. The behavior is enabled by default.
    are66 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj timer64_Timer_asm.obj ...
    gmake[1]: Leaving directory `C:/Users/mr_halfword/workspace_v7/HelloWorld/src/sysbios'
    Build of libraries done.
    cle66 package/cfg/app_pe66.c ...
    'Finished building: ../app.cfg'
    ' '
    gmake[1]: Leaving directory 'C:/Users/mr_halfword/workspace_v7/HelloWorld/Debug'
            1 file(s) copied.
    making ../src/sysbios/sysbios.ae66 ...
    gmake[1]: Nothing to be done for 'all'.
    'Building file: ../main.c'
    'Invoking: C6000 Compiler'
    "C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-c6000_8.2.0/bin/cl6x" -mv6600 --include_path="C:/Users/mr_halfword/workspace_v7/HelloWorld" --include_path="C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-c6000_8.2.0/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d" --cmd_file="configPkg/compiler.opt" "../main.c"
    'Finished building: ../main.c'
    ' '
    making ../src/sysbios/sysbios.ae66 ...
    gmake[2]: Nothing to be done for 'all'.
    'Building target: HelloWorld.out'
    'Invoking: C6000 Linker'
    "C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-c6000_8.2.0/bin/cl6x" -mv6600 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"HelloWorld.map" -i"C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-c6000_8.2.0/lib" -i"C:/ti/ccs720/ccsv7/tools/compiler/ti-cgt-c6000_8.2.0/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="HelloWorld_linkInfo.xml" --rom_model -o "HelloWorld.out" "./main.obj" -l"configPkg/linker.cmd" -llibc.a -llibc.a 
    <Linking>
    'Finished building target: HelloWorld.out'
    ' '
    
    **** Build Finished ****

    The above successful build also shows some c64p libraries being used.

    As for some c64p libraries being linked I don't think that is a problem. Looking at the Device-specific HWI Support in the XGCONF editor for the example shows that the C66 device uses the C64P Hwi module. The SYS/BIOS help for the ti.targets.elf.C66 module shows that the C66 target is based upon the C64P.module. When targets a super-set of other devices, SYS/BIOS can re-use the modules which are unchanged from the base target.