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.

TMS320F28335: Getting an error while connecting MATLAB 2016a with TMS320F28335 controller

Part Number: TMS320F28335
Other Parts Discussed in Thread: TI-CGT

Hello All,

I am neelesh. I am trying to connect matlab 2016a with tms320f28335. I have all support packages for my microcontroller. I have done all settings according to me but when I try to build the simulink model on the microcontroller then after some time it is showing some error. I am mentioning that error with this post. 

Please help me in this. It is urgent. Thanks in advance.

Error-

Generating code into build folder: E:\MC\untitled_ert_rtw
### Invoking Target Language Compiler on untitled.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016a\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 untitled.h
.
### Writing header file untitled_types.h
### Writing header file rtwtypes.h
### Writing source file untitled.c
### Writing header file untitled_private.h
### Writing source file untitled_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Texas Instruments C2000 Code Generation Tools v6.0.0 | gmake (64-bit Windows)
### 'E:\MC\untitled_ert_rtw\untitled.mk' is up to date
### Building 'untitled': C:\PROGRA~1\MATLAB\R2016a\bin\win64\gmake -B -f untitled.mk all

E:\MC\untitled_ert_rtw>cd .

E:\MC\untitled_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2016a\bin\win64\gmake -B -f untitled.mk all ) else (C:\PROGRA~1\MATLAB\R2016a\bin\win64\gmake -B -f untitled.mk )
C:/ti/ccsv6/tools/compiler/TI-CGT~1.1/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/ccsv6/tools/compiler/TI-CGT~1.1/include" -v28 --float_support=fpu32 -ml -DMODEL=untitled -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=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/PROGRA~1/MATLAB/R2016a/simulink/include/sf_runtime -IE:/MC/untitled_ert_rtw -IE:/MC -IC:/PROGRA~1/MATLAB/R2016a/extern/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/tic2000/inc -IC:/PROGRA~1/MATLAB/R2016a/toolbox/shared/can/src/scanutil -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/tic2000/src -IC:/PROGRA~1/MATLAB/R2016a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2016a/toolbox/rtw/targets/common/can/blocks/tlc_c --output_file="MW_c28xx_board.obj" "MW_c28xx_board.c"
'C:/ti/ccsv6/tools/compiler/TI-CGT~1.1/bin/cl2000' is not recognized as an internal or external command,
operable program or batch file.
gmake: *** [MW_c28xx_board.obj] Error 1

E:\MC\untitled_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2

E:\MC\untitled_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 untitled_codegen_rpt.html
### Build procedure for model: 'untitled' aborted due to an error.
Error(s) encountered while building "untitled":
### Failed to generate all binary outputs.

 

  • Hi Neelesh,

    Did you try to run one of the examples? Do they work? 

    I see multiple issues:

    1) Data type mismatch - but the code generation is working thru those issues.  

    2) Code generation cant find the C2000 compiler. You probably don't have this configured correctly. Testing the shipping example will probably also show the same error. At the MATLAB command line, type targetupdater - that will take you back to the configuration stage and allow you to point to the needed TI tools.

    If this doesn't work, you can contact MathWorks Technical Support for assistance.

    HTH,

    -Brian