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.

Can't build any program in CCS

Other Parts Discussed in Thread: CC2650STK, SYSBIOS, CC2650

Hello,

I am using window 10 pc and cc2650stk.

I have used CCS 6.1.2, BLE stack 2.1.1 , TI RTOS 2.13.0.06, XDCtool 3.31.3.33, Compiler version TI v5.2.5. for following log. 

I am getting following activity log after building example project of sensor tag from ble stack. 

**** Build of configuration FlashOnlyOAD for project SensorTag ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
'Building file: C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/appBLE.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_13_00_06/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/bios_6_42_00_08/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/ICall/Include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Roles/CC26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Roles\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Keys\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/DevInfo\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/SensorProfile/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/OAD/cc26xxST\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/applib/heap\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/hci\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/controller/CC26xx/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/host\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/CC2650TIRTOS\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/osal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/services/sdata\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/services/saddr\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/icall/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/icall/ports/tirtos\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/include\" --include_path=\"C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/interfaces\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/devices\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/CC26XXST_0120\" --define=POWER_SAVING --define=GATT_TI_UUID_128_BIT --define=FEATURE_REGISTER_SERVICE --define=FEATURE_OAD --define=FACTORY_IMAGE --define=USE_ICALL --define=TI_DRIVERS_PIN_INCLUDED --define=TI_DRIVERS_I2C_INCLUDED --define=TI_DRIVERS_SPI_INCLUDED --define=GAPROLE_TASK_STACK_SIZE=550 --define=HEAPMGR_SIZE=2872 --define=ICALL_MAX_NUM_TASKS=8 --define=ICALL_MAX_NUM_ENTITIES=11 --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL --define=CC26XXWARE --define=CC26XX --diag_wrap=off --diag_suppress=48 --display_error_number --diag_warning=225 --gen_func_subsections=on " "C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/appBLE.cfg"
making package.mak (because of config.bld) ...
configuring appBLE.xem3 from package/cfg/appBLE_pem3.cfg ...
generating custom ROM library makefile ... 
Starting build of library sources ...
making C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios/sysbios.aem3 ...
gmake[1]: Entering directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios'
Preprocessing library source files ...
Creating the SYS/BIOS library that contains the APIs not included in the ROM ...
0 [main] sh 6564 sync_with_child: child 9636(0x1DC) died before initialization with status code 0xC0000142
32 [main] sh 6564 sync_with_child: *** child state waiting for longjmp
C:/Users/TEJASD~1/AppData/Local/Temp/make15736-1.sh: fork: Resource temporarily unavailable
gmake[1]: *** [mangled__BIOS_lib.obj] Error 128
gmake[1]: Leaving directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios'
gmake: *** [C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios/sysbios.aem3] Error 2
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_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_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/appBLE_pem3.xdl'
gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.h'
gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.c'
js: "C:/ti/xdctools_3_31_01_33_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.

**** Build Finished ****

And error shown is 

Description Resource Path Location Type
xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: appBLE.cfg /SensorTag/TOOLS C/C++ Problem

And appBLE.cfg file is

var ROM = xdc.useModule('ti.sysbios.rom.ROM');
ROM.romName = ROM.CC2650;
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var Types = xdc.useModule('xdc.runtime.Types');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Error = xdc.useModule('xdc.runtime.Error');
var Main = xdc.useModule('xdc.runtime.Main');
var Memory = xdc.useModule('xdc.runtime.Memory')
var SysCallback = xdc.useModule('xdc.runtime.SysCallback');
var System = xdc.useModule('xdc.runtime.System');
var Text = xdc.useModule('xdc.runtime.Text');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var Reset = xdc.useModule('xdc.runtime.Reset');
var BIOS = xdc.useModule('ti.sysbios.BIOS');
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var M3Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
var Power = xdc.useModule('ti.sysbios.family.arm.cc26xx.Power');
/* Enable idle task (default). */
Task.enableIdleTask = true;
/* Idle CPU when threads blocked waiting for an interrupt */
Power.idle = true;
Power.policyFunc = Power.standbyPolicy;
/* compile out all Assert's */
Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;
/* Don't load string names of modules on the target */
Defaults.common$.namedModule = false;
/* Allow Mod_create() and Mod_construct() but not delete() or destruct() */
Defaults.common$.memoryPolicy = Types.CREATE_POLICY;
/* Don't load diagnostic/descriptive text strings on the target */
Text.isLoaded = false;
/* Use the minimal user-supplied callback provider */
System.SupportProxy = SysCallback;
/* no exit handlers needed */
System.maxAtexitHandlers = 0;
/* main() and Hwi, Swi stack size */
Program.stack = 1024;
/* no command-line arguments main(argc, argv) needed */
Program.argSize = 0;
/* build a custom, optimized version of SYS/BIOS */
BIOS.libType = BIOS.LibType_Custom;
/* no logging - all compiled out */
BIOS.logsEnabled = false;
/* disable Asserts in SYS/BIOS code */
BIOS.assertsEnabled = false;
/* Reduce number of Task priority levels to save RAM */
Task.numPriorities = 6;
/* Set the default Task stack size - used if one is not specified */
Task.defaultStackSize = 512;
/* Don't check stacks for overflow - saves cycles (and power) and Flash */
Task.checkStackFlag = false;
/* Disable exception handling to save Flash - undo during active development */
M3Hwi.enableException = true;
M3Hwi.excHandlerFunc = null; /* null = default while loop function. Use e.g. "&myFxn" to use your own function. */
M3Hwi.nvicCCR.UNALIGN_TRP = 0;
M3Hwi.nvicCCR.DIV_0_TRP = 0;
/* Don't check for interrupt stack overflow during Idle loop */
Hwi.checkStackFlag = false;
/* Minimize Flash and RAM usage of Error module */
Error.raiseHook = null; /* null = default while loop function. Use e.g. "&myFxn" to your own handler function. */
Error.maxDepth = 2;
/* Set the default CPU frequency */
BIOS.cpuFreq.lo = 48000000;
/* Put reset vector at start of Flash */
M3Hwi.resetVectorAddress  = 0x0;
/* Put interrupt vector at start of RAM so interrupts can be configured at runtime */
M3Hwi.vectorTableAddress  = 0x20000000;
/* CC2650 has 50 interrupts */
M3Hwi.NUM_INTERRUPTS = 50;
/* Set heap size */
BIOS.heapSize = 1668;
var Swi = xdc.useModule('ti.sysbios.knl.Swi');
Swi.numPriorities = 6;
BIOS.swiEnabled = true;
BIOS.includeXdcRuntime = true;
/* Tasks cannot pend based on priority */
Semaphore.supportsPriority = false;
/* Change default error function -- just spin */
Error.policyFxn = Error.policySpin;
/* true:  Allow runtime creation of e.g. semaphores
 * false: Compile out reference to Memory in BIOS */
BIOS.runtimeCreatesEnabled = true;
/* Abort and exit functions -- just spin */
System.abortFxn = System.abortSpin;
System.exitFxn = System.exitSpin;
/* CC26xx Boot module */
var Boot = xdc.useModule('ti.sysbios.family.arm.cc26xx.Boot');
Boot.driverlibVersion = 2;
Boot.customerConfig = false;
//Boot.checkBackdoor = false;
/* Turn on RCOSC_HF calibration, thus enabling fast startup */
Power.calibrateRCOSC = true;
//Power.calibrateRCOSC = false;
/* 10 us tick period */
Clock.tickPeriod = 10;

I have tried by changing ccs versions to 6.1.1 and 6.1.3. Also changed ble stacks as 2.0.0.42893 , 2.1.0.44423, 2.1.1.44627, 2.2.0.31.  changed compilers 5.2.5 and 5.2.7. Even changed XDC 3.31.00.24, 3.31.01.33, 3.32.00.06. I changed TI RTOS versions also 2.13 , 2.11 , 2.18 , 2.20.

All of the above has been tried with combinations as per requirements of the respective version. But every time got errors. and error mentioned is repeated almost every time.(except power management issue occurred due to changing rtos versions from 2.13 to 2.18/2.20)

And I have uninstalled all the possible tools and extensions and deleted all the folders of texas instruments and ti with ccleaner before installing. And this process has been repeated for several times. But every time building is failed. I referred the discussions but nothing is working. And I had taken precaution about antivirus during installation. Even i checked by changing the workspaces and their locations and installing the CCS and other tools in other drive. 

Please help me I have wasted more than 7 days due to this issue.   

Thanks in advance.

  • Tejas Dighe60 said:
    0 [main] sh 6564 sync_with_child: child 9636(0x1DC) died before initialization with status code 0xC0000142
    32 [main] sh 6564 sync_with_child: *** child state waiting for longjmp
    C:/Users/TEJASD~1/AppData/Local/Temp/make15736-1.sh: fork: Resource temporarily unavailable
    gmake[1]: *** [mangled__BIOS_lib.obj] Error 128
    gmake[1]: Leaving directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios'
    gmake: *** [C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios/sysbios.aem3] Error 2
    Build of libraries failed.
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: ex

    One common reason for this error is having spaces or non-ASCII characters in the workspace path or any of the software tools paths. Please see this wiki:

    http://processors.wiki.ti.com/index.php/Build_Errors_in_CCS#xdc.cfg.SourceDir_:_Build_of_generated_source_libraries_failed:_exit_status_.3D_2:

  • As you suggested I changed user name to remove non ascii symbols. But it didn't work out.

    console log:


    **** Build of configuration FlashOnlyOAD for project SensorTag ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/appBLE.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_31_01_33_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_13_00_06/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/bios_6_42_00_08/packages;C:/ti/tirtos_simplelink_2_13_00_06/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/ICall/Include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Roles/CC26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Roles\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Keys\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/DevInfo\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/SensorProfile/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/OAD/cc26xxST\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/applib/heap\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/hci\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/controller/CC26xx/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/host\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/CC2650TIRTOS\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/osal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/services/sdata\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/services/saddr\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/icall/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/icall/ports/tirtos\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/include\" --include_path=\"C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/interfaces\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/devices\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/CC26XXST_0120\" --define=POWER_SAVING --define=GATT_TI_UUID_128_BIT --define=FEATURE_REGISTER_SERVICE --define=FEATURE_OAD --define=FACTORY_IMAGE --define=USE_ICALL --define=TI_DRIVERS_PIN_INCLUDED --define=TI_DRIVERS_I2C_INCLUDED --define=TI_DRIVERS_SPI_INCLUDED --define=GAPROLE_TASK_STACK_SIZE=550 --define=HEAPMGR_SIZE=2872 --define=ICALL_MAX_NUM_TASKS=8 --define=ICALL_MAX_NUM_ENTITIES=11 --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL --define=CC26XXWARE --define=CC26XX --diag_wrap=off --diag_suppress=48 --diag_warning=225 --display_error_number --gen_func_subsections=on " "C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/appBLE.cfg"
    making package.mak (because of .xdcenv.mak) ...
    configuring appBLE.xem3 from package/cfg/appBLE_pem3.cfg ...
    generating custom ROM library makefile ...
    Starting build of library sources ...
    making C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios/sysbios.aem3 ...
    gmake[1]: Entering directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios'
    Preprocessing library source files ...
    0 [main] sh 23036 sync_with_child: child 24516(0x1D4) died before initialization with status code 0xC0000142
    14 [main] sh 23036 sync_with_child: *** child state waiting for longjmp
    C:/Users/tejas/AppData/Local/Temp/make23188-2.sh: fork: Resource temporarily unavailable
    gmake[1]: *** [mangled__BIOS_lib.pp] Error 128
    gmake[1]: *** Waiting for unfinished jobs....
    gmake[1]: Leaving directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios'
    gmake: *** [C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios/sysbios.aem3] Error 2
    Build of libraries failed.
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_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_31_01_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/appBLE_pem3.xdl'
    gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.h'
    gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.c'
    js: "C:/ti/xdctools_3_31_01_33_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.

    **** Build Finished ****


    error :

    Description Resource Path Location Type
    xdc.cfg.SourceDir: "C:/ti/xdctools_3_31_01_33_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: appBLE.cfg /SensorTag/TOOLS C/C++ Problem


    appBLE.cfg :

    var ROM = xdc.useModule('ti.sysbios.rom.ROM');
    ROM.romName = ROM.CC2650;

    var Defaults = xdc.useModule('xdc.runtime.Defaults');
    var Types = xdc.useModule('xdc.runtime.Types');
    var Diags = xdc.useModule('xdc.runtime.Diags');
    var Error = xdc.useModule('xdc.runtime.Error');
    var Main = xdc.useModule('xdc.runtime.Main');
    var Memory = xdc.useModule('xdc.runtime.Memory')
    var SysCallback = xdc.useModule('xdc.runtime.SysCallback');
    var System = xdc.useModule('xdc.runtime.System');
    var Text = xdc.useModule('xdc.runtime.Text');
    var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
    var Reset = xdc.useModule('xdc.runtime.Reset');
    var BIOS = xdc.useModule('ti.sysbios.BIOS');
    var Clock = xdc.useModule('ti.sysbios.knl.Clock');
    var Task = xdc.useModule('ti.sysbios.knl.Task');

    var Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
    var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
    var M3Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');
    var Power = xdc.useModule('ti.sysbios.family.arm.cc26xx.Power');

    /* Enable idle task (default). */
    Task.enableIdleTask = true;

    /* Idle CPU when threads blocked waiting for an interrupt */
    Power.idle = true;
    Power.policyFunc = Power.standbyPolicy;

    /* compile out all Assert's */
    Defaults.common$.diags_ASSERT = Diags.ALWAYS_OFF;

    /* Don't load string names of modules on the target */
    Defaults.common$.namedModule = false;

    /* Allow Mod_create() and Mod_construct() but not delete() or destruct() */
    Defaults.common$.memoryPolicy = Types.CREATE_POLICY;

    /* Don't load diagnostic/descriptive text strings on the target */
    Text.isLoaded = false;

    /* Use the minimal user-supplied callback provider */
    System.SupportProxy = SysCallback;
    /* no exit handlers needed */
    System.maxAtexitHandlers = 0;

    /* main() and Hwi, Swi stack size */
    Program.stack = 1024;
    /* no command-line arguments main(argc, argv) needed */
    Program.argSize = 0;

    /* build a custom, optimized version of SYS/BIOS */
    BIOS.libType = BIOS.LibType_Custom;

    /* no logging - all compiled out */
    BIOS.logsEnabled = false;

    /* disable Asserts in SYS/BIOS code */
    BIOS.assertsEnabled = false;

    /* Reduce number of Task priority levels to save RAM */
    Task.numPriorities = 6;

    /* Set the default Task stack size - used if one is not specified */
    Task.defaultStackSize = 512;

    /* Don't check stacks for overflow - saves cycles (and power) and Flash */
    Task.checkStackFlag = false;

    /* Disable exception handling to save Flash - undo during active development */
    M3Hwi.enableException = true;
    M3Hwi.excHandlerFunc = null; /* null = default while loop function. Use e.g. "&myFxn" to use your own function. */
    M3Hwi.nvicCCR.UNALIGN_TRP = 0;
    M3Hwi.nvicCCR.DIV_0_TRP = 0;

    /* Don't check for interrupt stack overflow during Idle loop */
    Hwi.checkStackFlag = false;

    /* Minimize Flash and RAM usage of Error module */
    Error.raiseHook = null; /* null = default while loop function. Use e.g. "&myFxn" to your own handler function. */
    Error.maxDepth = 2;

    /* Set the default CPU frequency */
    BIOS.cpuFreq.lo = 48000000;

    /* Put reset vector at start of Flash */
    M3Hwi.resetVectorAddress = 0x0;

    /* Put interrupt vector at start of RAM so interrupts can be configured at runtime */
    M3Hwi.vectorTableAddress = 0x20000000;

    /* CC2650 has 50 interrupts */
    M3Hwi.NUM_INTERRUPTS = 50;

    /* Set heap size */
    BIOS.heapSize = 1668;

    var Swi = xdc.useModule('ti.sysbios.knl.Swi');
    Swi.numPriorities = 6;
    BIOS.swiEnabled = true;

    BIOS.includeXdcRuntime = true;

    /* Tasks cannot pend based on priority */
    Semaphore.supportsPriority = false;

    /* Change default error function -- just spin */
    Error.policyFxn = Error.policySpin;

    /* true: Allow runtime creation of e.g. semaphores
    * false: Compile out reference to Memory in BIOS */
    BIOS.runtimeCreatesEnabled = true;

    /* Abort and exit functions -- just spin */
    System.abortFxn = System.abortSpin;
    System.exitFxn = System.exitSpin;

    /* CC26xx Boot module */
    var Boot = xdc.useModule('ti.sysbios.family.arm.cc26xx.Boot');
    Boot.driverlibVersion = 2;
    Boot.customerConfig = false;
    //Boot.checkBackdoor = false;

    /* Turn on RCOSC_HF calibration, thus enabling fast startup */
    Power.calibrateRCOSC = true;
    //Power.calibrateRCOSC = false;

    /* 10 us tick period */
    Clock.tickPeriod = 10;
  • tejasD said:
    As you suggested I changed user name to remove non ascii symbols. But it didn't work out.

    Did you also check the second point in the link I sent:
    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. These could also be part of other tools like cygwin or
    WinAVR. If there is one, then that will be used for the build and could cause build errors such as this. 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."

    There is a related thread here where having WinAVR in the system PATH resulted in a similar error.

  •  Problem has been solved after uninstalling winavr. thank you so much.

  • Hi,tejasD
    I have the same problem like you and I didn't found any conflicting system PATH variable .Should I add some PATH about CCS and what PATH should I add ?
  • Have you installed AVR studio on your PC? If yes,then please uninstall it if it is not in use. Otherwise search for sh.exe in the computer and delete it.

  • I have not install AVR studio on my PC ,and didn't find any other sh.exe or gmake.exe in my computer.I had tried to uninstalled Protues and keil to see weather it can build success,but it can't.Can you help me?
    Here is the error:
    **** Build of configuration FlashROM for project SensorTag ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SensorTag/CC26xx/CCS/Config/appBLE.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_11_01_09/packages;C:/ti/tirtos_simplelink_2_11_01_09/products/bios_6_41_02_41/packages;C:/ti/tirtos_simplelink_2_11_01_09/products/uia_2_00_02_39/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.7/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SensorTag/CC26xx/Source/Application\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/ICall/Include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/Roles/CC26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/Roles\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/Keys\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/SensorProfile/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/OAD/cc26xxST\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/applib/heap\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/ble/hci\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/ble/controller/CC26xx/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/ble/host\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/hal/target/CC2650TIRTOS\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/hal/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/hal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/osal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/services/sdata\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/services/saddr\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/icall/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/icall/ports/tirtos\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/ble/include\" --include_path=\"C:/ti/tirtos_simplelink_2_11_01_09/products/cc26xxware_2_20_06_14829\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/components/ti-rtos/boards/sensortag/interfaces\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/components/ti-rtos/boards/sensortag/devices\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/components/ti-rtos/boards/sensortag/CC26XXST_0120\" --define=GAPROLE_TASK_STACK_SIZE=550 --define=POWER_SAVING --define=GATT_TI_UUID_128_BIT --define=FEATURE_REGISTER_SERVICE --define=USE_ICALL --define=TI_DRIVERS_PIN_INCLUDED --define=TI_DRIVERS_I2C_INCLUDED --define=TI_DRIVERS_SPI_INCLUDED --define=HEAPMGR_SIZE=2872 --define=ICALL_MAX_NUM_TASKS=8 --define=ICALL_MAX_NUM_ENTITIES=11 --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL --define=MAX_NUM_BLE_CONNS=1 --define=CC2650EM_7ID --define=CC26XXWARE --define=CC26XX --define=ccs --define=__TI_COMPILER_VERSION=1 --diag_wrap=off --diag_suppress=48 --display_error_number --diag_warning=225 --gen_func_subsections=on " "C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SensorTag/CC26xx/CCS/Config/appBLE.cfg"
    configuring appBLE.xem3 from package/cfg/appBLE_pem3.cfg ...
    generating custom ROM library makefile ...
    Starting build of library sources ...
    making C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios/sysbios.aem3 ...
    gmake[1]: Entering directory `C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios'
    Preprocessing library source files ...
    gmake[1]: Leaving directory `C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios'
    Build of libraries failed.
    TOOLS/subdir_rules.mk:7: recipe for target 'configPkg/linker.cmd' failed
    gmake[1]: *** No rule to make target `C:/Users/user/workspace_v6_1_5/SensorTag/FlashROM/configPkg/package/cfg/ti.sysbios.BIOS_config.c', needed by `mangled_ti.sysbios.BIOS_config_lib.pp'. Stop.
    gmake[1]: *** Waiting for unfinished jobs....
    gmake: *** [C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SensorTag/CC26xx/CCS/Config/src/sysbios/sysbios.aem3] Error 2
    error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_00_06_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_32_00_06_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Error 1
    xdctools_3_32_00_06_core\gmake.exe: *** Deleting file `package/cfg/appBLE_pem3.xdl'
    xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.h'
    xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.c'
    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.

    **** Build Finished ****
  • Keil and Proteus do not harm CCS as per my experience.

    But yes you can check whether your xdctool and ble stack versions are compatible with each other. It is solved by only trial and error method. 

    Try to uninstall each tool,stack and finally CCS. And use CCleaner for cleaning ti folder from C drive.

    Try above method and if not worked then try to install ccs and stack in some other drive. 

  • Thank you for your advice.Finally I reinstall them all and the problems disappear.
  • Hi all...

    I also got same problem but it is solved by uninstalling the WinAVR and now code composer studio working fine. Before uninstalling of WinAVR I have got the error that the application was unable to start correctly(0x0000141).

    Now it is solved!