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.
I'm getting the following error when trying to build the BLE stack for the Sensortag (see below). I saw a similar post, but there the problem was due to a "--minimize_trampolines" flag that isn't being used here. Any ideas?
- Jay
**** Build of configuration FlashROM for project sensortag_cc2650stk_stack ****
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 8 all -O
"C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/../../../../../tools/lib_search/lib_search.exe" C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/build_config.opt "C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/../../../../../tools/lib_search/params_split_cc2640.xml" C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/../../../../../src/../blelib C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/../config/lib_linker.cmd
<<< Using Library: host_pxxx.a >>>
<<< Using Library: cc2640_ctrl_pxxx.a >>>
<<< Using Library: cc26xx_hci_tl_none.a >>>
<<< Modifying lib_linker.cmd. Stack configurations have changed. >>>
' '
'Building file: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/hal_trng_wrapper.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl" --cmd_file="C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/../../../../../src/config/build_components.opt" --cmd_file="C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/build_config.opt" -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_sdk_2_02_00_31/src/examples/sensortag/cc26xx/stack" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/osal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/services/src/saddr" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/services/src/nv/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/services/src/nv" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/icall/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/controller/cc26xx/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/services/src/aes/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/npi/src" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/common/cc26xx/npi/stack" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/icall/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/profiles/roles" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162" --c99 --define=CC26XX --define=USE_ICALL --define=FLASH_ROM_BUILD --define=POWER_SAVING --define=GATT_NO_CLIENT --define=OSAL_SNV=0 --define=INCLUDE_AES_DECRYPT --define=NO_BLE_SECURITY --define=xPM_DISABLE_PWRDOWN --define=xTESTMODES --define=xTEST_BLEBOARD --define=OSAL_CBTIMER_NUM_TASKS=1 --define=xDEBUG --define=EXT_HAL_ASSERT --define=xDEBUG_GPIO --define=xDEBUG_ENC --define=xDEBUG_SW_TRACE --define=NEAR_FUNC= --define=DATA= --define=OSAL_MAX_NUM_PROXY_TASKS=8 --define=CC26XXWARE --diag_wrap=off --diag_suppress=48 --diag_suppress=16004 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="HAL/Target/CC2650/Drivers/hal_trng_wrapper.d" --obj_directory="HAL/Target/CC2650/Drivers" "C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/hal_trng_wrapper.c"
gmake[1]: warning: -jN forced in submake: disabling jobserver mode.
'Finished building: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/hal_trng_wrapper.c'
.
.
'Building file: C:/ti/simplelink/ble_sdk_2_02_00_31/src/rom/rom_init.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl" --cmd_file="C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/../../../../../src/config/build_components.opt" --cmd_file="C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/build_config.opt" -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_sdk_2_02_00_31/src/examples/sensortag/cc26xx/stack" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/osal/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/services/src/saddr" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/services/src/nv/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/services/src/nv" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/icall/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/controller/cc26xx/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/services/src/aes/cc26xx" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/npi/src" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/common/cc26xx/npi/stack" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/icall/inc" --include_path="C:/ti/simplelink/ble_sdk_2_02_00_31/src/profiles/roles" --include_path="C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162" --c99 --define=CC26XX --define=USE_ICALL --define=FLASH_ROM_BUILD --define=POWER_SAVING --define=GATT_NO_CLIENT --define=OSAL_SNV=0 --define=INCLUDE_AES_DECRYPT --define=NO_BLE_SECURITY --define=xPM_DISABLE_PWRDOWN --define=xTESTMODES --define=xTEST_BLEBOARD --define=OSAL_CBTIMER_NUM_TASKS=1 --define=xDEBUG --define=EXT_HAL_ASSERT --define=xDEBUG_GPIO --define=xDEBUG_ENC --define=xDEBUG_SW_TRACE --define=NEAR_FUNC= --define=DATA= --define=OSAL_MAX_NUM_PROXY_TASKS=8 --define=CC26XXWARE --diag_wrap=off --diag_suppress=48 --diag_suppress=16004 --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="Startup/rom_init.d" --obj_directory="Startup" "C:/ti/simplelink/ble_sdk_2_02_00_31/src/rom/rom_init.c"
'Finished building: C:/ti/simplelink/ble_sdk_2_02_00_31/src/rom/rom_init.c'
' '
'Building target: sensortag_cc2650stk_stack.out'
'Invoking: ARM Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl" --cmd_file="C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/../../../../../src/config/build_components.opt" --cmd_file="C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/stack/build_config.opt" -mv7M3 --code_state=16 --abi=eabi -me -O4 --opt_for_speed=0 --c99 --define=CC26XX --define=USE_ICALL --define=FLASH_ROM_BUILD --define=POWER_SAVING --define=GATT_NO_CLIENT --define=OSAL_SNV=0 --define=INCLUDE_AES_DECRYPT --define=NO_BLE_SECURITY --define=xPM_DISABLE_PWRDOWN --define=xTESTMODES --define=xTEST_BLEBOARD --define=OSAL_CBTIMER_NUM_TASKS=1 --define=xDEBUG --define=EXT_HAL_ASSERT --define=xDEBUG_GPIO --define=xDEBUG_ENC --define=xDEBUG_SW_TRACE --define=NEAR_FUNC= --define=DATA= --define=OSAL_MAX_NUM_PROXY_TASKS=8 --define=CC26XXWARE --diag_wrap=off --diag_suppress=48 --diag_suppress=16004 --diag_warning=225 --display_error_number -z -m"sensortag_cc2650stk_stack.map" --heap_size=0 --stack_size=256 -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include" --reread_libs --display_error_number --diag_suppress=16002-D --diag_suppress=10325-D --diag_suppress=10247-D --diag_suppress=10229-D --diag_wrap=off --warn_sections --xml_link_info="sensortag_cc2650stk_stack_linkInfo.xml" --entry_point=startup_entry --rom_model --unused_section_elimination=on --compress_dwarf=on -o "sensortag_cc2650stk_stack.out" "C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/config/ccs_linker_defines.cmd" "./HAL/Common/hal_assert.obj" "./HAL/Target/CC2650/Drivers/hal_flash_wrapper.obj" "./HAL/Target/CC2650/Drivers/hal_rtc_wrapper.obj" "./HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj" "./HAL/Target/CC2650/_common/mb_patch.obj" "./ICallBLE/ble_dispatch.obj" "./NPI/npi.obj" "./OSAL/osal.obj" "./OSAL/osal_bufmgr.obj" "./OSAL/osal_cbtimer.obj" "./OSAL/osal_clock.obj" "./OSAL/osal_memory_icall.obj" "./OSAL/osal_pwrmgr.obj" "./OSAL/osal_snv_wrapper.obj" "./OSAL/osal_timers.obj" "./PROFILES/gap.obj" "./PROFILES/gapbondmgr.obj" "./PROFILES/gattservapp_util.obj" "./Startup/ble_user_config.obj" "./Startup/common_rom_init.obj" "./Startup/icall_startup.obj" "./Startup/osal_icall_ble.obj" "./Startup/rom_init.obj" "./TOOLS/onboard.obj" "C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/config/lib_linker.cmd" "C:/ti/simplelink/ble_sdk_2_02_00_31/src/common/cc26xx/ccs/cc26xx_stack.cmd" -llibc.a -l"C:/ti/simplelink/ble_sdk_2_02_00_31/examples/cc2650stk/sensortag/ccs/config/lib_linker.cmd" -l"C:/ti/simplelink/ble_sdk_2_02_00_31/src/rom/enc_lib/cc26xx_ecc_rom_api.a" -l"C:/ti/simplelink/ble_sdk_2_02_00_31/src/rom/ble_rom_releases/04242014/ble_rom_patch.symbols" -l"C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/driverlib/bin/ccs/driverlib.lib"
<Linking>
INTERNAL ERROR: C:\ti\ccsv6\tools\compiler\ti-cgt-arm_15.12.1.LTS\bin\armlnk.exe experienced an unhandled exception
This is caused by a defect in the compiler itself. TI Customer
Support may be able to suggest a workaround to avoid this.
Upgrading to the newest version of the compiler may fix this problem.
Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue". Include this ENTIRE error message and a
copy of the .pp file created when option --preproc_with_comment
(-ppc) is used.
gmake[1]: *** [sensortag_cc2650stk_stack.out] Error 1
gmake[1]: Target 'main-build' not remade because of errors.
gmake: *** [all] Error 2
>> Compilation failure
makefile:194: recipe for target 'sensortag_cc2650stk_stack.out' failed
makefile:186: recipe for target 'all' failed
**** Build Finished ****
I'm pretty sure you have the same problem as the one discussed in this thread. Ignore the part about incorrectly using --preproc_with_compile. Focus on what goes wrong once that is fixed. The answer is to upgrade to compiler version 15.3.12.LTS. See the first part of this wiki article for the details of how to upgrade.
Thanks and regards,
-George
Thanks - that fixed it. I already had 15.3.12 installed, but I had to select project Properties:General and chose it in the Compiler version.