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.

Compiler/CC2650: Project Zero App - SimpleLink Academy Build Error

Part Number: CC2650
Other Parts Discussed in Thread: SYSBIOS, , BLE-STACK

Tool/software: TI C/C++ Compiler

Hi there,

I was trying to play with the Project Zero App/Stack on SimpleLink Academy. Here's the build output.


**** Build of configuration Debug for project project_zero_app_cc2650launchxl ****

"C:\\ti\\ccsv8\\utils\\bin\\gmake" -j -k -j 4 all -O

Building file: "../TOOLS/app_ble_uartlog.cfg"
Invoking: XDCtools
"C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/tidrivers_cc13xx_cc26xx_2_20_01_10/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/uia_2_00_06_52/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS" --compileOptions "-mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/Profiles\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/Application\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/ICallBLE\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/Startup\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/Board\" --include_path=\"c:/ti/simplelink_academy_01_11_00_0000/modules/projects/support_files/Components/uart_log\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/examples/simple_peripheral/cc26xx/app\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/icall/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/roles/cc26xx\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/roles\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/dev_info\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/simple_profile/cc26xx\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/simple_profile\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/heapmgr\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/controller/cc26xx/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/cc26xx\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/services/src/sdata\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/services/src/saddr\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/icall/src/inc\" --include_path=\"c:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393\" --include_path=\"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include\" --define=USE_ICALL --define=POWER_SAVING --define=SBP_TASK_STACK_SIZE=700 --define=GAPROLE_TASK_STACK_SIZE=520 --define=HEAPMGR_SIZE=0 --define=Display_DISABLE_ALL --define=BOARD_DISPLAY_EXCLUDE_UART --define=xBOARD_DISPLAY_EXCLUDE_LCD --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_MAX_NUM_ENTITIES=6 --define=xdc_runtime_Assert_DISABLE_ALL --define=Xxdc_runtime_Log_DISABLE_ALL --define=MAX_NUM_BLE_CONNS=1 --define=CC26XX --define=xdc_FILE=\"\"\"\" --define=UARTLOG_NUM_EVT_BUF=32 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi " "../TOOLS/app_ble_uartlog.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_uartlog.xem3 from package/cfg/app_ble_uartlog_pem3.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making C:/ti/workspace_azim/project_zero_app_cc2650launchxl/TOOLS/src/sysbios/rom_sysbios.aem3 ...
gmake[1]: Entering directory `C:/ti/workspace_azim/project_zero_app_cc2650launchxl/TOOLS/src/sysbios'
clem3 C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages/ti/sysbios/BIOS.c ...
gmake[1]: Leaving directory `C:/ti/workspace_azim/project_zero_app_cc2650launchxl/TOOLS/src/sysbios'
Build of libraries failed.
TOOLS/subdir_rules.mk:12: recipe for target 'build-84545201-inproc' failed
0 [main] sh 14484 sync_with_child: child 7904(0x1CC) died before initialization with status code 0xC0000142
13 [main] sh 14484 sync_with_child: *** child state waiting for longjmp
C:/Users/azim/AppData/Local/Temp/make15016-1.sh: fork: Resource temporarily unavailable
gmake[1]: *** [rom_sysbios.obj] Error 128
gmake: *** [C:/ti/workspace_azim/project_zero_app_cc2650launchxl/TOOLS/src/sysbios/rom_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!
gmake.exe: *** [package/cfg/app_ble_uartlog_pem3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/app_ble_uartlog_pem3.xdl'
gmake.exe: *** [package/cfg/app_ble_uartlog_pem3.xdl] Deleting file `package/cfg/app_ble_uartlog_pem3.h'
gmake.exe: *** [package/cfg/app_ble_uartlog_pem3.xdl] Deleting file `package/cfg/app_ble_uartlog_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[1]: *** [build-84545201-inproc] Error 1
gmake: *** [build-84545201] Error 2
TOOLS/subdir_rules.mk:9: recipe for target 'build-84545201' failed
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

DEBUG Out on running - project zero stack

Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
Cortex_M3_0: GEL Output: Board Reset Complete.
Cortex_M3_0: AutoRun: Target not run as the symbol "main" is not defined

DEBUG Out on running - project zero app

Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
Cortex_M3_0: GEL Output: Board Reset Complete.
Cortex_M3_0: GEL: Encountered a problem loading file: C:\ti\workspace_azim\project_zero_app_cc2650launchxl\Debug\project_zero_app_cc2650launchxl.out Could not open file

Is it because of the compiler environment or something?

The following are the files/folders in C:\ti

Thanks,

Azim

  • Hello Azim,
    Can you tell me your exact setup?
    HW kit, SW bundle, CCS version, project, etc.
    Then I can try to compile it here as well.
  • Hi Eirik,

    Here are the details you requested,

    H/w - CC2650

    S/w - ti_rtos_cc13xx_cc26xx_2_20_01_08, BLE SDK - 2_02_01_18

    Project - Project Zero (from SimpleLink Academy)

    Compiler Version - TI V18.1.1.LTS

    CCS version 8

    In project properties - general - products - are we required to select the RTOS and other software packages for the build environment or are they selected by default? Also, on running project zero stack, icall_startup.c highlights errors on the following:

    #if !(defined(__IAR_SYSTEMS_ICC__) || defined(__TI_COMPILER_VERSION__))
    #error "startup.c: Unsupported compiler!"
    #endif

    #elif defined(__IAR_SYSTEMS_ICC__)
    #pragma location="EntrySection"
    #endif

    #if defined(__IAR_SYSTEMS_ICC__)
    extern void __iar_data_init3(void);
    __iar_data_init3();

    #else
    #error "Error: Must specify a compiler!"
    #endif

    Best,

    Azim

  • Also, please have a look at this:


    **** Build of configuration Debug for project project_zero_app_cc2650launchxl ****

    "C:\\ti\\ccsv8\\utils\\bin\\gmake" -j -k -j 4 all -O

    Building file: "../TOOLS/app_ble_uartlog.cfg"
    Invoking: XDCtools
    "C:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/tidrivers_cc13xx_cc26xx_2_20_01_10/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages;C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/uia_2_00_06_52/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2650F128 -r release -c "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS" --compileOptions "-mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/Profiles\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/Application\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/ICallBLE\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/Startup\" --include_path=\"C:/ti/workspace_azim/project_zero_app_cc2650launchxl/Board\" --include_path=\"c:/ti/simplelink_academy_01_11_00_0000/modules/projects/support_files/Components/uart_log\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/examples/simple_peripheral/cc26xx/app\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/icall/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/roles/cc26xx\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/roles\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/dev_info\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/simple_profile/cc26xx\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/profiles/simple_profile\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/heapmgr\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/controller/cc26xx/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/cc26xx\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/services/src/sdata\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/services/src/saddr\" --include_path=\"c:/ti/simplelink/ble_sdk_2_02_01_18/src/components/icall/src/inc\" --include_path=\"c:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/cc26xxware_2_24_02_17393\" --include_path=\"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include\" --define=USE_ICALL --define=POWER_SAVING --define=SBP_TASK_STACK_SIZE=700 --define=GAPROLE_TASK_STACK_SIZE=520 --define=HEAPMGR_SIZE=0 --define=Display_DISABLE_ALL --define=BOARD_DISPLAY_EXCLUDE_UART --define=xBOARD_DISPLAY_EXCLUDE_LCD --define=ICALL_MAX_NUM_TASKS=3 --define=ICALL_MAX_NUM_ENTITIES=6 --define=xdc_runtime_Assert_DISABLE_ALL --define=Xxdc_runtime_Log_DISABLE_ALL --define=MAX_NUM_BLE_CONNS=1 --define=CC26XX --define=xdc_FILE=\"\"\"\" --define=UARTLOG_NUM_EVT_BUF=32 -g --c99 --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi " "../TOOLS/app_ble_uartlog.cfg"
    configuring app_ble_uartlog.xem3 from package/cfg/app_ble_uartlog_pem3.cfg ...
    generating custom ROM library makefile ...
    Starting build of library sources ...
    making C:/ti/workspace_azim/project_zero_app_cc2650launchxl/TOOLS/src/sysbios/rom_sysbios.aem3 ...
    gmake[1]: Entering directory `C:/ti/workspace_azim/project_zero_app_cc2650launchxl/TOOLS/src/sysbios'
    clem3 C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages/ti/sysbios/BIOS.c ...
    gmake[1]: Leaving directory `C:/ti/workspace_azim/project_zero_app_cc2650launchxl/TOOLS/src/sysbios'
    Build of libraries failed.
    TOOLS/subdir_rules.mk:12: recipe for target 'build-84545201-inproc' failed
    0 [main] sh 6112 sync_with_child: child 10096(0x1BC) died before initialization with status code 0xC0000142
    15 [main] sh 6112 sync_with_child: *** child state waiting for longjmp
    C:/Users/azim/AppData/Local/Temp/make12316-1.sh: fork: Resource temporarily unavailable
    gmake[1]: *** [rom_sysbios.obj] Error 128
    gmake: *** [C:/ti/workspace_azim/project_zero_app_cc2650launchxl/TOOLS/src/sysbios/rom_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/app_ble_uartlog_pem3.xdl] Error 1
    xdctools_3_32_00_06_core\gmake.exe: *** Deleting file `package/cfg/app_ble_uartlog_pem3.xdl'
    xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/app_ble_uartlog_pem3.xdl] Deleting file `package/cfg/app_ble_uartlog_pem3.h'
    xdctools_3_32_00_06_core\gmake.exe: *** [package/cfg/app_ble_uartlog_pem3.xdl] Deleting file `package/cfg/app_ble_uartlog_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[1]: *** [build-84545201-inproc] Error 1
    gmake: *** [build-84545201] Error 2
    TOOLS/subdir_rules.mk:9: recipe for target 'build-84545201' failed
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • Hello Azim,

    The BLE-Stack v 2.2.2 SDK release has been built and tested with TI ARM Compiler v16.9.4.LTS. Compatibility with other TI ARM Compiler versions in CCS has not been tested and use of other compiler versions may result in undefined behavior. Refer to Section 2.6.3.2 of the BLE Software Developer’s Guide (SWRU393C) or the online SW User's Guide section for Installing a TI Compiler for the procedure to install  a specific TI ARM Compiler that is not bundled with CCS.

    For more info please read these threads:

    BLE Getting Started and FAQ

    https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/p/653828/2401047#2401047