CCS/TMS320F28335: C2000 Code Generation Error Through MATLAB C2000 Embedded Coder Support Package
3 次查看(过去 30 天)
显示 更早的评论
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 indicates the problem for no reason every time when I tried to generate the code. The CCS version is 5 and the MATLAB version is R2015a.
The code generation report is as below:
### Invoking Target Language Compiler on NewCCSV5pwm.rtw
### Using System Target File: C:\Program Files\MATLAB\MATLAB Production Server\R2015a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
Warning: The data type "int8" uses a word size that is not available on the intended target.
Fixed-point signals using this data type will be put inside a larger word or multi words. When used,
extra software will be generated to force this larger word or multi words to emulate a smaller
word. This emulation is helpful when your prototype target and your final
production target are not the same. If the smaller word size does NOT exist
on the final production target, then consider increasing the word size to
one that is supported.
Warning: The data type "uint8" uses a word size that is not available on the intended target.
.
Warning: The data type "boolean" uses a word size that is not available on the intended target.
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file NewCCSV5pwm.h
### Writing header file NewCCSV5pwm_types.h
### Writing header file rtwtypes.h
### Writing source file NewCCSV5pwm.c
### Writing header file NewCCSV5pwm_private.h
.
### Writing source file NewCCSV5pwm_data.c
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Texas Instruments C2000 Code Generation Tools v5.2.12 | gmake (64-bit Windows)
### Creating 'F:\NewCCSV5pwm_ert_rtw\NewCCSV5pwm.mk' ...
### Using toolchain: Texas Instruments C2000 Code Generation Tools v5.2.12 | gmake (64-bit Windows)
### Creating 'F:\NewCCSV5pwm_ert_rtw\NewCCSV5pwm.mk' ...
### Building 'NewCCSV5pwm': C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -B -f NewCCSV5pwm.mk all
F:\NewCCSV5pwm_ert_rtw>cd .
F:\NewCCSV5pwm_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -B -f NewCCSV5pwm.mk all ) else (C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -B -f NewCCSV5pwm.mk )
C:/ti/ccsv5/tools/compiler/C2000_~1.0/bin/cl2000 --compile_only --large_memory_model --cla_support=cla0 --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/ti/ccsv5/tools/compiler/C2000_~1.0/include" -v28 --float_support=fpu32 -ml -DMODEL=NewCCSV5pwm -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DSTACK_SIZE=512 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=512 -DMODEL=NewCCSV5pwm -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IF:/NewCCSV5pwm_ert_rtw -IF:/ -IF:/Matlab DSP -IF: -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/simulink/include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2015a/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/toolbox/shared/can/src/scanutil -IC:/MATLAB/SupportPackages/R2015a/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/src -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/toolbox/rtw/targets/common/can/blocks/tlc_c --output_file="MW_c28xx_board.obj" "F:/NewCCSV5pwm_ert_rtw/MW_c28xx_board.c"
[DSP.]
>> WARNING: more than one source file is specified; option --output_file is ignored
Fatal error: cannot open source file "DSP"
1 catastrophic error detected in the compilation of "DSP".
Compilation terminated.
>> Compilation failure
gmake: *** [MW_c28xx_board.obj] Error 1
F:\NewCCSV5pwm_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
F:\NewCCSV5pwm_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.
### Build procedure for model: 'NewCCSV5pwm' aborted due to an error.
Error(s) encountered while building model "NewCCSV5pwm":
### Failed to generate all binary outputs.
Component: Simulink | Category: Model error
2 个评论
Venkatesh Chilapur
2019-9-5
Hi,
Is there any additional files included as part of the build which are placed at location:
F:/Matlab DSP
The space in this path is making the build process to fail.
Hence the error:
Fatal error: cannot open source file "DSP"
1 catastrophic error detected in the compilation of "DSP".
Please can you remove the space and try and repost the output.
Regards,
Venkatesh C
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!