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.

utils/subdir_rules.mk:6: *** target pattern contains no `%'. Stop.

Other Parts Discussed in Thread: TMS320F28035, CONTROLSUITE

i'm having a really frustrating time trying to use this (CCS 5.3), everything I try seems to be broken.

i'm getting this error trying to build various demo projects, can anyone tell me why?

Also, I can't work out how to create a new project. Is there any simple documentation or walkthroughs that are up-to-date?

  • P H said:
    i'm getting this error trying to build various demo projects

    Which target device/board are you working with?
    Can you provide more information on which projects you are trying to build? Were these proejcts originally created with an older version of CCS, such as v3.3 or v4? If so, do you know which version?

    If we have more information on the specific demo projects you are seeing this error with, we could try to reproduce it and see what is going on.

    P H said:
    Also, I can't work out how to create a new project. Is there any simple documentation or walkthroughs that are up-to-date?

    The CCS Online Help has a topic on this under Code Composer Studio Help->Tasks->Working with CCS Projects->Creating a new CCS Project. It is also covered in the CCSv5 Getting Started Guide.

  • Exact same problem.  It's nice to know the bugs are stable.

    Here is the error from the build:

    /Applications/ti/ccsv6/utils/bin/gmake -k all 

    Drivers/I2C/subdir_rules.mk:6: *** target pattern contains no '%'.  Stop.

    Line 6 seems to have a very odd file spec for I2C.c --  Drive 'C' is specified, and this is what got installed on my Mac.

    Here is the source for this file (and How does this file get generated and shy is it wrong?)

    :

    ################################################################################
    # Automatically-generated file. Do not edit!
    ################################################################################
    
    # Each subdirectory must supply rules for building sources it contributes
    Drivers/I2C/I2C.obj: /C:/ti/tirtos_simplelink_2_13_00_06/packages/ti/drivers/I2C.c $(GEN_OPTS) $(GEN_HDRS)
    	@echo 'Building file: $<'
    	@echo 'Invoking: ARM Compiler'
    	"/Applications/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl" --cmd_file="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/SensorTag/../../IAR/Application/CC2650/../../../CCS/Config/ccsCompilerDefines.bcfg"  -mv7M3 --code_state=16 --abi=eabi -me --include_path="/Applications/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/ICall/Include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Roles/CC26xx" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Roles" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Keys" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/DevInfo" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/SensorProfile/cc26xx" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/OAD/cc26xxST" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/common/cc26xx" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/applib/heap" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/hci" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/controller/CC26xx/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/host" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/CC2650TIRTOS" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/_common/cc26xx" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/osal/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/services/sdata" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/services/saddr" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/icall/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/icall/ports/tirtos" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/include" --include_path="/C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/interfaces" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/devices" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/CC26XXST_0120" --define=POWER_SAVING --define=GATT_TI_UUID_128_BIT --define=FEATURE_REGISTER_SERVICE --define=FEATURE_OAD --define=FACTORY_IMAGE --define=USE_ICALL --define=TI_DRIVERS_PIN_INCLUDED --define=TI_DRIVERS_I2C_INCLUDED --define=TI_DRIVERS_SPI_INCLUDED --define=GAPROLE_TASK_STACK_SIZE=550 --define=HEAPMGR_SIZE=2872 --define=ICALL_MAX_NUM_TASKS=8 --define=ICALL_MAX_NUM_ENTITIES=11 --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL --define=CC26XXWARE --define=CC26XX --diag_wrap=off --diag_suppress=48 --diag_warning=225 --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="Drivers/I2C/I2C.d" --obj_directory="Drivers/I2C" $(GEN_OPTS__FLAG) "$<"
    	@echo 'Finished building: $<'
    	@echo ' '
    
    Drivers/I2C/I2CCC26XX.obj: /C:/ti/tirtos_simplelink_2_13_00_06/packages/ti/drivers/i2c/I2CCC26XX.c $(GEN_OPTS) $(GEN_HDRS)
    	@echo 'Building file: $<'
    	@echo 'Invoking: ARM Compiler'
    	"/Applications/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/bin/armcl" --cmd_file="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/CCS/SensorTag/../../IAR/Application/CC2650/../../../CCS/Config/ccsCompilerDefines.bcfg"  -mv7M3 --code_state=16 --abi=eabi -me --include_path="/Applications/ti/ccsv6/tools/compiler/ti-cgt-arm_15.12.1.LTS/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/ICall/Include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Roles/CC26xx" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Roles" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/Keys" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/DevInfo" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/SensorProfile/cc26xx" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/Profiles/OAD/cc26xxST" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/common/cc26xx" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/applib/heap" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/hci" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/controller/CC26xx/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/host" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/CC2650TIRTOS" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/target/_common/cc26xx" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/hal/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/osal/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/services/sdata" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/services/saddr" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/icall/include" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/icall/ports/tirtos" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Components/ble/include" --include_path="/C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/interfaces" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/devices" --include_path="/Users/jim/ti-vendor/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SensorTag/CC26xx/Source/Application/Board_patch/CC26XXST_0120" --define=POWER_SAVING --define=GATT_TI_UUID_128_BIT --define=FEATURE_REGISTER_SERVICE --define=FEATURE_OAD --define=FACTORY_IMAGE --define=USE_ICALL --define=TI_DRIVERS_PIN_INCLUDED --define=TI_DRIVERS_I2C_INCLUDED --define=TI_DRIVERS_SPI_INCLUDED --define=GAPROLE_TASK_STACK_SIZE=550 --define=HEAPMGR_SIZE=2872 --define=ICALL_MAX_NUM_TASKS=8 --define=ICALL_MAX_NUM_ENTITIES=11 --define=xdc_runtime_Assert_DISABLE_ALL --define=xdc_runtime_Log_DISABLE_ALL --define=CC26XXWARE --define=CC26XX --diag_wrap=off --diag_suppress=48 --diag_warning=225 --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="Drivers/I2C/I2CCC26XX.d" --obj_directory="Drivers/I2C" $(GEN_OPTS__FLAG) "$<"
    	@echo 'Finished building: $<'
    	@echo ' '
    
    

  • That C:/ti should be your <home-directory>/ti for example /usr/joe/ti or the equivalent. Looks like it is generated for a Cygwin kind of system.
  • Jim Hinds said:

    Line 6 seems to have a very odd file spec for I2C.c --  Drive 'C' is specified, and this is what got installed on my Mac.

    Here is the source for this file (and How does this file get generated and shy is it wrong?)

    I think the last post in cc2650 compile and build problems on mac explains the reason for this, and it refers to Bluetooth Low Energy Software Stack (BLE-STACK) for how to remove the hard coded paths to drive 'C' on a Mac.

  • I "Like" your answer because it does point out a viable migration pathway.Big thanks.
    But, doesn't the fact that you must do a Complete Build on Windows mean there really isn't support for Macs to get up and running? A rhetorical question to relay to your Managerial Masters.
  • Hi,

    I am having the same issue with TMS320F28035 example codes when compiling in mac... This is the source..code line 6..

    DSP2803x_CodeStartBranch.obj: /C:/ti/controlSUITE/device_support/f2803x/v130/DSP2803x_common/source/DSP2803x_CodeStartBranch.asm

    Please tell how to resolve... thanks in advance

    Anusha