Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Matlab C2000 embedded toolbox F28379D

238 views
Skip to first unread message

Lukasz Huchel

unread,
Aug 9, 2017, 3:03:15 PM8/9/17
to
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

Venkatesh Chilapur

unread,
Aug 28, 2017, 3:05:21 AM8/28/17
to
Hi,

It is very likely that "CCSV5INSTALLDIR" token which is used in makefile is not configured properly. Please run the targetupdater and select the right path for the codegen tools.
In my machine it is set to:
"C:\ti\ccsv5\tools\compiler\c2000_6.2.0"
This can also be confirmed/updated in the thirdpartytools_win64.xml file which is available at:
C:\ProgramData\MATLAB\SupportPackages\R2017a\toolbox\target\supportpackages\tic2000\registry\thirdpartytools\
i.e where the support package is installed.
I could reproduce the same error when I tried to change the path
"C:\ti\ccsv5\tools\compiler\c2000_6.2.0" from file thirdpartytools_win64.xml which would set "CCSV5INSTALLDIR" token to point to incorrect toolchain path and hence the error.

Regards,
Venkatesh C
0 new messages