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/LPSTK-CC1352R: CC13XX common files missing

Part Number: LPSTK-CC1352R
Other Parts Discussed in Thread: CC1352R

Tool/software: Code Composer Studio

Hi,

I am trying to build the BLE multi_sensor example for my LPSTK-CC1352R device with the latest SDK simplelink_cc13x2_26x2_sdk_4_10_00_78 and CCS version 10.

I am facing build issue since some files are missing:

Running Configuro...
makefile:122: recipe for target 'multi_sensor/linker.cmd' failed
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/common/cc13xx/util.c', needed by 'util.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/common/cc13xx/ecc/ECCROMCC26XX.c', needed by 'ECCROMCC26XX.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc13xx/uartlog/UartLog.c', needed by 'UartLog.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/icall/src/icall_cc13x0.c', needed by 'icall_cc13x0.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc13xx/crc/crc32.c', needed by 'crc32.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc13xx/flash_interface/external/flash_interface_ext_rtos_NVS.c', needed by 'flash_interface_ext_rtos_NVS.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/profiles/oad/cc13xx/oad.c', needed by 'oad.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/profiles/oad/cc13xx/oad_image_header_app.c', needed by 'oad_image_header_app.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/profiles/oad/cc13xx/oad_util.c', needed by 'oad_util.obj'.
gmake: *** No rule to make target 'C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/profiles/dev_info/cc13xx/devinfoservice.c', needed by 'devinfoservice.obj'.

After a classic SDK installation, cc13xx common files are missing.

Did I miss something?

Sincerely

  • The directory paths noted in the error message do not exist in the SDK so I'm not sure why it is looking for source files in that path.

    Are you simply importing and building the out of box multi_sensor_CC13X2R1_LAUNCHXL_tirtos_ccs example project from the SDK? Could you try it again in a new workspace? If it still fails there might be something corrupted in your SDK installation. 

    I built the project in my machine and have attached the build log as a reference, that you can use to compare with your build output.

    Also your attached screenshots did not come through properly.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/multi_5F00_sensor_5F00_buildlog

  • Hi,

    The directory simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc13xx  is missing.

    I also installed simplelink_cc13x2_26x2_sdk_3_40_00_02 and again ource/ti/common/cc13xx is not present.

    Why are they missing?

    Sincerely,

  • Hi,

    Thank you for replying!!

    If those files do not exist anymore, then all LPSTK-CC1352R BLE5stack examples are broken.

    All of them refer to cc13xx HAL which is not present in the SDK.

    For instance, simply look at following Makefile:

    C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78\examples\rtos\CC1352R1_LAUNCHXL\ble5stack\multi_sensor\tirtos\ccs\Makefile:

    util.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/common/cc13xx/util.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    ECCROMCC26XX.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/common/cc13xx/ecc/ECCROMCC26XX.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    UartLog.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/uartlog/UartLog.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    

    The following files do not exist at all:

    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/uartlog/UartLog.c

    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/common/cc13xx/util.c
    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/crc/crc32.c
    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/flash_interface/external/flash_interface_ext_rtos_NVS.c
    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/oad/cc13xx/oad.c
    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/oad/cc13xx/oad_image_header_app.c
    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/oad/cc13xx/oad_util.c
    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/dev_info/cc13xx/devinfoservice.c

    All cc13xx directories are missing in simplelink_cc13x2_26x2_sdk_*.

    The same issue occurred at least with both simplelink_cc13x2_26x2_sdk_4_10_00_78  and simplelink_cc13x2_26x2_sdk_3_40_00_02 SDK. I Did not try with older SDK.

    Do you have any suggestions?

    Sincerely

  • Hi,

    If you look at your logs:

    **** Build of configuration Debug for project multi_sensor_CC13X2R1_LAUNCHXL_tirtos_ccs ****

    You are compiling multi_sensor example for CC13X2R1 device, but you are using CC26XX HAL (instead of CC13XX):

    include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc26xx/flash_interface/" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/common/cc26xx/" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/drivers/nvs/" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc26xx/crc/" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc26xx/bim/" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc26xx/oad/" --include_path="C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc26xx/uartlog/" --
    ...
    
    Building file: "C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc26xx/uartlog/UartLog.c
    Building file: "C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/ble5stack/common/cc26xx/util.c"
    Building file: "C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc26xx/crc/crc32.c

    Also, the makefile presents in the SDK refers only to cc13xx HAL:

    SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR ?= $(abspath ../../../../../../..)
    
    include $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/imports.mak
    
    XDCPATH = $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source;$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/kernel/tirtos/packages;
    SYSCONFIG_PRODUCT := $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/.metadata/product.json
    
    CC = "$(CCS_ARMCOMPILER)/bin/armcl"
    LNK = "$(CCS_ARMCOMPILER)/bin/armcl"
    
    XDCTARGET = ti.targets.arm.elf.M4F
    PLATFORM = ti.platforms.simplelink:CC2642R1F
    
    OBJECTS = ti_drivers_config.obj ti_radio_config.obj  sail_syscfg_workaround.obj multi_sensor.obj scif.obj scif_framework.obj scif_osal_tirtos.obj Button.obj LED.obj  osal_icall_ble.obj icall_api_lite.obj util.obj ECCROMCC26XX.obj UartLog.obj crc.obj nvocmp.obj NVSSPI25X.obj icall.obj icall_cc13x0.obj icall_user_config.obj ble_user_config.obj crc32.obj flash_interface_ext_rtos_NVS.obj oad.obj oad_image_header_app.obj oad_util.obj sensor_common.obj devinfoservice.obj gatt_uuid.obj gattservapp_util.obj batt_profile.obj button_profile.obj hall_profile.obj hum_profile.obj led_profile.obj light_profile.obj accel_profile.obj temp_profile.obj batt_service.obj button_service.obj hall_service.obj hum_service.obj led_service.obj light_service.obj accel_service.obj temp_service.obj rom_init.obj CC1352R1_LAUNCHXL_fxns.obj ble_user_config_stack.obj  main.obj
    
    CONFIGPKG = multi_sensor
    
    NAME = multi_sensor
    
    CFLAGS = -I../.. \
        -I. \
        "--cmd_file=${PROJECT_LOC}/Tools/Defines/multi_sensor_app.opt" \
        "--cmd_file=$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/config/build_components.opt" \
        "--cmd_file=$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/config/factory_config.opt" \
        "--cmd_file=${PROJECT_LOC}/build_config.opt" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/examples/rtos/CC1352R1_LAUNCHXL/ble5stack/multi_sensor/Application" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/examples/rtos/CC1352R1_LAUNCHXL/ble5stack/multi_sensor/Drivers/ACCELEROMETER" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/../" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/flash_interface/" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/common/cc13xx/" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/drivers/nvs/" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/crc/" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/bim/" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/oad/" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/uartlog/" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/oad/cc13xx" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/common/cc13xx" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/drivers/nvs" \
        "-Duartlog_FILE=&quot;\&quot;${InputFileName}\&quot;&quot;" \
        --silicon_version=7M4 \
        -O4 \
        --opt_for_speed=0 \
        --code_state=16 \
        --abi=eabi \
        -me \
        -g \
        --c99 \
        --gcc \
        --gen_func_subsections=on \
        --display_error_number \
        --diag_wrap=off \
        -DSECURITY \
        -DDeviceFamily_CC26X2 \
        -DFLASH_ROM_BUILD \
        -DNVOCMP_NWSAMEITEM=1 \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/controller/cc13xx/inc" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/inc" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/rom" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/icall/inc" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/hal/src/target/_common" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/hal/src/target/_common/cc13xx" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/hal/src/inc" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/heapmgr" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/dev_info" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/simple_profile" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/icall/src/inc" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/osal/src/inc" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/services/src/saddr" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/services/src/sdata" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/nv" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/devices/cc13x2_cc13x2" \
        "-I$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/posix/ccs" \
        --little_endian \
        --diag_warning=255 \
        --float_support=FPv4SPD16 \
        --symdebug:dwarf \
        "-I$(CCS_ARMCOMPILER)/include"
    
    LFLAGS = "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/libraries/cc13x2r1/OneLib.a" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/libraries/cc13x2r1/StackWrapper.a" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/sail/library/ccs/cc1352r1/sail.lib" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/libraries/cc13x2r1/ble_r2.symbols" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/examples/rtos/CC1352R1_LAUNCHXL/ble5stack/multi_sensor/tirtos/ccs/cc13x2_cc13x2_app.cmd" \
        -x \
        --define=FLASH_ROM_BUILD=2 \
        --define=OAD_IMG_E=1 \
        --define=SECURITY \
        --diag_suppress=16002-D \
        --diag_suppress=10247-D \
        --diag_suppress=10325-D \
        --diag_suppress=10229-D \
        --diag_suppress=16032-D \
        "-i$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/display/lib/display.aem4f" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/grlib/lib/ccs/m4f/grlib.a" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/drivers/rf/lib/rf_multiMode_cc13x2.aem4f" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/devices/cc13x2_cc13x2/driverlib/bin/ccs/driverlib.lib" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/drivers/lib/drivers_cc13x2.aem4f" \
        "-l$(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/kernel/tirtos/packages/ti/dpl/lib/dpl_cc13x2.aem4f" \
        -lti/devices/cc13x2_cc13x2/driverlib/bin/ccs/driverlib.lib \
        ../../tirtos/ccs/cc13x2_cc13x2_app.cmd \
        "-m$(NAME).map" \
        --warn_sections \
        --display_error_number \
        --diag_wrap=off \
        --rom_model \
        "-i$(CCS_ARMCOMPILER)/lib" \
        -llibc.a
    
    .PRECIOUS: $(CONFIGPKG)/compiler.opt $(CONFIGPKG)/linker.cmd
    
    all: $(NAME).out
    
    $(CONFIGPKG)/compiler.opt: $(CONFIGPKG)/linker.cmd
    
    $(CONFIGPKG)/linker.cmd: ../../Tools/multi_sensor_app.cfg
    	@ echo Running Configuro...
    	@ $(XDC_INSTALL_DIR)/xs --xdcpath="$(XDCPATH)" xdc.tools.configuro -c "$(CCS_ARMCOMPILER)" -t $(XDCTARGET) -p $(PLATFORM) --compileOptions "$(CFLAGS)" -o "$(CONFIGPKG)" ../../Tools/multi_sensor_app.cfg
    
    .INTERMEDIATE: syscfg
    ti_drivers_config.c ti_drivers_config.h ti_radio_config.c ti_radio_config.h: syscfg
    	@ echo generation complete
    
    syscfg: ../../multi_sensor.syscfg
    	@ echo Generating configuration files...
    	@ $(SYSCONFIG_TOOL) --product $(SYSCONFIG_PRODUCT) --output $(@D) $<
    
    ti_drivers_config.obj: ti_drivers_config.c $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    sail_syscfg_workaround.obj: ../../Application/sail_syscfg_workaround.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    multi_sensor.obj: ../../Application/multi_sensor.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    scif.obj: ../../Drivers/ACCELEROMETER/scif.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    scif_framework.obj: ../../Drivers/ACCELEROMETER/scif_framework.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    scif_osal_tirtos.obj: ../../Drivers/ACCELEROMETER/scif_osal_tirtos.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    Button.obj: ../../Drivers/BUTTON/Button.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    LED.obj: ../../Drivers/LED/LED.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    osal_icall_ble.obj: ../../Startup/osal_icall_ble.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    icall_api_lite.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/icall/app/icall_api_lite.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    util.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/common/cc13xx/util.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    ECCROMCC26XX.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/common/cc13xx/ecc/ECCROMCC26XX.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    UartLog.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/uartlog/UartLog.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    crc.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/nv/crc.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    nvocmp.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/nv/nvocmp.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    NVSSPI25X.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/drivers/nvs/NVSSPI25X.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    icall.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/icall/src/icall.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    icall_cc13x0.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/icall/src/icall_cc13x0.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    icall_user_config.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/icall/src/icall_user_config.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    ble_user_config.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/icall/app/ble_user_config.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    crc32.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/crc/crc32.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    flash_interface_ext_rtos_NVS.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/cc13xx/flash_interface/external/flash_interface_ext_rtos_NVS.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    oad.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/oad/cc13xx/oad.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    oad_image_header_app.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/oad/cc13xx/oad_image_header_app.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    oad_util.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/oad/cc13xx/oad_util.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    sensor_common.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/sensor_common.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    devinfoservice.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/dev_info/cc13xx/devinfoservice.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    gatt_uuid.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/host/gatt_uuid.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    gattservapp_util.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/host/gattservapp_util.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    batt_profile.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/batt_profile.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    button_profile.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/button_profile.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    hall_profile.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/hall_profile.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    hum_profile.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/hum_profile.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    led_profile.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/led_profile.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    light_profile.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/light_profile.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    accel_profile.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/accel_profile.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    temp_profile.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/temp_profile.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    batt_service.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/batt_service.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    button_service.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/button_service.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    hall_service.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/hall_service.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    hum_service.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/hum_service.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    led_service.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/led_service.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    light_service.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/light_service.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    accel_service.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/accel_service.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    temp_service.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/lpstk/temp_service.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    rom_init.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/rom/agama_r1/rom_init.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    CC1352R1_LAUNCHXL_fxns.obj: $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/boards/CC1352R1_LAUNCHXL/CC1352R1_LAUNCHXL_fxns.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    ble_user_config_stack.obj: ../../Startup/ble_user_config_stack.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    main.obj: ../../Startup/main.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    ti_radio_config.obj: ti_radio_config.c ti_drivers_config.h $(CONFIGPKG)/compiler.opt
    	@ echo Building $@
    	@ $(CC) $(CFLAGS) $< --cmd_file=$(CONFIGPKG)/compiler.opt --output_file=$@
    
    $(NAME).out: $(OBJECTS) $(CONFIGPKG)/linker.cmd
    	@ echo linking $@
    	@ $(LNK) $(CFLAGS) -z $(OBJECTS) -l$(CONFIGPKG)/linker.cmd $(LFLAGS) -o $(NAME).out
    
    clean:
    	@ echo Cleaning...
    	@ $(RM) $(OBJECTS) > $(DEVNULL) 2>&1
    	@ $(RM) $(NAME).out > $(DEVNULL) 2>&1
    	@ $(RM) $(NAME).map > $(DEVNULL) 2>&1
    	@ $(RMDIR) $(NAME) > $(DEVNULL) 2>&1
    	@ $(RM) ti_drivers_config.c ti_drivers_config.h ti_radio_config.c ti_radio_config.h > $(DEVNULL) 2>&1
    

    It's a bit confusing.

    1- Why our Makefile are different?

    2- According to your Makefile, could we really build a BLE CC13X2R1_LAUNCHXL example with CC26xx HAL?

    Sincerely,

  • I see the makefile you are referring to in the SDK directory (C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78\examples\rtos\CC1352R1_LAUNCHXL\ble5stack\multi_sensor\tirtos\ccs) but don't believe that is used for the build. When the project is imported into CCS, the .projectspec file in that same directory is used to create the project and its properties. Then CCS auto-generates its own makefile at build time. 

    I will forward this thread to the device/SDK experts so they can further clarify and answer your questions about this example. 

  • AartiG said:

    I see the makefile you are referring to in the SDK directory (C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78\examples\rtos\CC1352R1_LAUNCHXL\ble5stack\multi_sensor\tirtos\ccs) but don't believe that is used for the build. 

    Actually, without using CCS, with a basic shell interface, I should be able to run this command:

    cd C:\ti\simplelink_cc13x2_26x2_sdk_4_10_00_78
    make -C .\examples\rtos\CC1352R1_LAUNCHXL\ble5stack\multi_sensor\tirtos\ccs

    If not, you should remove the makefile

    AartiG said:

    When the project is imported into CCS, the .projectspec file in that same directory is used to create the project and its properties. Then CCS auto-generates its own makefile at build time. 

    Hum let's consider that the makefile is auto-generated. However:

    • where is the cc13xx HAL?

    C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc26xx/ is present

    C:/ti/simplelink_cc13x2_26x2_sdk_4_10_00_78/source/ti/common/cc13xx/ is NOT present. Why ?

    • Why your Makefile compile the multi_sensor example for the CC1352R MCU using cc26xx HAL?

    AartiG said:

    I will forward this thread to the device/SDK experts so they can further clarify and answer your questions about this example. 

    Yes please, I am looking forward to hearing from you

    Sincerely,

  • I created a new project by importing the BLE multi-sensor example.

    I am now able to successfully build the source code.

    Lesson learned:

    1. Initial Makefile are incorrect as they wrongly depend on the unexisting cc13xx directories
    2. Both CC26xx and CC13XX chipset are using common/cc26xx/ Hardware Abstraction Layer. It might be "nice" to rename them as: 

    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/common/hal/
    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/common/hal/
    • $(SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR)/source/ti/ble5stack/profiles/oad/hal/

    Thanks for your support