CCS/F28M36P63C2: Can't compile an auto generated code from Simulink.
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Antoine Bostem
le 8 Fév 2018
Réponse apportée : Mohit Chand
le 25 Avr 2019
Hello,
I'm getting some trouble with CCS7. I would like to modify a code generated by Simulink but I got a compilation error.
error: option --heap_size is missing its parameter 'size'
I think that the error is maybe in the ".mk" auto generated by Simulink
###########################################################################
## Makefile generated for Simulink model 'Ordre1_castSPI'.
##
## Makefile : Ordre1_castSPI.mk
## Generated on : Mon Feb 05 14:04:40 2018
## MATLAB Coder version: 3.4 (R2017b)
##
## Build Info:
##
## Final product: $(RELATIVE_PATH_TO_ANCHOR)/Ordre1_castSPI.out
## Product type : executable
## Build type : Top-Level Standalone Executable
##
###########################################################################
###########################################################################
## MACROS
###########################################################################
# Macro Descriptions:
# PRODUCT_NAME Name of the system to build
# MAKEFILE Name of this makefile
# COMPUTER Computer type. See the MATLAB "computer" command.
PRODUCT_NAME = Ordre1_castSPI
MAKEFILE = Ordre1_castSPI.mk
COMPUTER = PCWIN64
MATLAB_ROOT = C:/PROGRA~1/MATLAB/R2017b
MATLAB_BIN = C:/PROGRA~1/MATLAB/R2017b/bin
MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64
MASTER_ANCHOR_DIR =
START_DIR = C:/MATLAB
ARCH = win64
SOLVER =
SOLVER_OBJ =
CLASSIC_INTERFACE = 0
TGT_FCN_LIB = TI C28x
MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0
MODELREF_LINK_RSPFILE_NAME = Ordre1_castSPI_ref.rsp
RELATIVE_PATH_TO_ANCHOR = ..
C_STANDARD_OPTS =
CPP_STANDARD_OPTS =
###########################################################################
## TOOLCHAIN SPECIFICATIONS
###########################################################################
# Toolchain Name: Texas Instruments C2000 Code Generation Tools v16.9.2 | gmake (64-bit Windows)
# Supported Version(s):
# ToolchainInfo Version: R2017b
# Specification Revision: 1.0
#
#-------------------------------------------
# Macros assumed to be defined elsewhere
#-------------------------------------------
# CCSINSTALLDIR
# CCSSCRIPTINGDIR
# TARGET_LOAD_CMD_ARGS
# TIF28XXXSYSSWDIR
#-----------
# MACROS
#-----------
TARGET_SCRIPTINGTOOLS_INSTALLDIR = $(CCSSCRIPTINGDIR)
TI_TOOLS = $(CCSINSTALLDIR)/bin
TI_INCLUDE = $(CCSINSTALLDIR)/include
TI_LIB = $(CCSINSTALLDIR)/lib
F28_HEADERS = $(TIF28XXXSYSSWDIR)/~SupportFiles/DSP280x_headers
CCOUTPUTFLAG = --output_file=
LDOUTPUTFLAG = --output_file=
EXE_FILE_EXT = $(PROGRAM_FILE_EXT)
PRODUCT_HEX = $(RELATIVE_PATH_TO_ANCHOR)/$(PRODUCT_NAME).hex
DOWN_EXE_JS = $(MATLAB_ROOT)/toolbox/idelink/extensions/ticcs/ccsdemos/runProgram.js
CCS_CONFIG = $(TARGET_PKG_INSTALLDIR)/tic2000/CCS_Config/f28x_generic.ccxml
SHELL = %SystemRoot%/system32/cmd.exe
TOOLCHAIN_SRCS =
TOOLCHAIN_INCS =
TOOLCHAIN_LIBS =
#------------------------
# BUILD TOOL COMMANDS
#------------------------
# Assembler: C2000 Assembler
AS_PATH = $(TI_TOOLS)
AS = $(AS_PATH)/cl2000
# C Compiler: C2000 C Compiler
CC_PATH = $(TI_TOOLS)
CC = $(CC_PATH)/cl2000
# Linker: C2000 Linker
LD_PATH = $(TI_TOOLS)
LD = $(LD_PATH)/cl2000
# C++ Compiler: C2000 C++ Compiler
CPP_PATH = $(TI_TOOLS)
CPP = $(CPP_PATH)/cl2000
# C++ Linker: C2000 C++ Linker
CPP_LD_PATH = $(TI_TOOLS)
CPP_LD = $(CPP_LD_PATH)/cl2000
# Archiver: C2000 Archiver
AR_PATH = $(TI_TOOLS)
AR = $(AR_PATH)/ar2000
# MEX Tool: MEX Tool
MEX_PATH = $(MATLAB_ARCH_BIN)
MEX = $(MEX_PATH)/mex
# Hex Converter: Hex Converter
# Download: Download
DOWNLOAD_PATH = $(TARGET_SCRIPTINGTOOLS_INSTALLDIR)/bin
DOWNLOAD = $(DOWNLOAD_PATH)/dss.bat
# Execute: Execute
EXECUTE = $(PRODUCT)
# Builder: GMAKE Utility
MAKE_PATH = %MATLAB%\bin\win64
MAKE = $(MAKE_PATH)/gmake
#-------------------------
# Directives/Utilities
#-------------------------
ASDEBUG = -g
AS_OUTPUT_FLAG = --output_file=
CDEBUG = -g
C_OUTPUT_FLAG = --output_file=
LDDEBUG = -g
OUTPUT_FLAG = --output_file=
CPPDEBUG = -g
CPP_OUTPUT_FLAG = --output_file=
CPPLDDEBUG = -g
OUTPUT_FLAG = --output_file=
ARDEBUG =
STATICLIB_OUTPUT_FLAG =
MEX_DEBUG = -g
RM = @del /F
ECHO = @echo
MV = @move
RUN =
#----------------------------------------
# "Faster Builds" Build Configuration
#----------------------------------------
ARFLAGS = -r
ASFLAGS = -s \
-v28 \
-ml \
$(ASFLAGS_ADDITIONAL)
CFLAGS = --compile_only \
--large_memory_model \
--silicon_version=28 \
--define="LARGE_MODEL" \
-i"$(F28_HEADERS)" \
-i"$(F28_HEADERS)/include" \
-i"$(TI_INCLUDE)"
CPPFLAGS =
CPP_LDFLAGS =
CPP_SHAREDLIB_LDFLAGS =
DOWNLOAD_FLAGS = $(TARGET_LOAD_CMD_ARGS) $(PRODUCT)
EXECUTE_FLAGS =
OBJCOPYFLAGS_HEX = -i "$<" -o "$@" -order MS -romwidth 16 -q
LDFLAGS = -z -I$(TI_LIB) \
--stack_size=$(STACK_SIZE) --warn_sections \
--heap_size=$(HEAP_SIZE) \
--reread_libs --rom_model \
-m"$(PRODUCT_NAME).map"
MEX_CPPFLAGS =
MEX_CPPLDFLAGS =
MEX_CFLAGS =
MEX_LDFLAGS =
MAKE_FLAGS = -B -f $(MAKEFILE)
SHAREDLIB_LDFLAGS =
#--------------------
# File extensions
#--------------------
OBJ_EXT = .obj
ASM_EXT = .asm
AS_EXT = .asm
CLA_EXT = .cla
H_EXT = .h
OBJ_EXT = .obj
C_EXT = .c
EXE_EXT = .out
SHAREDLIB_EXT =
HPP_EXT = .hpp
OBJ_EXT = .obj
CPP_EXT = .cpp
EXE_EXT =
SHAREDLIB_EXT =
STATICLIB_EXT = .lib
MEX_EXT = .mexw64
MAKE_EXT = .mk
###########################################################################
## OUTPUT INFO
###########################################################################
PRODUCT = $(RELATIVE_PATH_TO_ANCHOR)/Ordre1_castSPI.out
PRODUCT_TYPE = "executable"
BUILD_TYPE = "Top-Level Standalone Executable"
###########################################################################
## INCLUDE PATHS
###########################################################################
INCLUDES_BUILDINFO = -I$(START_DIR) -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/shared/svd/include -I$(MATLAB_ROOT)/simulink/include/sf_runtime -I$(START_DIR)/Ordre1_castSPI_ert_rtw -I$(MATLAB_ROOT)/extern/include -I$(MATLAB_ROOT)/simulink/include -I$(MATLAB_ROOT)/rtw/c/src -I$(MATLAB_ROOT)/rtw/c/src/ext_mode/common -I$(MATLAB_ROOT)/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/src -I$(MATLAB_ROOT)/toolbox/target/extensions/processor/tic2000/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/inc -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/inc -IC:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/include -IC:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_headers/include
INCLUDES = $(INCLUDES_BUILDINFO)
###########################################################################
## DEFINES
###########################################################################
DEFINES_ = -DMW_SPI_A -DMW_SPISTE_SELECT_SPI_A -DMODEL=Ordre1_castSPI -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMW_PIL_SCIFIFOLEN=16 -DMW_PIL_TIC2000_CONCERTO -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT
DEFINES_BUILD_ARGS = -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0
DEFINES_IMPLIED = -DTID01EQ=0
DEFINES_SKIPFORSIL = -DMW_PIL_SCIFIFOLEN=16 -DMW_PIL_TIC2000_CONCERTO -DSTACK_SIZE=512 -DRT
DEFINES_STANDARD = -DMODEL=Ordre1_castSPI -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO
DEFINES = $(DEFINES_) $(DEFINES_BUILD_ARGS) $(DEFINES_IMPLIED) $(DEFINES_SKIPFORSIL) $(DEFINES_STANDARD)
###########################################################################
## SOURCE FILES
###########################################################################
SRCS = C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_SPI.c C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_c28xSPI.c C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_c28xGPIO.c C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_c2000SPI.c C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_c2000GPIO.c $(START_DIR)/Ordre1_castSPI_ert_rtw/MW_c28xx_board.c $(START_DIR)/Ordre1_castSPI_ert_rtw/MW_c28xx_csl.c $(START_DIR)/Ordre1_castSPI_ert_rtw/Ordre1_castSPI.c $(START_DIR)/Ordre1_castSPI_ert_rtw/Ordre1_castSPI_data.c C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/src/c28M36xBoard_Realtime_Support.c C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_CpuTimers.c C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_DefaultIsr.c C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_headers/source/F28M36x_GlobalVariableDefs.c C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_PieCtrl.c C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_PieVect.c C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_SysCtrl.c C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_usDelay.asm C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_CodeStartBranch.asm C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_DMA.c C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_Adc.c C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/profiler_Support.c C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/src/c28M36xSchedulerTimer0.c
MAIN_SRC = $(START_DIR)/Ordre1_castSPI_ert_rtw/ert_main.c
ALL_SRCS = $(SRCS) $(MAIN_SRC)
###########################################################################
## OBJECTS
###########################################################################
OBJS = MW_SPI.obj MW_c28xSPI.obj MW_c28xGPIO.obj MW_c2000SPI.obj MW_c2000GPIO.obj MW_c28xx_board.obj MW_c28xx_csl.obj Ordre1_castSPI.obj Ordre1_castSPI_data.obj c28M36xBoard_Realtime_Support.obj F28M36x_CpuTimers.obj F28M36x_DefaultIsr.obj F28M36x_GlobalVariableDefs.obj F28M36x_PieCtrl.obj F28M36x_PieVect.obj F28M36x_SysCtrl.obj F28M36x_usDelay.obj F28M36x_CodeStartBranch.obj F28M36x_DMA.obj F28M36x_Adc.obj profiler_Support.obj c28M36xSchedulerTimer0.obj
MAIN_OBJ = ert_main.obj
ALL_OBJS = $(OBJS) $(MAIN_OBJ)
###########################################################################
## PREBUILT OBJECT FILES
###########################################################################
PREBUILT_OBJS =
###########################################################################
## LIBRARIES
###########################################################################
LIBS = C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/rtlib/IQmath_fpu32.lib C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/src/c28M36xPeripherals.cmd C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/src/c28M36P63C.cmd
###########################################################################
## SYSTEM LIBRARIES
###########################################################################
SYSTEM_LIBS =
###########################################################################
## ADDITIONAL TOOLCHAIN FLAGS
###########################################################################
#---------------
# C Compiler
#---------------
CFLAGS_SKIPFORSIL = -v28 -ml --float_support=fpu32
CFLAGS_BASIC = $(DEFINES) $(INCLUDES)
CFLAGS += $(CFLAGS_SKIPFORSIL) $(CFLAGS_BASIC)
#-----------------
# C++ Compiler
#-----------------
CPPFLAGS_SKIPFORSIL = -v28 -ml --float_support=fpu32
CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES)
CPPFLAGS += $(CPPFLAGS_SKIPFORSIL) $(CPPFLAGS_BASIC)
#---------------
# C++ Linker
#---------------
CPP_LDFLAGS_SKIPFORSIL = -l"rts2800_fpu32.lib" --define BOOT_FROM_FLASH=1 --define BOOT_USING_BL=0
CPP_LDFLAGS += $(CPP_LDFLAGS_SKIPFORSIL)
#------------------------------
# C++ Shared Library Linker
#------------------------------
CPP_SHAREDLIB_LDFLAGS_SKIPFORSIL = -l"rts2800_fpu32.lib" --define BOOT_FROM_FLASH=1 --define BOOT_USING_BL=0
CPP_SHAREDLIB_LDFLAGS += $(CPP_SHAREDLIB_LDFLAGS_SKIPFORSIL)
#-----------
# Linker
#-----------
LDFLAGS_SKIPFORSIL = -l"rts2800_fpu32.lib" --define BOOT_FROM_FLASH=1 --define BOOT_USING_BL=0
LDFLAGS += $(LDFLAGS_SKIPFORSIL)
#--------------------------
# Shared Library Linker
#--------------------------
SHAREDLIB_LDFLAGS_SKIPFORSIL = -l"rts2800_fpu32.lib" --define BOOT_FROM_FLASH=1 --define BOOT_USING_BL=0
SHAREDLIB_LDFLAGS += $(SHAREDLIB_LDFLAGS_SKIPFORSIL)
###########################################################################
## INLINED COMMANDS
###########################################################################
all :
ifeq ($(PRODUCT_TYPE),"executable")
postbuild : $(PRODUCT_HEX)
$(PRODUCT_HEX): $(PRODUCT)
@echo "### Invoking postbuild tool "Hex Converter" on "$<"..."
$(CCSINSTALLDIR)/bin/hex2000 $(OBJCOPYFLAGS_HEX)
@echo "### Done Invoking postbuild tool "Hex Converter" ..."
endif
-include codertarget_assembly_flags.mk
-include ../codertarget_assembly_flags.mk
###########################################################################
## PHONY TARGETS
###########################################################################
.PHONY : all build buildobj clean info prebuild postbuild download execute
all : build postbuild
@echo "### Successfully generated all binary outputs."
build : prebuild $(PRODUCT)
buildobj : prebuild $(OBJS) $(PREBUILT_OBJS) $(LIBS)
@echo "### Successfully generated all binary outputs."
prebuild :
postbuild : build
download : postbuild
@echo "### Invoking postbuild tool "Download" ..."
$(DOWNLOAD) $(DOWNLOAD_FLAGS)
@echo "### Done invoking postbuild tool."
execute : download
@echo "### Invoking postbuild tool "Execute" ..."
$(EXECUTE) $(EXECUTE_FLAGS)
@echo "### Done invoking postbuild tool."
###########################################################################
## FINAL TARGET
###########################################################################
#-------------------------------------------
# Create a standalone executable
#-------------------------------------------
$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) $(LIBS) $(MAIN_OBJ)
@echo "### Creating standalone executable "$(PRODUCT)" ..."
$(LD) $(LDFLAGS) --output_file=$(PRODUCT) $(OBJS) $(MAIN_OBJ) $(LIBS) $(SYSTEM_LIBS) $(TOOLCHAIN_LIBS)
@echo "### Created: $(PRODUCT)"
###########################################################################
## INTERMEDIATE TARGETS
###########################################################################
#---------------------
# SOURCE-TO-OBJECT
#---------------------
%.obj : %.cla
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : %.c
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : %.asm
$(AS) $(ASFLAGS) --output_file=$@ $<
%.obj : %.cpp
$(CPP) $(CPPFLAGS) --output_file=$@ $<
%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cla
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.asm
$(AS) $(ASFLAGS) --output_file=$@ $<
%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp
$(CPP) $(CPPFLAGS) --output_file=$@ $<
%.obj : $(START_DIR)/%.cla
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(START_DIR)/%.c
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(START_DIR)/%.asm
$(AS) $(ASFLAGS) --output_file=$@ $<
%.obj : $(START_DIR)/%.cpp
$(CPP) $(CPPFLAGS) --output_file=$@ $<
%.obj : $(START_DIR)/Ordre1_castSPI_ert_rtw/%.cla
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(START_DIR)/Ordre1_castSPI_ert_rtw/%.c
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(START_DIR)/Ordre1_castSPI_ert_rtw/%.asm
$(AS) $(ASFLAGS) --output_file=$@ $<
%.obj : $(START_DIR)/Ordre1_castSPI_ert_rtw/%.cpp
$(CPP) $(CPPFLAGS) --output_file=$@ $<
%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cla
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(MATLAB_ROOT)/rtw/c/src/%.asm
$(AS) $(ASFLAGS) --output_file=$@ $<
%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp
$(CPP) $(CPPFLAGS) --output_file=$@ $<
%.obj : $(MATLAB_ROOT)/simulink/src/%.cla
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(MATLAB_ROOT)/simulink/src/%.c
$(CC) $(CFLAGS) --output_file=$@ $<
%.obj : $(MATLAB_ROOT)/simulink/src/%.asm
$(AS) $(ASFLAGS) --output_file=$@ $<
%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp
$(CPP) $(CPPFLAGS) --output_file=$@ $<
MW_SPI.obj : C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_SPI.c
$(CC) $(CFLAGS) --output_file=$@ $<
MW_c28xSPI.obj : C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_c28xSPI.c
$(CC) $(CFLAGS) --output_file=$@ $<
MW_c28xGPIO.obj : C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_c28xGPIO.c
$(CC) $(CFLAGS) --output_file=$@ $<
MW_c2000SPI.obj : C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_c2000SPI.c
$(CC) $(CFLAGS) --output_file=$@ $<
MW_c2000GPIO.obj : C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/MW_c2000GPIO.c
$(CC) $(CFLAGS) --output_file=$@ $<
c28M36xBoard_Realtime_Support.obj : C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/src/c28M36xBoard_Realtime_Support.c
$(CC) $(CFLAGS) --output_file=$@ $<
F28M36x_CpuTimers.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_CpuTimers.c
$(CC) $(CFLAGS) --output_file=$@ $<
F28M36x_DefaultIsr.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_DefaultIsr.c
$(CC) $(CFLAGS) --output_file=$@ $<
F28M36x_GlobalVariableDefs.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_headers/source/F28M36x_GlobalVariableDefs.c
$(CC) $(CFLAGS) --output_file=$@ $<
F28M36x_PieCtrl.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_PieCtrl.c
$(CC) $(CFLAGS) --output_file=$@ $<
F28M36x_PieVect.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_PieVect.c
$(CC) $(CFLAGS) --output_file=$@ $<
F28M36x_SysCtrl.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_SysCtrl.c
$(CC) $(CFLAGS) --output_file=$@ $<
F28M36x_usDelay.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_usDelay.asm
$(AS) $(ASFLAGS) --output_file=$@ $<
F28M36x_CodeStartBranch.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_CodeStartBranch.asm
$(AS) $(ASFLAGS) --output_file=$@ $<
F28M36x_DMA.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_DMA.c
$(CC) $(CFLAGS) --output_file=$@ $<
F28M36x_Adc.obj : C:/ti/controlSUITE/device_support/f28m36x/v208/F28M36x_common/source/F28M36x_Adc.c
$(CC) $(CFLAGS) --output_file=$@ $<
profiler_Support.obj : C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000/src/profiler_Support.c
$(CC) $(CFLAGS) --output_file=$@ $<
c28M36xSchedulerTimer0.obj : C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/tic2000_concerto/src/c28M36xSchedulerTimer0.c
$(CC) $(CFLAGS) --output_file=$@ $<
###########################################################################
## DEPENDENCIES
###########################################################################
$(ALL_OBJS) : $(MAKEFILE) rtw_proj.tmw
###########################################################################
## MISCELLANEOUS TARGETS
###########################################################################
info :
@echo "### PRODUCT = $(PRODUCT)"
@echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)"
@echo "### BUILD_TYPE = $(BUILD_TYPE)"
@echo "### INCLUDES = $(INCLUDES)"
@echo "### DEFINES = $(DEFINES)"
@echo "### ALL_SRCS = $(ALL_SRCS)"
@echo "### ALL_OBJS = $(ALL_OBJS)"
@echo "### LIBS = $(LIBS)"
@echo "### MODELREF_LIBS = $(MODELREF_LIBS)"
@echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)"
@echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)"
@echo "### ASFLAGS = $(ASFLAGS)"
@echo "### CFLAGS = $(CFLAGS)"
@echo "### LDFLAGS = $(LDFLAGS)"
@echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)"
@echo "### CPPFLAGS = $(CPPFLAGS)"
@echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)"
@echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)"
@echo "### ARFLAGS = $(ARFLAGS)"
@echo "### MEX_CFLAGS = $(MEX_CFLAGS)"
@echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)"
@echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)"
@echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)"
@echo "### OBJCOPYFLAGS_HEX = $(OBJCOPYFLAGS_HEX)"
@echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)"
@echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)"
@echo "### MAKE_FLAGS = $(MAKE_FLAGS)"
clean :
$(ECHO) "### Deleting all derived files..."
$(RM) $(subst /,\,$(PRODUCT))
$(RM) $(subst /,\,$(ALL_OBJS))
$(RM) *Object
$(ECHO) "### Deleted all derived files."
Can someone please help me ?
Antoine
0 commentaires
Réponse acceptée
Venkatesh Chilapur
le 9 Mar 2018
https://www.mathworks.com/matlabcentral/answers/382607-ccs7-unsupported-by-matlab-simulink
0 commentaires
Plus de réponses (5)
Venkatesh Chilapur
le 8 Fév 2018
It looks like you are running the .bat file DOS command prompt. The HEAP_SIZE is not visible here.
Please consider running from MATLAB command prompt or import the project in CCS studio and build.
1 commentaire
Venkatesh Chilapur
le 9 Fév 2018
Hi,
Did you try to launch the project from diagnostic viewer from MATLAB. We support automatic project creation in CCS from MATLAB and all user needs to do is click on the link as shown below from diagnostic viewer.
Venkatesh Chilapur
le 11 Fév 2018
Please ensure you have latest version of the hardware support package installed - 17.2.2 This can verified by clicking - Add-Ons -> Manage Add-Ons. We do support project creation for CCSV7.
Mohit Chand
le 25 Avr 2019
OBJCOPYFLAGS_HEX = -i "$<" -o "$@" -order MS -romwidth 16 -q
LDFLAGS = -z -I$(TI_LIB) \
--stack_size=$(STACK_SIZE) --warn_sections \
--heap_size=1024 \
--reread_libs --rom_model \
-m"$(PRODUCT_NAME).map"
MEX_CPPFLAGS =
MEX_CPPLDFLAGS
Change the heap_size as 1024 (Constant for now), in the .mk file and it will work
0 commentaires
Voir également
Catégories
En savoir plus sur Custom Toolchain Registration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!