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: Cannot compile simple_peripheral_cc2640r2lp_app

Other Parts Discussed in Thread: SYSBIOS, CC2640R2F, CC2650

Tool/software: Code Composer Studio

Tried some "resolved" solution in the forum but no positive result.

I cannot compile this example. I am running windows 10 (and no space in my user name and not using WINAVR).

CCS version 7, simple link SDK 1.50.0.58, XDC 3.50.3.33

I tried the installation on a Linux system and compile of the same app and all went fine.

Here is the error:

gmake[1]: Leaving directory `C:/Users/jmj/workspace_v7/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios'
Build of libraries failed.
TOOLS/subdir_rules.mk:12: recipe for target 'build-1287780815-inproc' failed
0 [main] sh 15148 sync_with_child: child 8368(0x244) died before initialization with status code 0xC0000142
49 [main] sh 15148 sync_with_child: *** child state waiting for longjmp

More Complete listing below:

making C:/Users/jmj/workspace_v7/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3 ...
gmake[1]: Entering directory `C:/Users/jmj/workspace_v7/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios'
clem3 C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/kernel/tirtos/packages/ti/sysbios/BIOS.c ...
gmake[1]: Leaving directory `C:/Users/jmj/workspace_v7/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios'
Build of libraries failed.
TOOLS/subdir_rules.mk:12: recipe for target 'build-1287780815-inproc' failed
0 [main] sh 15148 sync_with_child: child 8368(0x244) died before initialization with status code 0xC0000142
49 [main] sh 15148 sync_with_child: *** child state waiting for longjmp
C:/Users/jmj/AppData/Local/Temp/make11612-1.sh: fork: Resource temporarily unavailable
gmake[1]: *** [rom_sysbios.obj] Error 128
gmake: *** [C:/Users/jmj/workspace_v7/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3] Error 2
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_03_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_50_03_33_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/app_ble_pem3.xdl'
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.h'
gmake.exe: *** [package/cfg/app_ble_pem3.xdl] Deleting file `package/cfg/app_ble_pem3.c'
js: "C:/ti/xdctools_3_50_03_33_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-1287780815-inproc] Error 1
gmake: *** [build-1287780815] Error 2
TOOLS/subdir_rules.mk:9: recipe for target 'build-1287780815' failed

Thank you for some help.

I have to work with a customer using Windows and cannot impose Linux, and in anyway this CCS should work on both

Jean-Marc

  • Hello Jean-Marc,

    Agreed, it would work on both Windows and Linux. I was able to build the example on my Windows 10-64 laptop without issue. I use the same version of the SDK and build tools. I am not sure what happened in your environment. How did you import the example into your workspace? Was it via Resource Explorer?

    Could you also provide the full build output from start to finish? For example, mine looks like:

    **** Build of configuration FlashROM_StackLibrary for project simple_peripheral_cc2640r2lp_app ****

    "C:\\ti\\ccs7.4.0.00015\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O

    'Building file: "../TOOLS/app_ble.cfg"'

    'Invoking: XDCtools'

    "C:/ti/xdctools_3_50_03_33_core/xs" --xdcpath="C:/ti/ccs7.4.0.00015/ccsv7/ccs_base;C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source;C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/kernel/tirtos/packages;C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "C:/ti/ccs7.4.0.00015/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS" --compileOptions "-mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/workspaces/740/simple_peripheral_cc2640r2lp_app\" --include_path=\"C:/ti/workspaces/740/simple_peripheral_cc2640r2lp_app/Application\" --include_path=\"C:/ti/workspaces/740/simple_peripheral_cc2640r2lp_app/Startup\" --include_path=\"C:/ti/workspaces/740/simple_peripheral_cc2640r2lp_app/PROFILES\" --include_path=\"C:/ti/workspaces/740/simple_peripheral_cc2640r2lp_app/Include\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/controller/cc26xx_r2/inc\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/inc\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/rom\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/common/cc26xx\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/app\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/inc\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/profiles/dev_info\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/profiles/roles/cc26xx\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/profiles/roles\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/profiles/simple_profile/cc26xx\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/profiles/simple_profile\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/target\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/inc\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/heapmgr\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/inc\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/osal/src/inc\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/services/src/saddr\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/services/src/sdata\" --include_path=\"C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/devices/cc26x0r2\" --include_path=\"C:/ti/ccs7.4.0.00015/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/include\" --define=DeviceFamily_CC26X0R2 --define=BOARD_DISPLAY_USE_LCD=0 --define=BOARD_DISPLAY_USE_UART=1 --define=BOARD_DISPLAY_USE_UART_ANSI=1 --define=CC2640R2_LAUNCHXL --define=CC26XX --define=CC26XX_R2 --define=ICALL_EVENTS --define=ICALL_JT --define=ICALL_LITE --define=ICALL_MAX_NUM_ENTITIES=6 --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_STACK0_ADDR --define=POWER_SAVING --define=RF_SINGLEMODE --define=STACK_LIBRARY --define=USE_ICALL --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL -g --c99 --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi " "../TOOLS/app_ble.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_ble.xem3 from package/cfg/app_ble_pem3.cfg ...

    generating custom ROM library makefile ...

    Starting build of library sources ...

    making C:/ti/workspaces/740/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios/rom_sysbios.aem3 ...

    gmake[1]: Entering directory `C:/ti/workspaces/740/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios'

    clem3 C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/kernel/tirtos/packages/ti/sysbios/BIOS.c ...

    asmem3 C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi_asm.sv7M ...

    asmem3 C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/kernel/tirtos/packages/ti/sysbios/family/arm/m3/Hwi_asm_switch.sv7M ...

    asmem3 C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/kernel/tirtos/packages/ti/sysbios/family/arm/m3/IntrinsicsSupport_asm.sv7M ...

    asmem3 C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/kernel/tirtos/packages/ti/sysbios/family/arm/m3/TaskSupport_asm.sv7M ...

    arem3 rom_sysbios.obj m3_Hwi_asm.obj m3_Hwi_asm_switch.obj m3_IntrinsicsSupport_asm.obj m3_TaskSupport_asm.obj ...

    gmake[1]: Leaving directory `C:/ti/workspaces/740/simple_peripheral_cc2640r2lp_app/TOOLS/src/sysbios'

    Build of libraries done.

    clem3 package/cfg/app_ble_pem3.c ...

    'Finished building: "../TOOLS/app_ble.cfg"'

    'Building file: "C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/icall/src/icall_cc2650.c"'

    'Invoking: ARM Compiler'

    "C:/ti/ccs7.4.0.00015/ccsv7/tools/compiler/ti-cgt-arm_16.9.6.LTS/bin/armcl" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/config/build_components.opt"

    ...

  • user4142923 said:
    I am running windows 10 (and no space in my user name and not using WINAVR).

    It is not just WinAVR, but also having other toolsets in your system PATH with an incompatible sh.exe could cause this issue.

    Please take a look at some of the related threads below. 

    https://e2e.ti.com/support/embedded/tirtos/f/355/p/494957/1814210#1814210

    https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/p/642887/2374969#2374969

    https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/636095/2346880#2346880

    As per the diagnostic description here try to modify your system PATH to remove any possibly conflicting tools, and see if that helps resolve the error.

  • Great thank you all for the nice and competent answers.

    At the end checked again and found that I was wrong, I had WINAVR installed and did not remember it. I think I needed it for Arduino.

    I found this by using the console command "where sh" and this point me WINAVR. Now I uninstalled WINAVR and recompile OK.

    Now I hope my Arduino environment will still perform, but seriously!!! how Code Composer can act like this, this is a real nightmare. Well!! Eclipse for me was always a nightmare when it would crash on such problems. It would be nice if TI could consider something more friendly, we have enough to work on building the firmware without spending days trying to fix the environment.

    Thanks again for your support.

    jean-marc