Converting matlab code into Code Composer Studio project.

Hi! I am Barani. I am working on a project with DM6437 EVM board. I have some matlab programs related to image and video processing.
I want to know whether the matlab codes can be directly converted into CCS project.
I have already worked in converting simulink models into CCS project.
But i want to know whether the matlab program can be converted into CCS porject or whether i can only convert it into Embedded C code and i have to use the Generated C code with other C library files to create the project manually?
Regards! Barani Karthick

回答(1 个)

I don't know of a direct way to do what you need, but you can do one of two things:
  1. Bring your MATLAB code into Simulink using the the MATLAB Function block, and then generate a CCS project from the model.
  2. If you have a MATLAB Coder license, generate C code from your MATLAB function, and then manually import that into a CCS project.
In both cases, your MATLAB code should use the language subset suppported for code generation.

4 个评论

Hi Kaustubha!
Thank You for your suggestions.
I will try out the first option.
I have a doubt regarding the second option. Will i be able to generate target specific C code through MATLAB Coder or i have to manually make it compatible to the specific target?
And finally i am using MATLAB R2010b release. Is MATALB Coder is available with this release?
Barani: I think you need to manually configure the coder configuration settings for hardware implementation parameters to generate target-specific code. MATLAB Coder was introduced in R2011b.
It seems that I can not build a project from my simulink model file when I am using CCS v5.5. I am using MATLAB 2013b. Is building a project only available with CCS 3.3 ? Is there an outline about how to manually import a project to CCS because many of the header files are missing when I try to do it.
Thanks for your help.
Claude: Your question is not exactly the same as this one, so in general, please create a new Question instead of writing a comment. I don't know a lot about support for CCS 5, but you may want to refer to this previously answered question: http://www.mathworks.com/matlabcentral/answers/41444-ti-ccsv5-support-for-ide-link

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by