Part Number: CODECOMPOSER
Tool/software:
Hi experts,
My customer want to use makefile to build the project. However, they meet some issues:
This is the makefile:
################################################################################
shell = shell
################################################################################
PLATFORM = GR60
HARDWARE_VERSION = A
SOFTWARE_VERSION = 08_03_02
# the first two number means different stage 01:E2 02:E3 03:E4 04:E4U 05:TT 06:PP1 07:PP2 08:J1
# the second two number means different HW versions 00:V02 01:V03 02:V04 or V05 03:V06 etc.
# the third two number means different SW mini versions
CUT_FLAG = CUT
HIL_FLAG = HIL
BENCH_FLAG = BENCH
VEHICLE_FLAG = VEHICLE
EM_FLAG = EM
BENCH_11D75_FLAG = BENCH_11D75
VEHICLE_11D75_FLAG = VEHICLE_11D75
VEHICLE_11D75_NOIMMO_FLAG = VEHICLE_11D75_NOIMMO
PROJ_DIR=$(CURDIR)
#Configure the Core Type. This name shall be the directory name inside folders corresponding layer names and the names are case sensitive
# CORETYP_MAIN:=Tricore
#Configure the tool chain for each core type
TOOL_CHAIN_MAIN:=Gnuc
#Configure the rule for using the selected files for compilation or discarding some of the files
#eg1: USE_FILE_PATTERN= *OS/* will include only the folders below OS to be used for building the project
#eg2: DISCARD_FILE_PATTERN= *OS/* will exclude all the folders below OS
# Note: When USE_FILE_PATTERN is used only the files matching the pattern is used all others will be discarded
# Note: When both USE_FILE_PATTERN and DISCARD_FILE_PATTERN are used DISCARD_FILE_PATTERN has priority
# Note: If multiple patterns are to be defined in USE_FILE_PATTERN and DISCARD_FILE_PATTERN separate them with comma (,)
#Name of the TOOL_CHAIN_SECOND is NOT FLEXIBLE, is always fixed to ToolChain_SecCore
#The file names CfgToolChain_SecCore.mk and Lcf_ToolChain_SecCore.lsl can not be changed
#User need to update the content depending on the Tool chain specific requirement
# TOOLCHAIN_DIR_MAIN:=C:/HighTec/toolchains/tricore/v4.9.4.1
#CCS_TOOLCHAIN_DIR_MAIN:=D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS
#CCS_LIB:=D:/ti/c2000/C2000Ware_DigitalPower_SDK_5_05_01_00/libraries/sfra/lib
#Build command ${CCS_UTILS_DIR}/bin/gmake CCS_UTILS_DIR = D:/ti/ccs1270/ccs/utils
#D:/ti/ccs1270/ccs/utils/bin/gmake" -k -j 8 all -O
#CG_TOOL_AR = D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/ar2000
#CG_TOOL_ROOT := D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS
CMD_FIND=$(TOOLCHAIN_DIR_MAIN)/bin/find
# External source folders ##################
# External Source folders could be added here either as, relative path or, absolute path
# if there are multiple such folders, separate them with comma (,)
#Display the build commands
DISPLAY_BUILD_CMD:=no # yes or no
#Enable multiprocess
ENABLE_MULTI_PROCESS:=no # yes or no
#Create Library output without linking
CREATE_LIB_NO_EXE:=no #no-Create only executables, yes-Create only library
#Create additional output file formats
#CREATE_EXE_HEX_FILES:=yes #Create executable files in intel hex formats
#CREATE_EXE_SREC_FILES:=yes #Create executable files in motorola S-record formats
#Environment variables. These 6 variables below can be changed with environment variable setting in the shell
COMPILER_DIR_MAIN = $(CCS_TOOLCHAIN_DIR_MAIN)
CREATE_OUT_HEX_FILES = $(CREATE_EXE_HEX_FILES)
CREATE_OUT_SREC_FILES = $(CREATE_EXE_SREC_FILES)
ifeq ($(strip $(DISPLAY_BUILD_CMD)),yes)
EXPOSE=
else
EXPOSE=@
endif
ifeq ($(strip $(ENABLE_MULTI_PROCESS)),yes)
MULTI_PROC=-j4
else
MULTI_PROC=
endif
ifeq ($(strip $(CREATE_LIB_NO_EXE)),yes)
BUILD_TARGET=Archive
else
BUILD_TARGET=ExeTargets
endif
##########################################################################
# The paths of project
##########################################################################
BIN_DIR_PROJECT := ./_bin
BIN_SIGN_DIR_PROJECT := ./_bin/sign
BIN_SIGN_CPRS_DIR_PROJECT := ./_bin/sign_cprs
OBJ_DIR_PROJECT := ./_gen
OBJ_DIR_PROJECT_BSW := ./_gen/Bsw
OBJ_DIR_PROJECT_ASW := ./_gen/Asw
OBJ_DIR_PROJECT_INTEGR := ./_gen/Integration
OBJ_DIR_PROJECT_DEVICE := ./_gen/device
OBJ_DIR_PROJECT_LIB := ./_gen/libraries
LOG := ./_log
##########################################################################
# The path of source
##########################################################################
SRC_DIR_PROJECT_BSW := ./Bsw
SRC_DIR_PROJECT_ASW := ./Asw/Src
SRC_DIR_PROJECT_INTEGR := ./Integration
SRC_DIR_PROJECT_DEVICE :=./device
SRC_DIR_PROJECT_LIB :=./libraries
##########################################################################
# The path of lib
##########################################################################
#the paths of public lib Modules
LibPath := ./lib
##########################################################################
# The path of LinkerScripts
##########################################################################
#the paths of Linker file
SCRIPTS_DIR_PROJECT_LINKER := D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x/device/28p65x_TIDA_01606_flash_lnk.cmd
##########################################################################
# All header and source include path (contain child path)
##########################################################################
#BswPath = $(wildcard $(CMD_FIND) $(SRC_DIR_PROJECT_BSW) -type d -print)
BswPath = $(wildcard find $(SRC_DIR_PROJECT_BSW) -type d -print)
AswPath = $(wildcard find $(SRC_DIR_PROJECT_ASW) -type d -print)
IntegrPath = $(wildcard find $(SRC_DIR_PROJECT_INTEGR) -type d -print)
DevicePath = $(wildcard find $(SRC_DIR_PROJECT_DEVICE) -type d -print)
LibraryPath = $(wildcard find $(SRC_DIR_PROJECT_LIB) -type d -print)
# Defining the binary target names #############################################
OUT_BIN_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION).out
HEX_BIN_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION).hex
MAP_FILE_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION).map
HEX_BIN_CUT_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_$(CUT_FLAG).hex
HEX_BIN_CUT_HIL_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_$(CUT_FLAG)_$(HIL_FLAG).hex
HEX_BIN_CUT_BENCH_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_$(CUT_FLAG)_$(BENCH_FLAG).hex
HEX_BIN_CUT_VEHICLE_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_$(CUT_FLAG)_$(VEHICLE_FLAG).hex
HEX_BIN_CUT_EM_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_$(CUT_FLAG)_$(EM_FLAG).hex
HEX_BIN_CUT_BENCH_11D75_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_$(CUT_FLAG)_$(BENCH_11D75_FLAG).hex
HEX_BIN_CUT_VEHICLE_11D75_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_$(CUT_FLAG)_$(VEHICLE_11D75_FLAG).hex
HEX_BIN_CUT_VEHICLE_11D75_NOIMMO_PROJECT = $(BIN_DIR_PROJECT)/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_$(CUT_FLAG)_$(VEHICLE_11D75_NOIMMO_FLAG).hex
HEADERS = -I D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include \
-I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\include\machine \
-I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\include\stlport \
-I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\include\sys \
-I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\include\xlocale \
-I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00 \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\sfra \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\FPUfastRTS \
-I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\c2000ware\libraries\math\CLAmath\c28\lib \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\CLAmath \
-I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\lib \
-I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\c2000ware\libraries\calibration\hrpwm\f28p65x\lib \
-I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\c2000ware\driverlib\f28p65x\driverlib \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\MCU_ert_rtw \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\_sharedutils \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\SWC_ISP \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\SWC_MDC \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\SWC_OSP \
-I D:\ti\sysconfig_1.24.0 \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\device\28p65x_TIDA_01606_flash_lnk.cmd \
-I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src \
$(addprefix -I,$(BswPath)) \
$(addprefix -I,$(AswPath)) \
$(addprefix -I,$(IntegrPath)) \
$(addprefix -I,$(DevicePath)) \
$(addprefix -I,$(LibraryPath))
# HEADERS = -I D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include \
# -I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\include\machine \
# -I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\include\stlport \
# -I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\include\sys \
# -I D:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\include\xlocale \
# -I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00 \
# -I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\libraries\sfra\lib \
# -I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\c2000ware\libraries\math\FPUfastRTS\c28\lib \
# -I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\c2000ware\libraries\math\CLAmath\c28\lib \
# -I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\c2000ware\libraries\boot_rom\f28P65x\rev0\rom_symbol_libs\cpu1\claDataROM\lib \
# -I D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib \
# -I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\c2000ware\libraries\calibration\hrpwm\f28p65x\lib \
# -I D:\ti\c2000\C2000Ware_DigitalPower_SDK_5_05_01_00\c2000ware\driverlib\f28p65x\driverlib \
# -I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\MCU_ert_rtw \
# -I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\_sharedutils \
# -I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\SWC_ISP \
# -I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\SWC_MDC \
# -I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src\SWC_OSP \
# -I D:\ti\sysconfig_1.24.0 \
# -I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\device\28p65x_TIDA_01606_flash_lnk.cmd \
# -I D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Asw\Src \
# $(addprefix -I,$(BswPath)) \
# $(addprefix -I,$(AswPath)) \
# $(addprefix -I,$(IntegrPath)) \
# $(addprefix -I,$(DevicePath)) \
# $(addprefix -I,$(LibraryPath))
#Start################ Configuration for MAIN Core #######################
#user defined include paths start with -I
USER_C_INCLUDES:=$(HEADERS)
USER_ASM_INCLUDES:=-I.
# Compiler options
#-fr=D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/_gen --obj_directory,-fr=dir Object file directory (default is .)
CC_OPTIONS_DEFINE = --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device/28p65x_TIDA_01606_flash_lnk.cmd" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -O3 --opt_for_speed=5 --fp_mode=relaxed --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/Integration" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/Asw/Src" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/Asw/Src/_sharedutils" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/Asw/Src/MCU_ert_rtw" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/Asw/Src/SWC_OSP" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/Asw/Src/SWC_ISP" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/Asw/Src/SWC_MDC" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device/driverlib" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/DCL" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/CLAmath" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/power_measurement" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/sfra" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/spll" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/transforms" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/utilities/dlog" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/utilities/rampgen" --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/FPUfastRTS" --include_path="D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --advice:performance=all --define=_DEBUG --define=_TI_EABI_ --define=_FLASH --define=F28x_DEVICE --define=CPU1 --define=LARGE_MODEL --define=CLA_DEBUG=1 --symdebug:dwarf_version=3 --float_operations_allowed=32 --diag_suppress=173 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --include_path="D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/Release/syscfg"
CC_OPTIONS_PROJECT = $(CC_OPTIONS_DEFINE)
# Assembler options
ASM_OPTIONS_ALL = -k $(CC_OPTIONS_PROJECT)
# Linker options
LD_OPTIONS_PROJECT = --run_linker -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -O3 --opt_for_speed=5 --fp_mode=relaxed --advice:performance=all --define=_DEBUG --define=_TI_EABI_ --define=_FLASH --define=F28x_DEVICE --define=CPU1 --define=LARGE_MODEL --define=CLA_DEBUG=1 --symdebug:dwarf_version=3 --float_operations_allowed=32 --diag_suppress=173 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\main_gr60_f28p65x.map" --heap_size=0x200 --stack_size=0x400 --warn_sections -i"D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device" -i"D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device/driverlib/ccs/Release" -i"D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/sfra" -i"D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/CLAmath" -i"D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/libraries/FPUfastRTS" -i"D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\main_gr60_f28p65x_linkInfo.xml" --entry_point=code_start --rom_model -z"D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device/28p65x_TIDA_01606_flash_lnk.cmd" -i"D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include"
# Library configurationsi
# Include standard libraries:-
# Note: There are no configurations required for including standard libraries for this build environment.
LIB_DIR_STANDARD=
LIBS_STANDARD=
# Include custom (user made) libraries:-
# Note: Library must be with prefix "Lib" and with extension .a !!!!
# Example to include custom library with name "LibGnuc_IfxStdOutTft_Tricore.a"
# Place the library at the folder <Project>/1_ToolEnv/1_CustomLibs
# Add following lines to Configure the required build variables
# LIB_DIR+= -Wl,-L./1_ToolEnv/1_CustomLibs
# LIBS+= -lGnuc_IfxStdOutTft_Tricore (Note that, Lib is replaced by -l and .a is omitted)
#LIB_DIR += -Wl,-L./lib
#D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\sfra\sfra_f32_tmu_eabi.lib
#D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\FPUfastRTS\rts2800_fpu32_fast_supplement_eabi.lib
#D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\CLAmath\f28P65xCPU1_CLADATAROM_Symbols_fpu32.lib
#D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\CLAmath\cla1_math_library_datarom_fpu32_eabi.lib
LIBS += -lD:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\sfra\sfra_f32_tmu_eabi.lib \
-lD:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\FPUfastRTS\rts2800_fpu32_fast_supplement_eabi.lib \
-lD:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\CLAmath\f28P65xCPU1_CLADATAROM_Symbols_fpu32.lib \
-lD:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\libraries\CLAmath\cla1_math_library_datarom_fpu32_eabi.lib \
-lD:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device/driverlib/ccs/Release/driverlib.lib \
-lD:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/libc.a\
-lD:\ti\ccs1270\ccs\tools\compiler\ti-cgt-c2000_22.6.1.LTS\lib\rts2800_fpu32_eabi.lib \
#-llibc.a \
# LIBS += -lsfra_f32_tmu_eabi.lib \
# -lrts2800_fpu32_fast_supplement_eabi.lib \
# -lf28P65xCPU1_CLADATAROM_Symbols_fpu32.lib \
# -lcla1_math_library_datarom_fpu32_eabi.lib \
# -lD:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device/driverlib/ccs/Release/driverlib.lib \
# -lD:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device/driverlib/ccs/Debug/driverlib.lib \
# -lD:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/libc.a \
#-llibc.a \
#End################## Configuration for MAIN Core #######################
ifeq ("$(TOOL_CHAIN_MAIN)","Gnuc")
###########################Start of Gnuc tool chain settings #######################
#Make commands Gnuc
CC:=$(EXPOSE)"$(COMPILER_DIR_MAIN)/bin/cl2000"
AS:=$(EXPOSE)"$(COMPILER_DIR_MAIN)/bin/cl2000"
LD:=$(EXPOSE)"$(COMPILER_DIR_MAIN)/bin/cl2000"
AR:=$(EXPOSE)"$(COMPILER_DIR_MAIN)/bin/ar2000"
HX:=$(EXPOSE)"$(COMPILER_DIR_MAIN)/bin/hex2000"
# C Compiler Options
CC_OPTS_PROJECT= $(USER_C_INCLUDES) $(CC_OPTIONS_PROJECT)
#Assembler options
ASM_OPTS= $(ASM_OPTIONS_ALL)
#Linker command options
LD_OPTS_PROJECT = $(LD_OPTIONS_PROJECT) $(LIBS)
#Hex command options
HEX_OPTS_PROJECT = --memwidth=16 --romwidth=16 --diag_wrap=off --intel -o
##########################End of Gnuc tool chain settings #########################
endif
###################################################################################
# Add objects
###################################################################################
# Add Objects of Bsw Modules
#SOURCE_FILES_BSW = $(shell $(CMD_FIND) $(BswPath) -maxdepth 1 \( -name *.c -o -name *.asm \))
SOURCE_FILES_BSW = $(shell find $(BswPath) -maxdepth 10 \( -name *.c -o -name *.asm \))
OBJ_FILES_BSW += $(patsubst %.c,$(OBJ_DIR_PROJECT_BSW)/%.obj,$(patsubst %.asm,$(OBJ_DIR_PROJECT_BSW)/%.obj,$(notdir $(SOURCE_FILES_BSW))))
#OBJ_FILES_BSW += $(patsubst %.c,$(OBJ_DIR_PROJECT_BSW)/%.obj,$(patsubst %.asm,$(OBJ_DIR_PROJECT_BSW)/%.obj, $(SOURCE_FILES_BSW)))
# Add Objects of Asw Modules
SOURCE_FILES_ASW = $(shell find $(AswPath) -maxdepth 10 \( -name *.c -o -name *.asm \))
OBJ_FILES_ASW += $(patsubst %.c,$(OBJ_DIR_PROJECT_ASW)/%.obj,$(patsubst %.asm,$(OBJ_DIR_PROJECT_ASW)/%.obj,$(notdir $(SOURCE_FILES_ASW))))
# Add Objects of Integration Modules
SOURCE_FILES_INTEGR = $(shell find $(IntegrPath) -maxdepth 10 \( -name *.c -o -name *.asm \))
OBJ_FILES_INTEGR += $(patsubst %.c,$(OBJ_DIR_PROJECT_INTEGR)/%.obj,$(patsubst %.asm,$(OBJ_DIR_PROJECT_INTEGR)/%.obj,$(notdir $(SOURCE_FILES_INTEGR))))
# Add Objects of Device Modules
SOURCE_FILES_DEVICE = $(shell find $(DevicePath) -maxdepth 1 \( -name *.c -o -name *.asm \))
OBJ_FILES_DEVICE += $(patsubst %.c,$(OBJ_DIR_PROJECT_DEVICE)/%.obj,$(patsubst %.asm,$(OBJ_DIR_PROJECT_DEVICE)/%.obj,$(notdir $(SOURCE_FILES_DEVICE))))
# Add Objects of Libraries Modules
SOURCE_FILES_LIBRARY = $(shell find $(LibraryPath) -maxdepth 10 \( -name *.c -o -name *.asm \))
OBJ_FILES_LIBRARY += $(patsubst %.c,$(OBJ_DIR_PROJECT_LIB)/%.obj,$(patsubst %.asm,$(OBJ_DIR_PROJECT_LIB)/%.obj,$(notdir $(SOURCE_FILES_LIBRARY))))
# All Objects file
OBJ_FILES_PROJECT = $(OBJ_FILES_BSW) $(OBJ_FILES_ASW) $(OBJ_FILES_INTEGR) $(OBJ_FILES_DEVICE) $(OBJ_FILES_LIBRARY) D:/02_software_test/26_GR60/20250723/main_gr60_f28p65x/device/28p65x_TIDA_01606_flash_lnk.cmd
OBJ_FILES_PROJECT_T = D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x\Release\libraries\sfra\device.d
#$(OBJ_FILES_BSW) $(OBJ_FILES_ASW) $(OBJ_FILES_INTEGR) $(OBJ_FILES_DEVICE) $(OBJ_FILES_LIBRARY)
# All Denpendency file
DEP_FILES_PROJECT = $(patsubst %.obj,$(OBJ_DIR_PROJECT)/%.d,$(notdir $(OBJ_FILES_PROJECT)))
##############################################################################
# Bsw targets
##############################################################################
#vpath %.c $(BswPath)
#vpath %.c $(shell find $(BswPath) -type d | tr '\n' ':')
#vpath %.c $(shell find $(BswPath) \( -name *.c -o -name *.asm \))
# vpath %.c $(BswPath)
SUBDIRS := $(shell find $(BswPath) -type d)
vpath %.c $(subst $(space),:,$(SUBDIRS))
$(OBJ_DIR_PROJECT_BSW)/%.obj: %.c
@echo 'Building file1111111111: $@'
#$(if $(wildcard $@),,@mkdir $(subst /,\,$@))
#@echo 'Building file: $<'
$(CC) $(CC_OPTS_PROJECT) -fr=_gen/Bsw -c "$<" -o "$@"
#@echo ' '
vpath %.asm $(subst $(space),:,$(SUBDIRS))
$(OBJ_DIR_PROJECT_BSW)/%.obj: %.asm
@echo 'Building file: $<'
$(AS) $(ASM_OPTS) "$<" -fr=_gen/Bsw -c "$<" -o "$@"
@echo ' '
##############################################################################
# Asw targets
##############################################################################
SUBDIRS := $(shell find $(AswPath) -type d)
vpath %.c $(subst $(space),:,$(SUBDIRS))
$(OBJ_DIR_PROJECT_ASW)/%.obj: %.c
@echo 'Building file: $<'
$(CC) $(CC_OPTS_PROJECT) -fr=_gen/Asw -c "$<" -o "$@"
@echo ' '
vpath %.asm $(subst $(space),:,$(SUBDIRS))
$(OBJ_DIR_PROJECT_ASW)/%.obj: %.asm
@echo 'Building file: $<'
$(AS) $(ASM_OPTS) "$<" -fr=_gen/Asw -c "$<" -o "$@"
@echo ' '
##############################################################################
# Integration targets
##############################################################################
SUBDIRS := $(shell find $(IntegrPath) -type d)
vpath %.c $(subst $(space),:,$(SUBDIRS))
$(OBJ_DIR_PROJECT_INTEGR)/%.obj: %.c
@echo 'Building file: $<'
$(CC) $(CC_OPTS_PROJECT) -fr=_gen/Integration -c "$<" -o "$@"
@echo ' '
vpath %.asm $(subst $(space),:,$(SUBDIRS))
$(OBJ_DIR_PROJECT_INTEGR)/%.obj: %.asm
@echo 'Building file: $<'
$(AS) $(ASM_OPTS) "$<" -fr=_gen/Integration -c "$<" -o "$@"
@echo ' '
##############################################################################
# Device targets
##############################################################################
#SUBDIRS := $(shell find $(DevicePath) -type d)
#vpath %.c $(subst $(space),:,$(SUBDIRS))
vpath %.c $(DevicePath)
$(OBJ_DIR_PROJECT_DEVICE)/%.obj: %.c
@echo 'Building file: $<'
$(CC) $(CC_OPTS_PROJECT) -c -fr=_gen/device "$<" -o "$@"
@echo ' '
#vpath %.asm $(subst $(space),:,$(SUBDIRS))
vpath %.asm $(DevicePath)
$(OBJ_DIR_PROJECT_DEVICE)/%.obj: %.asm
@echo 'Building file: $<'
$(AS) $(ASM_OPTS) "$<" -fr=_gen/device "$<" -o "$@"
@echo ' '
##############################################################################
# Libraries targets
##############################################################################
#vpath %.asm $(LibraryPath)
SUBDIRS := $(shell find $(LibraryPath) -type d)
vpath %.c $(subst $(space),:,$(SUBDIRS))
$(OBJ_DIR_PROJECT_LIB)/%.obj: %.c
@echo 'Building file: $<'
$(CC) $(CC_OPTS_PROJECT) -fr=_gen/libraries -c "$<" -o "$@"
@echo ' '
#vpath %.asm $(LibraryPath)
vpath %.asm $(subst $(space),:,$(SUBDIRS))
$(OBJ_DIR_PROJECT_LIB)/%.obj: %.asm
@echo 'Building file: $<'
$(AS) $(ASM_OPTS) "$<" -fr=_gen/libraries -c "$<" -o "$@"
@echo ' '
-include $(DEP_FILES_PROJECT)
##############################################################################
# Make commands
##############################################################################
.PHONY: all
build: dirchk $(OUT_BIN_PROJECT) \
all: dirchk $(OUT_BIN_PROJECT) $(HEX_BIN_PROJECT) DelSubGrp DelSubGrpFusa\
./Utilities/A2L/Bsw.a2l ./_bin/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION).a2l \
./_bin/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_UPDATE.a2l \
./_bin/$(PLATFORM)_$(HARDWARE_VERSION)_$(SOFTWARE_VERSION)_UPDATE_0x8.a2l \
$(HEX_BIN_CUT_PROJECT) \
$(HEX_BIN_CUT_BENCH_PROJECT) \
$(HEX_BIN_CUT_HIL_PROJECT) \
$(HEX_BIN_CUT_VEHICLE_PROJECT) \
$(HEX_BIN_CUT_BENCH_11D75_PROJECT) \
$(HEX_BIN_CUT_EM_PROJECT) \
$(HEX_BIN_CUT_VEHICLE_11D75_PROJECT) \
$(HEX_BIN_CUT_VEHICLE_11D75_NOIMMO_PROJECT) \
SignAndRename \
SignAndRenameCprs \
dirchk:
$(if $(wildcard $(LOG)),,@mkdir $(subst /,\,$(LOG)))
$(if $(wildcard $(OBJ_DIR_PROJECT)),,@mkdir $(subst /,\,$(OBJ_DIR_PROJECT)))
$(if $(wildcard $(OBJ_DIR_PROJECT_BSW)),,@mkdir $(subst /,\,$(OBJ_DIR_PROJECT_BSW)))
$(if $(wildcard $(OBJ_DIR_PROJECT_ASW)),,@mkdir $(subst /,\,$(OBJ_DIR_PROJECT_ASW)))
$(if $(wildcard $(OBJ_DIR_PROJECT_INTEGR)),,@mkdir $(subst /,\,$(OBJ_DIR_PROJECT_INTEGR)))
$(if $(wildcard $(OBJ_DIR_PROJECT_DEVICE)),,@mkdir $(subst /,\,$(OBJ_DIR_PROJECT_DEVICE)))
$(if $(wildcard $(OBJ_DIR_PROJECT_LIB)),,@mkdir $(subst /,\,$(OBJ_DIR_PROJECT_LIB)))
$(if $(wildcard $(BIN_DIR_PROJECT)),,@mkdir $(subst /,\,$(BIN_DIR_PROJECT)))
$(OUT_BIN_PROJECT): $(OBJ_FILES_PROJECT)
@echo 'Start Linking Target: $@ '
#$(LD) $(LD_OPTS_PROJECT) -o "test.out" $(OBJ_FILES_PROJECT)
$(LD) $(LD_OPTS_PROJECT) -i $(OBJ_FILES_PROJECT_T) -o $@
#@echo 'Buliding $@ $(HEX_BIN_PROJECT) ...Done'
$(HEX_BIN_PROJECT): $(OUT_BIN_PROJECT)
$(HX) $(OUT_BIN_PROJECT) $(HEX_OPTS_PROJECT) $(HEX_BIN_PROJECT)
This is the error:
D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x>"D:/ti/ccs1270/ccs/utils/bin/gmake" -k -j 8 all -O 'Building file1111111111: _gen/Bsw/Cdd_Adc.obj' >> WARNING: object file specified, but linking not enabled [Cdd_Adc.c] 'Building file1111111111: _gen/Bsw/Cdd_Can.obj' >> WARNING: object file specified, but linking not enabled [Cdd_Can.c] 'Building file1111111111: _gen/Bsw/Cdd_Cla.obj' >> WARNING: object file specified, but linking not enabled [Cdd_Cla.c] 'Building file1111111111: _gen/Bsw/Cdd_Gpio.obj' >> WARNING: object file specified, but linking not enabled [Cdd_Gpio.c] 'Building file1111111111: _gen/Bsw/Cdd_Sci.obj' >> WARNING: object file specified, but linking not enabled [Cdd_Sci.c] 'Building file1111111111: _gen/Bsw/Cdd_Xbar.obj' >> WARNING: object file specified, but linking not enabled [Cdd_Xbar.c] 'Building file1111111111: _gen/Bsw/Cdd_CanCfg.obj' >> WARNING: object file specified, but linking not enabled [Cdd_CanCfg.c] "./Bsw/Cdd/Can/Cdd_CanCfg.c", line 86: warning #225-D: function "XcpSendCallBack" declared implicitly 'Building file1111111111: _gen/Bsw/Cdd_Epwm.obj' >> WARNING: object file specified, but linking not enabled [Cdd_Epwm.c] 'Building file1111111111: _gen/Bsw/Cdd_Ecap.obj' >> WARNING: object file specified, but linking not enabled [Cdd_Ecap.c] 'Building file1111111111: _gen/Bsw/xcp_par.obj' >> WARNING: object file specified, but linking not enabled [xcp_par.c] 'Building file1111111111: _gen/Bsw/XcpBasic.obj' >> WARNING: object file specified, but linking not enabled [XcpBasic.c] 'Building file1111111111: _gen/Bsw/_xcp_appl.obj' >> WARNING: object file specified, but linking not enabled [_xcp_appl.c] 'Building file: ./Asw/Src/MCU_ert_rtw/ISP_VAR_Part.c' >> WARNING: object file specified, but linking not enabled [ISP_VAR_Part.c] ' ' 'Building file1111111111: _gen/Bsw/xcp_c2000.obj' >> WARNING: object file specified, but linking not enabled [xcp_c2000.c] 'Building file: ./Asw/Src/MCU_ert_rtw/OSP_VAR_Part.c' >> WARNING: object file specified, but linking not enabled [OSP_VAR_Part.c] ' ' 'Building file: ./Asw/Src/MCU_ert_rtw/MCU.c' >> WARNING: object file specified, but linking not enabled [MCU.c] ' ' 'Building file: ./Asw/Src/MCU_ert_rtw/MDC_VAR_Part.c' >> WARNING: object file specified, but linking not enabled [MDC_VAR_Part.c] ' ' 'Building file: ./Asw/Src/SWC_ISP/MCU_ISP.c' >> WARNING: object file specified, but linking not enabled [MCU_ISP.c] ' ' 'Building file: ./Asw/Src/SWC_ISP/SWC_ISP.c' >> WARNING: object file specified, but linking not enabled [SWC_ISP.c] ' ' 'Building file: ./Asw/Src/SWC_MDC/MDC_VAR.c' >> WARNING: object file specified, but linking not enabled [MDC_VAR.c] ' ' 'Building file: ./Asw/Src/SWC_OSP/MCU_OSP.c' >> WARNING: object file specified, but linking not enabled [MCU_OSP.c] ' ' 'Building file: ./Asw/Src/SWC_OSP/SWC_OSP.c' >> WARNING: object file specified, but linking not enabled [SWC_OSP.c] ' ' 'Building file: ./Asw/Src/SWC_OSP/SWC_OSP_data.c' >> WARNING: object file specified, but linking not enabled [SWC_OSP_data.c] ' ' 'Building file: ./Asw/Src/SWC_MDC/MCU_MDC.c' >> WARNING: object file specified, but linking not enabled [MCU_MDC.c] "./Asw/Src/SWC_MDC/MCU_MDC.c", line 66: warning #552-D: variable "local_SignalCopy" was set but never used "./Asw/Src/SWC_MDC/MCU_MDC.c", line 259: warning #552-D: variable "local_SignalCopy1" was set but never used "./Asw/Src/SWC_MDC/MCU_MDC.c", line 260: warning #552-D: variable "local_SignalCopy3" was set but never used "./Asw/Src/SWC_MDC/MCU_MDC.c", line 261: warning #552-D: variable "local_SignalCopy4" was set but never used "./Asw/Src/SWC_MDC/MCU_MDC.c", line 262: warning #552-D: variable "local_SignalCopy5" was set but never used "./Asw/Src/SWC_MDC/MCU_MDC.c", line 263: warning #552-D: variable "local_SignalCopy6" was set but never used ' ' 'Building file: ./Asw/Src/SWC_MDC/SWC_MDC_data.c' >> WARNING: object file specified, but linking not enabled [SWC_MDC_data.c] ' ' 'Building file: ./Asw/Src/SWC_MDC/SWC_MDC.c' >> WARNING: object file specified, but linking not enabled [SWC_MDC.c] ' ' 'Building file: ./Integration/Cpu1_Main.c' >> WARNING: object file specified, but linking not enabled [Cpu1_Main.c] ' ' 'Building file: ./device/f28p65x_codestartbranch.asm' >> WARNING: object file specified, but linking not enabled [f28p65x_codestartbranch.asm] [f28p65x_codestartbranch.asm] ' ' 'Building file: ./libraries/DCL/DCL_DF22_C1.asm' >> WARNING: object file specified, but linking not enabled [DCL_DF22_C1.asm] [DCL_DF22_C1.asm] ' ' 'Building file: ./libraries/DCL/DCL_PI_C1.asm' >> WARNING: object file specified, but linking not enabled [DCL_PI_C1.asm] [DCL_PI_C1.asm] ' ' 'Building file: ./libraries/DCL/DCL_PI_C4.asm' >> WARNING: object file specified, but linking not enabled [DCL_PI_C4.asm] [DCL_PI_C4.asm] ' ' 'Building file: ./Integration/board_config.c' >> WARNING: object file specified, but linking not enabled [board_config.c] ' ' 'Building file: ./libraries/DCL/DCL_PI_L1.asm' >> WARNING: object file specified, but linking not enabled [DCL_PI_L1.asm] [DCL_PI_L1.asm] ' ' 'Building file: ./Integration/h_data.c' >> WARNING: object file specified, but linking not enabled [h_data.c] ' ' 'Building file: ./device/device.c' >> WARNING: object file specified, but linking not enabled [device.c] ' ' 'Building file: ./Integration/Cpu1_Task.c' >> WARNING: object file specified, but linking not enabled [Cpu1_Task.c] ' ' 'Building file: ./libraries/sfra/sfra_gui_scicomms_driverlib.c' >> WARNING: object file specified, but linking not enabled [sfra_gui_scicomms_driverlib.c] ' ' 'Start Linking Target: _bin/GR60_A_08_03_02.out ' warning: Case insensitivity of options has been deprecated; O must be written as o in future releases >> WARNING: invalid linker option --fp_mode=relaxed (ignored) >> WARNING: invalid linker option --advice:performance=all (ignored) >> WARNING: invalid linker option --symdebug:dwarf_version=3 (ignored) >> WARNING: invalid linker option --float_operations_allowed=32 (ignored) >> WARNING: the --abi=eabi option must be specified before the -z; option ignored <Linking> warning: illegal COFF version specified; version 2 assumed warning #10211-D: cannot resolve archive D:/ti/ccs1270/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib/libc.a to a compatible library, as no input files have been encountered error #10016-D: --coff_version=28 not supported when producing ELF output files fatal error #10011: cannot continue with specified options; aborting >> Compilation failure makefile:444: recipe for target '_bin/GR60_A_08_03_02.out' failed gmake: *** [_bin/GR60_A_08_03_02.out] Error 1 gmake: Target 'all' not remade because of errors. D:\02_software_test\26_GR60\20250723\main_gr60_f28p65x>
Any suggestions for this issue?
Thanks,
Leo