Since it was announced that Mathworks wouldn’t provide the same integration functionalities for TI’s Code Composer Studio v4 as it does for CCSv3.3 and it would skip to the next version, I’ve been waiting for CCSv5 to finally appear, which took longer than expected.
Now that this is out for a while, I couldn’t find any references to when this will be implemented and in which version it will occur. Does anyone have any clue about this? I’d really prefer not having to downgrade to the outdated V3.3, but a part of my project has been in standby for too long already.
You can use CCS v5.1 today with Matlab via the xmakeilesetup infrastructure provided for CCSv4.
To do so, follow these instructions:
You can now use the models you have created for CCSv3.3.
You are now ready to generate code using CCS v5.1. This approach will use a makefile based approach to compile and link the code using the CCS v5.1 command like tools. Once these steps are completed you can grab the generated *.out file in the code generation folder and download it on the target using CCS v5.1.
Even though this workaround is based on the CCS v4 support, you don't need to have it installed on your machine. This has been succesfully tested with Matlab R2011b and the pre-release of Matlab R2012a. It should also work with earlier versions of the xmakefilesetup tool.
I hope it helps,
Thanks a lot for you complete and precise answer! I had planned to try such an aproach after making work v4 first, but with your steps I managed to directly configure it for v5. It seems to generate code succesfully, so I assume this part of the configuration is fine now, although I still didn't manage (neither had the chance to spend enough time with it) to make the CCS part work and execute the code on target, but that's another issue.
Anyway: sadly this is only a part of the integration possible with v3.3 where full debug integration is provided. Any clue if we will be able to enjoy this in v2012a??
I applied these steps and configured matlab for ccs v5, that explanation was very brief and thanks for it but unfortunately I couldn't make it work, when I try a command like ticcs, checkenvsetup or ccsboardinfo, I'm getting following error message, do you have a suggestion for it?
??? Cannot start CCS application (COM error code: 0x80040154). Verify that your CCS software is installed and configured properly.
here my post explaining my problem http://www.mathworks.com/matlabcentral/newsreader/view_thread/321253#880782
This is a very good workaround! However, though the compilation happens flawlessly, the makefile does not get built due to a fatal error whcih reads:
[MW_c6xxx_bsl.c] ".\MW_c6xxx_csl.h", line 3: fatal error: could not open source file "csl_edma.h"
I tried to dig through the literature and found that this error appears because of the unavailability of CSL (Chipset Libraries) which were discontinued in ccsv4 and v5. I hence downloaded the CSL library files from TI website and pointed the CSL Library section in xmakefilesetup utility (Step-3 in the above) to the appropriate directory. This doesnt solve the problem. Apparently one needs to add the appropriate CSL Library (in my case c6713.lib) during the link stage of the Build process. I dont know at which stage does MATLAB link the CSL library and the way in which I can direct it to do the same. I'm pretty sure that I need to work around with some settings in Xmakefile GUI but I don't know which ones. Pls. take note of the problem and let me know the solution if possible. Very Urgent!
PS:I am using MATLAB r2012a and CCSv5.2.1
I had a hard time getting Matlab and Simulink to work with CCS and to understand the difference in support between v3.3 and v4/v5. There is one good video that helped me start. I found it a bit long but it has all the steps needed, from installation to generating code for a simple Simulink model: It works for CCSv3.3 which is older but has automatic download and run from Matlab
The same video exists for CCSv4/5: http://youtu.be/7ed1NLD817s
Just adding my 2 cents to the story, I hope it helps.
Sadly I just saw most of the answers and the videos, which seem quite interesting... thanks!
Luckily I got to work the .out loading some time ago and it seems to be a good solution.
Still, I'll have a llok at your videos, I'm sure I'll learn something with them :-)
Hey am running through with the same problem. I can generate the .out file and load and run it in CCSV5 but I want now loop it back to another input pin and observe it in simulink scope. Run it in like PIL. How do I do this?
hey i am using matlab 2012 so which ccs version should i download for code generation from simulink which making any changes.plz help
The call to idelink_ert_make_rtw_hook, during the exit hook generated the following error: Error while building the project. The build process will terminate as a result. Caused by: Error while building the project. The build failed with the following message: "C:/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/cl6x" -I"C:/Program Files/MATLAB/R2013a/toolbox/idelink/extensions/ticcs/inc" -I"C:/Users/user8/Documents/MATLAB/untitled_ticcs" -I"C:/Users/user8/Documents/MATLAB" -I"C:/Program Files/MATLAB/R2013a/extern/include" -I"C:/Program Files/MATLAB/R2013a/simulink/include" -I"C:/Program Files/MATLAB/R2013a/rtw/c/src" -I"C:/Program Files/MATLAB/R2013a/rtw/c/src/ext_mode/common" -I"C:/Program Files/MATLAB/R2013a/rtw/c/ert" -D"CHIP_OMAPL138" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -mv6400+ -D"MODEL=untitled" -D"NUMST=1" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=1" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"TID01EQ=0" -I"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" -I"C:/ti/bios_6_35_01_29/include" -fr"./derived/" ./MW_c6xxx_csl.c ./untitled.c ./untitled_data.c ./untitled_main.c [MW_c6xxx_csl.c] ".\MW_c6xxx_csl.h", line 20: fatal error: could not open source file "untitledcfg.h" 1 fatal error detected in the compilation of "./MW_c6xxx_csl.c". Compilation terminated. >> Compilation failure gmake: * [derived/MW_c6xxx_csl.obj] Error 1