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.
Tool/software: Code Composer Studio
Hi,
I installed the latest CCSv10.1 and imported the simple peripheral from the latest CC2640R2F SDKv4.10. I get these stack library build errors below. How do I resolve these errors?
Description Resource Path Location Type
gmake[1]: Target 'main-build' not remade because of errors. simple_peripheral_cc2640r2lp_stack_library C/C++ Problem
gmake[1]: *** [OSAL/osal.obj] Error 1 simple_peripheral_cc2640r2lp_stack_library C/C++ Problem
gmake: *** [all] Error 2 simple_peripheral_cc2640r2lp_stack_library C/C++ Problem
#167 too few arguments in function call osal.c /simple_peripheral_cc2640r2lp_stack_library/OSAL line 413 C/C++ Problem
At Console this is the error.
Building file: "C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/stack/osal_icall_ble.c"
Invoking: ARM Compiler
"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/config/build_components.opt" --cmd_file="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/config/factory_config.opt" --cmd_file="C:/ti/ccsv101workspace/CC2640R2Fv410_Launchpad/simple_peripheral_cc2640r2lp_stack_library/TOOLS/build_config.opt" -mv7M3 --code_state=16 -me -O4 --opt_for_speed=0 --include_path="C:/ti/ccsv101workspace/CC2640R2Fv410_Launchpad/simple_peripheral_cc2640r2lp_stack_library" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/controller/cc26xx_r2/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/rom" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/common/cc26xx/npi/stack" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/stack" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/icall/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/profiles/roles" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/hal/src/target/_common" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/hal/src/target/_common/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/hal/src/target" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/hal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/icall/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/npi/src" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/osal/src/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/services/src/aes/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/services/src/nv/cc26xx" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/services/src/nv" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/blestack/services/src/saddr" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/devices/cc26x0r2" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/devices/cc26x0r2/rf_patches" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source/ti/devices/cc26x0r2/inc" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/source" --include_path="C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/kernel/tirtos/packages" --include_path="C:/ti/xdctools_3_51_03_28_core/packages" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --define=CC26XX --define=CC26XX_R2 --define=DeviceFamily_CC26X0R2 --define=EXT_HAL_ASSERT --define=FLASH_ROM_BUILD --define=GATT_NO_CLIENT --define=ICALL_EVENTS --define=ICALL_JT --define=ICALL_LITE --define=OSAL_CBTIMER_NUM_TASKS=1 --define=OSAL_SNV=1 --define=POWER_SAVING --define=STACK_LIBRARY --define=USE_ICALL -g --c99 --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="Startup/osal_icall_ble.d_raw" --obj_directory="Startup" "C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/stack/osal_icall_ble.c"
gmake[1]: Target 'main-build' not remade because of errors.
gmake: *** [all] Error 2
Finished building: "C:/ti/simplelink_cc2640r2_sdk_4_10_00_10/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_peripheral/src/stack/osal_icall_ble.c"
-kel
The output shows TI compiler v20.2.1.LTS is being used.Markel Robregado said:I installed the latest CCSv10.1 and imported the simple peripheral from the latest CC2640R2F SDKv4.10.
According to CCS/LAUNCHXL-CC2640R2: Code building errors :
The issue is that the 4.10 version of the SDK requires an older version of the compiler. There is a change in the C runtime library in the latest version that is causing the error that you see.
Thanks. I updated the CCS project to use compiler 18.12.3 and it build without errors.
-kel