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 no longer build any BLE project

Other Parts Discussed in Thread: SYSBIOS

I am having trouble using the debugger on my desktop so I tried my laptop.  It works but all my projects have stopped building.  The stack seems to build.  

For instance when I try to build the blood pressure app included with the BLE stack I get:

C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/BloodPressure/CC26xx/CCS/Config/src/sysbios/sysbios.aem3 ...
gmake[1]: Entering directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/BloodPressure/CC26xx/CCS/Config/src/sysbios'
Preprocessing library source files ...
Creating the SYS/BIOS library that contains the APIs not included in the ROM ...
gmake[1]: Leaving directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/BloodPressure/CC26xx/CCS/Config/src/sysbios'
Build of libraries failed.
TOOLS/subdir_rules.mk:7: recipe for target 'configPkg/linker.cmd' failed
0 [main] sh 16820 sync_with_child: child 16984(0x204) died before initialization with status code 0xC0000142
38 [main] sh 16820 sync_with_child: *** child state waiting for longjmp
C:/Users/Rich/AppData/Local/Temp/make12280-1.sh: fork: Resource temporarily unavailable
gmake[1]: *** [mangled__BIOS_lib.obj] Error 128
gmake: *** [C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/BloodPressure/CC26xx/CCS/Config/src/sysbios/sysbios.aem3] Error 2
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!
xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Error 1
xdctools_3_31_01_33_core\gmake.exe: *** Deleting file `package/cfg/appBLE_pem3.xdl'
xdctools_3_31_01_33_core\gmake.exe: *** [package/cfg/appBLE_pem3.xdl] Deleting file `package/cfg/appBLE_pem3.h'
xdctools_3_31_01_33_core\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.

It looks like a build of libraries is the first failure.  I have gone so far as to uninstall CCS and reinstall, still there.

Thanks

Rich

  • Hi Rich,

    it seems that your workspace is in someway corrupted. can you try to create a new CCS workspace re-import the project and build again?
  • Sean,
    I created another workspace and import the simple peripheral project and stack from the BLE stack. I still get the errors, console dump:


    **** Build of configuration FlashROM for project SimpleBLEPeripheral ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleBLEPeripheral/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:CC2640F128 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleBLEPeripheral/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/DevInfo\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/SimpleProfile/CC26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/SimpleProfile\" --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/ble/include\" --include_path=\"C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600\" --include_path=\"C:/ti/tirtos_simplelink_2_13_00_06/packages/ti/boards/SRF06EB/CC2650EM_7ID\" -g --gcc --define=USE_ICALL --define=POWER_SAVING --define=SBP_TASK_STACK_SIZE=700 --define=GAPROLE_TASK_STACK_SIZE=520 --define=HEAPMGR_SIZE=2672 --define=TI_DRIVERS_SPI_DMA_INCLUDED --define=TI_DRIVERS_LCD_INCLUDED --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_MAX_NUM_ENTITIES=6 --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL --define=MAX_NUM_BLE_CONNS=1 --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/SimpleBLEPeripheral/CC26xx/CCS/Config/appBLE.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    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/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios/sysbios.aem3 ...
    gmake[1]: Entering directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios'
    Preprocessing library source files ...
    gmake[1]: Leaving directory `C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios'
    Build of libraries failed.
    TOOLS/subdir_rules.mk:7: recipe for target 'configPkg/linker.cmd' failed
    0 [main] sh 8120 sync_with_child: child 6884(0x210) died before initialization with status code 0xC0000142
    42 [main] sh 8120 sync_with_child: *** child state waiting for longjmp
    C:/Users/Rich/AppData/Local/Temp/make8196-2.sh: fork: Resource temporarily unavailable
    gmake[1]: *** [mangled_ti.sysbios.BIOS_config_lib.pp] Error 128
    gmake[1]: *** Waiting for unfinished jobs....
    gmake: *** [C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios/sysbios.aem3] Error 2
    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 ****


    Thanks

    Rich
  • Maybe try to remove whole BLE stack and install a brand new one to test again.
  • Thank you for the suggestion. I deleted both the project and stack from the workplace. I uninstalled the stack from the PC and rebooted. I reinstalled and switched the compiler from 5.2 to 16.3.0 on both the project and stack.
    Unfortunately I still get the errors.

    Rich
  • The BLE stack installs the TIRTOS and XDC tools for you. If you have those directories available in the C drive, the stack install won't be successful. When I went through this, I deleted the ti directory under C drive and any other stack related install paths and then re-installed the stack.
  • Good point but alas, no improvement. I uninstalled all TI components except CCS. I deleted all the TI directories and the XDS folders from the CCS folder. I then did a complete install.. You were right, the installation took a lot longer now.

    Here is the latest dump:


    **** Build of configuration Debug for project uartecho_CC2650F128 ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../uartecho_cc26xx.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_16.3.0.STS" --compileOptions "-mv7M3 --code_state=16 -me --include_path=\"C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600\" --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_16.3.0.STS/include\" -g --gcc --display_error_number --diag_wrap=off --diag_warning=225 --diag_warning=255 --gen_func_subsections=on --abi=eabi " "../uartecho_cc26xx.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring uartecho_cc26xx.xem3 from package/cfg/uartecho_cc26xx_pem3.cfg ...
    generating custom ROM library makefile ...
    Starting build of library sources ...
    making C:/TI_Workspace/uartecho_CC2650F128/src/sysbios/sysbios.aem3 ...
    gmake[1]: Entering directory `C:/TI_Workspace/uartecho_CC2650F128/src/sysbios'
    Preprocessing library source files ...
    Creating the SYS/BIOS library that contains the APIs not included in the ROM ...
    gmake[1]: Leaving directory `C:/TI_Workspace/uartecho_CC2650F128/src/sysbios'
    Build of libraries failed.
    0 [main] sh 13020 sync_with_child: child 15148(0x1C8) died before initialization with status code 0xC0000142
    1152 [main] sh 13020 sync_with_child: *** child state waiting for longjmp
    C:/Users/Rich/AppData/Local/Temp/make12820-1.sh: fork: Resource temporarily unavailable
    gmake[1]: *** [mangled__BIOS_lib.obj] Error 128
    gmake: *** [C:/TI_Workspace/uartecho_CC2650F128/src/sysbios/sysbios.aem3] Error 2
    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/uartecho_cc26xx_pem3.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/uartecho_cc26xx_pem3.xdl'
    gmake.exe: *** [package/cfg/uartecho_cc26xx_pem3.xdl] Deleting file `package/cfg/uartecho_cc26xx_pem3.h'
    gmake.exe: *** [package/cfg/uartecho_cc26xx_pem3.xdl] Deleting file `package/cfg/uartecho_cc26xx_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: *** No rule to make target 'configPkg/linker.cmd', needed by 'configPkg/compiler.opt'.
    gmake: *** No rule to make target 'configPkg/linker.cmd', needed by 'configPkg/compiler.opt'.
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • The BLE stack also installs BTool. Did you delete that directory also? In my experience, a complete clean was needed for a successful re-install. Did you try checking the install log? Your package size should be reflected in the compiler options. There may be some other missing pieces I don't recognize. Starting from scratch becomes an efficient process once you get to the first build. Good luck!
  • I found it.

    There was a conflict between the sh.exe in the TI directory and this one:

    C:\WinAVR-20100110\utils\bin\sh.exe

    I tried changing the path variable (win10) but was unable to make that work so I just renamed the offending one so it could not be run.

    Now I can build.

    THANK YOU ALL for your help and support!

    (Can someone tell me how to find/modify the path variables in win10?)

    Thanks again

    Rich