Error when compiling a Simulink model using CCSv5
Show older comments
Hello,
I have got this error when trying to compile a model for the Texas Instruments F28069 using Embedded Coder:
### Building 'test_04': C:\Apps\R2014a\bin\win64\gmake -B -f test_04.mk all
C:\ti\MATLAB_HIL\test_01\test_04_ert_rtw>cd .
C:\ti\MATLAB_HIL\test_01\test_04_ert_rtw>if "" == "" (C:\Apps\R2014a\bin\win64\gmake -B -f test_04.mk all ) else (C:\Apps\R2014a\bin\win64\gmake -B -f test_04.mk )
/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"/include" -v28 -ml --float_support=fpu32 -v28 -ml --float_support=fpu32 -DMODEL=test_04 -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 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=test_04 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/ti/MATLAB_HIL/test_01/test_04_ert_rtw -IC:/ti/MATLAB_HIL/test_01 -IC:/Apps/R2014a/extern/include -IC:/Apps/R2014a/simulink/include -IC:/Apps/R2014a/rtw/c/src -IC:/Apps/R2014a/rtw/c/src/ext_mode/common -IC:/Apps/R2014a/rtw/c/ert -IC:/ti/MATLAB_HIL/test_01/slprj/ert/_sharedutils -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/Apps/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/Apps/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -IC:/ti/controlSUITE/device_support/f2806x/v120/F2806x_common/include -IC:/ti/controlSUITE/device_support/f2806x/v120/F2806x_headers/include -IC:/Apps/R2014a/toolbox/shared/can/src/scanutil --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:\ti\MATLAB_HIL\test_01\test_04_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\ti\MATLAB_HIL\test_01\test_04_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.
It seems all necessary tools and variables are correctly installed and linked:
checkEnvSetup('ccsv5','f28069','check')
1. CCSv5 (Code Composer Studio)
Your version : 5.5.0
Required version: 5.0 or later
Required for : Code Generation
TI_DIR="C:\ti\ccsv5"
2. CGT (Texas Instruments C2000 Code Generation Tools)
Your version : 6.0.2
Required version: 5.2.1 to 6.0.2
Required for : Code generation
C2000_CGT_INSTALLDIR="C:\ti\ccsv5\tools\compiler\c2000_6.0.2"
3. DSP/BIOS (Real Time Operating System)
Your version : 5.41.11.38
Required version: 5.33.05 to 5.41.11.38
Required for : Code generation
CCSV5_DSPBIOS_INSTALLDIR="C:\ti\bios_5_41_11_38"
4. XDC Tools (eXpress DSP Components)
Your version : 3.25.03.72
Required version: 3.16.02.32 or later
Required for : Code generation
5. 2806x C/C++ Header Files
Your version : 1.20
Required version: 1.20
Required for : Code generation
DSP2806x_INSTALLDIR="C:\ti\controlSUITE\device_support\f2806x\v120"
6. Flash Tools (TMS320F2806x Piccolo(TM) Flash API)
Your version : 1.00
Required version: 1.00
Required for : Flash Programming
FLASH_2806X_API_INSTALLDIR="C:\ti\controlSUITE\libs\utilities\flash_api\2806x\v100"
I am trying to program a Piccolo F28069 controlStick board, using Code Composer Sstudio v5 and Matlab 2014a.
I do not know what is wrong but it seems it cannot find the compiler. In the second command, it seems that is calling:
/bin/cl2000
That can be the problem, but I do not know how to solve the problem. It seems that the Windows environmental variables are well defined.
Another thing could be that I cannot see the IDE_link tab in the Simulink Model Configuration Parameters.
2 Comments
Dani Tormo
on 13 May 2014
Jesus Haro
on 28 Oct 2016
I had the same error using a TI F28335 and Matlab 2014b. I solved this problem by manually selecting the folders on the support package configuration to avoid using defaults, it seems the directories have to match exactly.
Answers (1)
Matthew
on 10 Nov 2014
0 votes
I added CCSV5INSTALLDIR to my system environment variables and that seems to have resolved the issue. Thanks Tormo for telling me where to work.
Categories
Find more on Texas Instruments C2000 Processors in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!