Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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: CCS makefile auto-generates incorrectly in v6.2 but worked in v5.5

Tool/software: Code Composer Studio

Currently on our Windows 2008 Server, our CCS v6.2 that we just upgraded to from CCS v5.5 is now incorrectly setting project paths in the auto-generated makefile. See attachment around line 1447.

7271.brokenMakefileConsoleText.txt

  • Here is the auto-generated broken makefile:

    brokenMakefile.txt
    ################################################################################
    # Automatically-generated file. Do not edit!
    ################################################################################
    
    SHELL = cmd.exe
    
    CG_TOOL_ROOT := C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_15.12.4.LTS
    
    GEN_OPTS__FLAG := --cmd_file="configPkg/compiler.opt"
    GEN_CMDS__FLAG := -l"configPkg/linker.cmd"
    
    ORDERED_OBJS += \
    "./ADCalculationCCM.obj" \
    "./CCMController.obj" \
    "./CircularArrayManager.obj" \
    "./CompressorControl.obj" \
    "./Logging.obj" \
    "./LoggingSnapshot.obj" \
    "./RealTimeClockWrapper.obj" \
    "./SensorMonitoring.obj" \
    "./VoltageSelection.obj" \
    "./faultsAndAlarms.obj" \
    "./idle.obj" \
    "./inputOutputHandler.obj" \
    "./intraFlowValve.obj" \
    "./monitors.obj" \
    "./motorCooling.obj" \
    "./powerdown.obj" \
    "./powerup.obj" \
    "./taskCANInputHandler.obj" \
    "./timer.obj" \
    "./timing.obj" \
    "./valve.obj" \
    "./valveManager.obj" \
    "./BuiltInTests/BIT.obj" \
    "./DataBaseManager/DBM.obj" \
    "./Motor/Motor.obj" \
    "./PIDController/PID.obj" \
    "./SystemStatus/InitialSystemStatus.obj" \
    "./UnitTest/adc_read_value.obj" \
    "./UnitTest/can_test.obj" \
    "./UnitTest/database_test.obj" \
    "./UnitTest/debugmotor.obj" \
    "./UnitTest/eventLoggingUnitTests.obj" \
    "./UnitTest/isvUnitTests.obj" \
    "./UnitTest/loggingUnitTests.obj" \
    "./UnitTest/realTimeClockWrapperUnitTests.obj" \
    "./UnitTest/snapshotLoggingUnitTests.obj" \
    "./UnitTest/systemStatusUnitTest.obj" \
    "./UnitTest/unitTests.obj" \
    "./Utilities/tivaUnlockUtility.obj" \
    "./bearing/AVCTables.obj" \
    "./bearing/Background.obj" \
    "./bearing/BearingCalibration.obj" \
    "./bearing/Fpga.obj" \
    "./bearing/TFMeasurement.obj" \
    "./bearing/avc.obj" \
    "./bearing/bearing.obj" \
    "./thermodynamics/pressToTemp.obj" \
    "../TMS320F28335.cmd" \
    "../rts2800_fpu32_fast_supplement.lib" \
    $(GEN_CMDS__FLAG) \
    -lrts2800_fpu32.lib \
    
    -include ../makefile.init
    
    RM := DEL /F
    RMDIR := RMDIR /S/Q
    
    # All of the sources participating in the build are defined here
    -include sources.mk
    -include subdir_vars.mk
    -include BuiltInTests/subdir_vars.mk
    -include DataBaseManager/subdir_vars.mk
    -include Motor/subdir_vars.mk
    -include PIDController/subdir_vars.mk
    -include SystemStatus/subdir_vars.mk
    -include UnitTest/subdir_vars.mk
    -include Utilities/subdir_vars.mk
    -include bearing/subdir_vars.mk
    -include thermodynamics/subdir_vars.mk
    -include subdir_rules.mk
    -include BuiltInTests/subdir_rules.mk
    -include DataBaseManager/subdir_rules.mk
    -include Motor/subdir_rules.mk
    -include PIDController/subdir_rules.mk
    -include SystemStatus/subdir_rules.mk
    -include UnitTest/subdir_rules.mk
    -include Utilities/subdir_rules.mk
    -include bearing/subdir_rules.mk
    -include thermodynamics/subdir_rules.mk
    -include objects.mk
    
    ifneq ($(MAKECMDGOALS),clean)
    ifneq ($(strip $(S_DEPS)),)
    -include $(S_DEPS)
    endif
    ifneq ($(strip $(S_UPPER_DEPS)),)
    -include $(S_UPPER_DEPS)
    endif
    ifneq ($(strip $(S62_DEPS)),)
    -include $(S62_DEPS)
    endif
    ifneq ($(strip $(C64_DEPS)),)
    -include $(C64_DEPS)
    endif
    ifneq ($(strip $(ASM_DEPS)),)
    -include $(ASM_DEPS)
    endif
    ifneq ($(strip $(CC_DEPS)),)
    -include $(CC_DEPS)
    endif
    ifneq ($(strip $(SV7A_DEPS)),)
    -include $(SV7A_DEPS)
    endif
    ifneq ($(strip $(S55_DEPS)),)
    -include $(S55_DEPS)
    endif
    ifneq ($(strip $(C67_DEPS)),)
    -include $(C67_DEPS)
    endif
    ifneq ($(strip $(CLA_DEPS)),)
    -include $(CLA_DEPS)
    endif
    ifneq ($(strip $(C??_DEPS)),)
    -include $(C??_DEPS)
    endif
    ifneq ($(strip $(CPP_DEPS)),)
    -include $(CPP_DEPS)
    endif
    ifneq ($(strip $(S??_DEPS)),)
    -include $(S??_DEPS)
    endif
    ifneq ($(strip $(C_DEPS)),)
    -include $(C_DEPS)
    endif
    ifneq ($(strip $(C62_DEPS)),)
    -include $(C62_DEPS)
    endif
    ifneq ($(strip $(CXX_DEPS)),)
    -include $(CXX_DEPS)
    endif
    ifneq ($(strip $(C++_DEPS)),)
    -include $(C++_DEPS)
    endif
    ifneq ($(strip $(ASM_UPPER_DEPS)),)
    -include $(ASM_UPPER_DEPS)
    endif
    ifneq ($(strip $(K_DEPS)),)
    -include $(K_DEPS)
    endif
    ifneq ($(strip $(C43_DEPS)),)
    -include $(C43_DEPS)
    endif
    ifneq ($(strip $(INO_DEPS)),)
    -include $(INO_DEPS)
    endif
    ifneq ($(strip $(S67_DEPS)),)
    -include $(S67_DEPS)
    endif
    ifneq ($(strip $(SA_DEPS)),)
    -include $(SA_DEPS)
    endif
    ifneq ($(strip $(S43_DEPS)),)
    -include $(S43_DEPS)
    endif
    ifneq ($(strip $(OPT_DEPS)),)
    -include $(OPT_DEPS)
    endif
    ifneq ($(strip $(PDE_DEPS)),)
    -include $(PDE_DEPS)
    endif
    ifneq ($(strip $(S64_DEPS)),)
    -include $(S64_DEPS)
    endif
    ifneq ($(strip $(C_UPPER_DEPS)),)
    -include $(C_UPPER_DEPS)
    endif
    ifneq ($(strip $(C55_DEPS)),)
    -include $(C55_DEPS)
    endif
    endif
    
    -include ../makefile.defs
    
    # Add inputs and outputs from these tool invocations to the build variables 
    EXE_OUTPUTS += \
    BMCC.out \
    
    EXE_OUTPUTS__QUOTED += \
    "BMCC.out" \
    
    BIN_OUTPUTS += \
    BMCC.hex \
    
    BIN_OUTPUTS__QUOTED += \
    "BMCC.hex" \
    
    
    # All Target
    all:
    	@$(MAKE) --no-print-directory pre-build
    	@$(MAKE) --no-print-directory main-build
    
    # Main-build Target
    main-build: $(OBJS) $(CMD_SRCS) $(LIB_SRCS) $(GEN_CMDS)
    	@$(MAKE) --no-print-directory -Onone "BMCC.out"
    
    dependents:
    	-cd C:/Program\ Files\ (x86)/Jenkins/jobs/3G\ Firmware\ Development\ Builds/workspace/src/HAL_TMS320F28335/Debug && $(MAKE) clean all
    	-cd C:/Program\ Files\ (x86)/Jenkins/jobs/3G\ Firmware\ Development\ Builds/workspace/src/shared/Debug && $(MAKE) clean all
    
    # Tool invocations
    BMCC.out: $(OBJS) $(CMD_SRCS) $(LIB_SRCS) $(GEN_CMDS) C:/Program\ Files\ (x86)/Jenkins/jobs/3G\ Firmware\ Development\ Builds/workspace/src/HAL_TMS320F28335/Debug/HAL_TMS320F28335.lib C:/Program\ Files\ (x86)/Jenkins/jobs/3G\ Firmware\ Development\ Builds/workspace/src/shared/Debug/shared.lib
    	@echo 'Building target: $@'
    	@echo 'Invoking: C2000 Linker'
    	"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_15.12.4.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 -O4 --opt_for_speed=2 -g --gcc --define="BMCC" --define="NO_DEBUG_GPIO" --define="xdc__strict" --define="CCM_HW_REVISION_D" --define="CCM_PROFILER" --define="CAN_INTERRUPT" --display_error_number --diag_warning=225 --printf_support=full --c_src_interlist --asm_listing -z -m"BMCC.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_15.12.4.LTS/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_15.12.4.LTS/include" --reread_libs --diag_suppress=16002 --xml_link_info="BMCC_linkInfo.xml" --rom_model -o "BMCC.out" $(ORDERED_OBJS)
    	@echo 'Finished building target: $@'
    	@echo ' '
    	@$(MAKE) --no-print-directory post-build
    
    BMCC.hex: $(EXE_OUTPUTS)
    	@echo 'Invoking: C2000 Hex Utility'
    	"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_15.12.4.LTS/bin/hex2000"  -o "BMCC.hex" $(EXE_OUTPUTS__QUOTED)
    	@echo 'Finished building: $@'
    	@echo ' '
    	@$(MAKE) --no-print-directory post-build
    
    # Other Targets
    clean:
    	-$(RM) $(GEN_MISC_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)$(GEN_FILES__QUOTED)$(BIN_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)$(GEN_CMDS__QUOTED)
    	-$(RMDIR) $(GEN_MISC_DIRS__QUOTED)
    	-$(RM) "ADCalculationCCM.d" "CCMController.d" "CircularArrayManager.d" "CompressorControl.d" "Logging.d" "LoggingSnapshot.d" "RealTimeClockWrapper.d" "SensorMonitoring.d" "VoltageSelection.d" "faultsAndAlarms.d" "idle.d" "inputOutputHandler.d" "intraFlowValve.d" "monitors.d" "motorCooling.d" "powerdown.d" "powerup.d" "taskCANInputHandler.d" "timer.d" "timing.d" "valve.d" "valveManager.d" "BuiltInTests\BIT.d" "DataBaseManager\DBM.d" "Motor\Motor.d" "PIDController\PID.d" "SystemStatus\InitialSystemStatus.d" "UnitTest\adc_read_value.d" "UnitTest\can_test.d" "UnitTest\database_test.d" "UnitTest\debugmotor.d" "UnitTest\eventLoggingUnitTests.d" "UnitTest\isvUnitTests.d" "UnitTest\loggingUnitTests.d" "UnitTest\realTimeClockWrapperUnitTests.d" "UnitTest\snapshotLoggingUnitTests.d" "UnitTest\systemStatusUnitTest.d" "UnitTest\unitTests.d" "Utilities\tivaUnlockUtility.d" "bearing\AVCTables.d" "bearing\Background.d" "bearing\BearingCalibration.d" "bearing\Fpga.d" "bearing\TFMeasurement.d" "bearing\avc.d" 
    	-$(RM) "bearing\bearing.d" "thermodynamics\pressToTemp.d" 
    	-$(RM) "ADCalculationCCM.obj" "CCMController.obj" "CircularArrayManager.obj" "CompressorControl.obj" "Logging.obj" "LoggingSnapshot.obj" "RealTimeClockWrapper.obj" "SensorMonitoring.obj" "VoltageSelection.obj" "faultsAndAlarms.obj" "idle.obj" "inputOutputHandler.obj" "intraFlowValve.obj" "monitors.obj" "motorCooling.obj" "powerdown.obj" "powerup.obj" "taskCANInputHandler.obj" "timer.obj" "timing.obj" "valve.obj" "valveManager.obj" "BuiltInTests\BIT.obj" "DataBaseManager\DBM.obj" "Motor\Motor.obj" "PIDController\PID.obj" "SystemStatus\InitialSystemStatus.obj" "UnitTest\adc_read_value.obj" "UnitTest\can_test.obj" "UnitTest\database_test.obj" "UnitTest\debugmotor.obj" "UnitTest\eventLoggingUnitTests.obj" "UnitTest\isvUnitTests.obj" "UnitTest\loggingUnitTests.obj" "UnitTest\realTimeClockWrapperUnitTests.obj" "UnitTest\snapshotLoggingUnitTests.obj" "UnitTest\systemStatusUnitTest.obj" "UnitTest\unitTests.obj" "Utilities\tivaUnlockUtility.obj" "bearing\AVCTables.obj" "bearing\Background.obj" "bearing\BearingCalibration.obj" 
    	-$(RM) "bearing\Fpga.obj" "bearing\TFMeasurement.obj" "bearing\avc.obj" "bearing\bearing.obj" "thermodynamics\pressToTemp.obj" 
    	-@echo 'Finished clean'
    	-@echo ' '
    
    pre-build:
    	-@echo 'Call VersionBuilder to create version.h file'
    	-C:/Program Files (x86)/Jenkins/jobs/3G Firmware Development Builds/workspace/src/BMCC/../preBuild.bat BMCC
    	-@echo ' '
    
    post-build:
    	-@echo 'Create flash image: Intel-HEX & C2Prog EHX'
    	-C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_15.12.4.LTS/bin/hex2000 -romwidth 16 -memwidth 16 -i -o BMCC.hex BMCC.out & "C:/Program Files (x86)/Jenkins/jobs/3G Firmware Development Builds/workspace/src/BMCC/../postBuild.bat" BMCC
    	-@echo ' '
    
    .PHONY: all clean dependents
    .SECONDARY: main-build pre-build post-build
    C:/Program\ Files\ (x86)/Jenkins/jobs/3G\ Firmware\ Development\ Builds/workspace/src/HAL_TMS320F28335/Debug/HAL_TMS320F28335.lib:
    C:/Program\ Files\ (x86)/Jenkins/jobs/3G\ Firmware\ Development\ Builds/workspace/src/shared/Debug/shared.lib:
    
    -include ../makefile.targets
    
    

  • Wesley,

    Sorry about the delayed reply. The issue appears to be related to white spaces in the workspace directory. There are some known build issues when there are spaces in directory and file names. Could you try importing the project into a directory without any spaces in the path and let us know if you encounter similar issues?

  • Hi AartiG,

    Yes, it works fine on our local machines where no whitespaces are present in the directory path, but it seems odd to us that our build server was able to have whitespaces in the directory path on CCSv5.5 and not when in CCSv6.2 was installed. Given your response and what I have seen in other posts, we will attempt to remove the whitespaces from our directory paths. We were hoping not to do this as it requires re-installations of applications on our server that are intertwined with other programs.

    Thanks,
    -Wes