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/LAUNCHXL-CC1310: Code Composer Studio tirtos build problems

Part Number: LAUNCHXL-CC1310
Other Parts Discussed in Thread: CC1310, SYSBIOS

Tool/software: Code Composer Studio

Hi, I'm using the CC1310 launchpad with CCS 7.2.0 and just trying to run the pwmled_cc1310_LaunchXL_tirtos_ccs example code, when i try to compile the code, i ran into some error

"Cannot build project. Referenced RTSC Configuration project 'tirtos_builds_CC1310_LAUNCHXL_release_ccs' contains build-errors. pwmled_CC1310_LAUNCHXL_tirtos_ccs pwmled_CC1310_LAUNCHXL_tirtos_ccs"

I figure it's the build in "tirtos_builds_CC1310_LAUNCHXL_release_ccs" 's problem and i try to compile that alone, and it gives me quite of bit of errors. below it's whole build message.


**** Clean-only build of configuration Debug for project tirtos_builds_CC1310_LAUNCHXL_release_ccs ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 12 clean -O
DEL /F "tirtos_builds_CC1310_LAUNCHXL_release_ccs.lib" "../src/makefile.libs" "configPkg\linker.cmd" "configPkg\compiler.opt"
makefile:145: recipe for target 'clean' failed
The system cannot find the file specified.
gmake: [clean] Error 1 (ignored)
The system cannot find the file specified.
gmake: [clean] Error 2 (ignored)
RMDIR /S/Q "configPkg\"
makefile:145: recipe for target 'clean' failed
'Finished clean'
' '

**** Build Finished ****

**** Build of configuration Debug for project tirtos_builds_CC1310_LAUNCHXL_release_ccs ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 12 all -O
gmake[1]: Entering directory 'C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/Debug'
'Building file: ../release.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_50_02_20_core/xs" --xdcpath="C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source;C:/ti/simplelink_cc13x0_sdk_1_60_00_21/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC1310F128 -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS" --compileOptions " -DDeviceFamily_CC13X0 " "../release.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring release.xem3 from package/cfg/release_pem3.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...
gmake[1]: Entering directory `C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/src/sysbios'
clem3 C:/ti/simplelink_cc13x0_sdk_1_60_00_21/kernel/tirtos/packages/ti/sysbios/BIOS.c ...

>> Compilation failure
gmake[1]: Leaving directory `C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/src/sysbios'
Build of libraries failed.
subdir_rules.mk:12: recipe for target 'build-1317695535-inproc' failed
"C:\MinGW\msys\1.0\packages\..\include\_ansi.h", line 15: fatal error: cannot open source file "sys/config.h"
1 catastrophic error detected in the compilation of "C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/posix/tirtos/clock.c".
Compilation terminated.
gmake[1]: *** [rom_sysbios.obj] Error 1
gmake: *** [C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_02_20_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_50_02_20_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/release_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/release_pem3.xdl'
gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file `package/cfg/release_pem3.h'
gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file `package/cfg/release_pem3.c'
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-1317695535-inproc] Error 1
gmake[1]: Leaving directory 'C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/Debug'
'Building file: ../release.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_50_02_20_core/xs" --xdcpath="C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source;C:/ti/simplelink_cc13x0_sdk_1_60_00_21/kernel/tirtos/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC1310F128 -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS" --compileOptions " -DDeviceFamily_CC13X0 " "../release.cfg"
configuring release.xem3 from package/cfg/release_pem3.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3 ...
gmake[1]: Entering directory `C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/src/sysbios'
clem3 C:/ti/simplelink_cc13x0_sdk_1_60_00_21/kernel/tirtos/packages/ti/sysbios/BIOS.c ...

>> Compilation failure
gmake[1]: Leaving directory `C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/src/sysbios'
Build of libraries failed.
subdir_rules.mk:12: recipe for target 'build-1317695535-inproc' failed
"C:\MinGW\msys\1.0\packages\..\include\_ansi.h", line 15: fatal error: cannot open source file "sys/config.h"
1 catastrophic error detected in the compilation of "C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/posix/tirtos/clock.c".
Compilation terminated.
gmake[1]: *** [rom_sysbios.obj] Error 1
gmake: *** [C:/ti/NewWorkSpaceV7/tirtos_builds_CC1310_LAUNCHXL_release_ccs/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_02_20_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

js: "C:/ti/xdctools_3_50_02_20_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
xdctools_3_50_02_20_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Error 1
xdctools_3_50_02_20_core\gmake.exe: *** Deleting file `package/cfg/release_pem3.xdl'
xdctools_3_50_02_20_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file `package/cfg/release_pem3.h'
xdctools_3_50_02_20_core\gmake.exe: *** [package/cfg/release_pem3.xdl] Deleting file `package/cfg/release_pem3.c'
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[2]: *** [build-1317695535-inproc] Error 1
gmake[1]: *** [build-1317695535] Error 2
gmake[1]: Target 'configPkg/linker.cmd' not remade because of errors.
gmake: *** [all] Error 2
subdir_rules.mk:9: recipe for target 'build-1317695535' failed
makefile:127: recipe for target 'all' failed

**** Build Finished ****

I'm using the SimpleLink cc13x0 SDK1.60.0.21 along with XDCtools verison 3.50.2.20. 

This problem only appear with i use any TI-RTOS code example code, all the NO-RTOS works just fine. 

Things i have tried:

1. Uninstall and delete all files within CCS and workspace then reinstall with 7.4.0

2.Using a SDK version of 1.40.0

3.Using XDCtools version 3.32.2.25

Nothing seems to fix it. Thanks in advance for the help. 

  • Hi,

    I suspect you are running into the problem described in section 6.1 of the following page:
    processors.wiki.ti.com/.../Build_Errors_in_CCS

    Hope this helps,
    Rafael
  • Hi, thanks for the quick response. I doubled check all the file location and non of it path including my workspace have any white space in it. Below it is also my XDCtools menu settings. Are there other things that might be the problem?

  • I think your issue may be due to the second point noted in the link Rafael provided:

    • Take a close look at the CCS build console and ensure that the sh.exe used for the build is the one from the CCS directory. Also check your system PATH variable and see if there is another sh.exe (or gmake.exe) in your system PATH earlier than the one from the CCS installation. If there is one, then that will be used for the build and could cause build errors such as this. Some toolchains that are known to include sh.exe and could cause a conflict are Cygwin, WinAVR, Yagarto. In this case, remove those conflicting tools from the system PATH or modify the PATH so that the sh.exe and gmake.exe from CCS are seen first.


    Your build output contains the following line which seems to indicate that MinGW tools are in your system Path and may be causing the conflict.

    subdir_rules.mk:12: recipe for target 'build-1317695535-inproc' failed
    "C:\MinGW\msys\1.0\packages\..\include\_ansi.h", line 15: fatal error: cannot open source file "sys/config.h"

    Could you check your PATH environment variable and if MinGW is in the path, try to either temporarily remove it or modify the path such that it appears after the CCS paths? Let us know if this helps address the build error.

  • So i completely remove C:\MinGW from my computer and everything is working again. Thanks TI experts.