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.

Problems compiling example code with multiple rtos for simplelink installed

Other Parts Discussed in Thread: SYSBIOS

Hi,

I am trying to compile the SimpleBLEPeripheral example code for the Sensortag v2.0, and face this issue:

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
'Building file: C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/appBLE.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_30_06_67_core/xs" --xdcpath="C:/ti/tirtos_simplelink_2_11_01_09/packages;C:/ti/tirtos_simplelink_2_11_01_09/products/bios_6_41_02_41/packages;C:/ti/tirtos_simplelink_2_11_01_09/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_5.2.4" --compileOptions "-mv7M3 --code_state=16 --abi=eabi -me -O4 --opt_for_speed=0 --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.4/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SimpleBLEPeripheral/CC26xx/Source/Application\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/ICall/Include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/Roles/CC26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/Roles\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/DevInfo\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/SimpleProfile/CC26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/Profiles/SimpleProfile\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/applib/heap\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/ble/hci\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/ble/controller/CC26xx/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/ble/host\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/hal/target/CC2650TIRTOS\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/hal/target/_common/cc26xx\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/hal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/osal/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/services/sdata\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/services/saddr\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/icall/include\" --include_path=\"C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Components/ble/include\" --include_path=\"C:/ti/tirtos_simplelink_2_11_01_09/products/cc26xxware_2_20_06_14829\" --include_path=\"C:/ti/tirtos_simplelink_2_11_01_09/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 --define=ccs --define=__TI_COMPILER_VERSION=1 --define=DEBUG --display_error_number --diag_suppress=48 --diag_warning=225 --diag_wrap=off --gen_func_subsections=on " "C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/appBLE.cfg"
making package.mak (because of package.bld) ...
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_00_00_42893/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios/sysbios.aem3 ...
gmake[1]: Entering directory `C:/ti/simplelink/ble_cc26xx_2_00_00_42893/Projects/ble/SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios'
Preprocessing library source files ...
Creating the SYS/BIOS library that contains the APIs not included in the ROM ...
error: symbol "ti_sysbios_family_arm_m3_Hwi_getFunc__E" redeclared with
   incompatible type:
   "ti_sysbios_interfaces_IHwi_FuncPtr(ti_sysbios_family_arm_m3_Hwi_Handle,
   xdc_UArg *)[void (*)(xdc_UArg)]"
   in
   "C:/ti/tirtos_simplelink_2_11_01_09/products/bios_6_41_02_41/packages/ti/sys
   bios/family/arm/m3/Hwi.h" at line 816 and:
   "ti_sysbios_family_arm_m3_Hwi_FuncPtr(ti_sysbios_family_arm_m3_Hwi_Object *,
   UArg *)[ti_sysbios_interfaces_IHwi_FuncPtr [void (*)(xdc_UArg)]]"
   in
   "C:/ti/tirtos_simplelink_2_13_01_09/products/bios_6_42_00_08/packages/ti/sys
   bios/family/arm/m3/Hwi.c" at line 791)

All my settings seem to point to "2_11_01_09" version, but for some reason, the tool is bent on picking the "2_13_01_09" version too.

Short of uninstalling this version, how do I ask the tool to ignore it?

  • Hello,
    I would check the Path Variables settings under Linked Resources in the Project Properties to confirm they point to the expected RTOS. Also, make sure that RTSC tab under General has the correct RTOS selected (2.11.1.09).

    Beyond that, please provide your exact project modifications. Did the default SimpleBLEPeripheral & SensorTag projects build cleanly?

    Best wishes
  • Thanks JXS,

    I have verified that the Path variables CC26XXWARE as well as TI_RTOS_DRIVERS_BASE both point to 2.11.01.09. Also, the RTSC tab under General has the same RTOS selected.

    Also, I have made absolutely no changes after importing the project except change the debug instrument to XDS110 and change the compiler to the latest ARM compiler installed.

    Is there some global variable that could force compilation of both flavours of the installed RTOS libraries? Why would it try to compile both at all?
  • In fact, the Stack compiled very smoothly (except that the CC2650Stack.a and another .a file in the Lib folder had to be copied as CC2640Stack.a and similar.
  • OK! Problem solved!

    I had some files lying in the "SimpleBLEPeripheral/CC26xx/CCS/Config/src/sysbios" directory from a previous compile attempt using the latest RTOS version. Once I deleted the "src" folder itself, the compile went through smoothly!

    Thanks a lot for the guidance.