Other Parts Discussed in Thread: TI-CGT
Tool/software: Code Composer Studio
Hi,
I encountered a problem when I use MATLAB C2000 Embedded Coder Support Package to generate the code from SIMULINK model to CCS. This method was good to use, but recently it indicates the problem for no reason every time when I tried to generate the code. The CCS version is 7.4.0 and the MATLAB version is R2017a.
The code generation report is as below:
### Creating CCS Project at : G:\My Drive\Yafeng Wang\GPEL\Voltage Regulator Project\Eaton Project\Arcless SVR Simulation Model\DSP Interface\PWM_Test_ert_rtw\CCS_Project ### CCS project created successfully Open project in Code Composer Studio.
### Using toolchain: Texas Instruments C2000 Code Generation Tools v16.9.2 | gmake (64-bit Windows)
### Creating 'G:\My Drive\Yafeng Wang\GPEL\Voltage Regulator Project\Eaton Project\Arcless SVR Simulation Model\DSP Interface\PWM_Test_ert_rtw\PWM_Test.mk' ...
### Building 'PWM_Test': "C:\PROGRA~1\MATLAB\R2018a\bin\win64\gmake" -B -f PWM_Test.mk all
G:\My Drive\Yafeng Wang\GPEL\Arcless SVR Simulation Model\DSP Interface\PWM_Test_ert_rtw>cd .
G:\My Drive\Yafeng Wang\GPEL\Arcless SVR Simulation Model\DSP Interface\PWM_Test_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2018a\bin\win64\gmake" -B -f PWM_Test.mk all ) else ("C:\PROGRA~1\MATLAB\R2018a\bin\win64\gmake" -B -f PWM_Test.mk )
C:/PROGRA~3/MATLAB/SUPPOR~1/R2018a/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/bin/cl2000 --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/PROGRA~3/MATLAB/SUPPOR~1/R2018a/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/include" -v28 --float_support=fpu32 -ml -DMODEL=PWM_Test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DSTACK_SIZE=512 -DRT -DMODEL=PWM_Test -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IG:/My Drive/Yafeng Wang/GPEL/Voltage Regulator Project/Eaton Project/Arcless SVR Simulation Model/DSP Interface -IG:/My Drive/Yafeng Wang/GPEL/Voltage Regulator Project/Eaton Project/Arcless SVR Simulation Model/DSP Interface/PWM_Test_ert_rtw -IC:/PROGRA~1/MATLAB/R2018a/extern/include -IC:/PROGRA~1/MATLAB/R2018a/simulink/include -IC:/PROGRA~1/MATLAB/R2018a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2018a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2018a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2018a/toolbox/target/supportpackages/tic2000/inc -IC:/PROGRA~1/MATLAB/R2018a/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SupportPackages/R2018a/toolbox/target/supportpackages/tic2000/src -IC:/PROGRA~1/MATLAB/R2018a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/ProgramData/MATLAB/SupportPackages/R2018a/toolbox/target/shared/externalmode_daemon/include --output_file=MW_c28xx_board.obj MW_c28xx_board.c
[Yafeng.]
>> WARNING: more than one source file is specified; option --output_file is ignored
Fatal error: cannot open source file "Drive/Yafeng"
1 catastrophic error detected in the compilation of "Drive/Yafeng".
Compilation terminated.
>> Compilation failure gmake: *** [MW_c28xx_board.obj] Error 1
G:\My Drive\Yafeng Wang\GPEL\Voltage Regulator Project\Eaton Project\Arcless SVR Simulation Model\DSP Interface\PWM_Test_ert_rtw>echo
The make command returned an error of 2 The make command returned an error of 2
G:\My Drive\Yafeng Wang\GPEL\Voltage Regulator Project\Eaton Project\Arcless SVR Simulation Model\DSP Interface\PWM_Test_ert_rtw>An_error_occurred_during_the_call_to_make 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Creating HTML report file PWM_Test_codegen_rpt.html
### Build procedure for model: 'PWM_Test' aborted due to an error.
Error(s) encountered while building "PWM_Test":
### Failed to generate all binary outputs.
I got no clue from this report and I don't know where the problem is. Anyone experienced the same problem or knows how to solve it? Thanks!
Yafeng Wang