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.

TMS320F28379D: Matlab code generation

Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE, TEST2

Hi,

I am using Matlab 2016b and CCS 5.5.0. I have sucessfully used matlab embedded toolbox with f28027, however,  with C2000 f28379D I am getting the following errors:

## Generating code into build folder: C:\Users\Lukasz\Documents\MATLAB\untitled_ert_rtw
### Invoking Target Language Compiler on untitled.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016b\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)
### 'C:\Users\Lukasz\Documents\MATLAB\untitled_ert_rtw\untitled.mk' is up to date
### Building 'untitled': C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -B -f untitled.mk all
C:\Users\Lukasz\Documents\MATLAB\untitled_ert_rtw>cd .
C:\Users\Lukasz\Documents\MATLAB\untitled_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -B -f untitled.mk all ) else (C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -B -f untitled.mk )
C:/ti/ccsv6/tools/compiler/c2000_15.12.3.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:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" -v28 --float_support=fpu32 -ml -DCPU1 -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__ -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DF2837X_REG_FORMAT -DMW_F2837XD -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 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DF2837X_REG_FORMAT -DMW_F2837XD -DRT -DSTACK_SIZE=512 -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Lukasz/Documents/MATLAB/untitled_ert_rtw -IC:/Users/Lukasz/Documents/MATLAB -IC:/Users/Lukasz/DROPBO~1/MIT/PROF~1.LEE/Ti/MATLAB~1/TEST2_~1 -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/tic2000/inc -IC:/PROGRA~1/MATLAB/R2016b/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/supportpackages/tic2000/src -IC:/ti/controlSUITE/device_support/F2837xD/v190/F2837xD_common/include -IC:/ti/controlSUITE/device_support/F2837xD/v190/F2837xD_headers/include -IC:/ti/controlSUITE/device_support/F2837xD/v190/F2837xD_common -IC:/PROGRA~1/MATLAB/R2016b/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/shared/externalmode_daemon/include --output_file="MW_c28xx_board.obj" "MW_c28xx_board.c"
The system cannot find the path specified.
gmake: *** [MW_c28xx_board.obj] Error 1
C:\Users\Lukasz\Documents\MATLAB\untitled_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Lukasz\Documents\MATLAB\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.

Did anyone solve this problem? 

Thanks

  • Hi Lucasz,

    Error message indicates a file is missing where the code generation expects to find it. It looks like this file should be part of the MathWorks Support Package installation (it is in shared directory, so it may apply to multiple support packages).

    That directory does exist on my machine: C:/ProgramData/MATLAB/SupportPackages/R2016b/toolbox/target/shared/externalmode_daemon

    Fastest / best way to get real help is to contact MathWorks Technical Support. You could look at uninstall and reinstall of the C2000 Support Package, but I'm not really sure if that will help.

    Cheers,

    -Brian