<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520</link>
    <title>MATLAB Central Newsreader - Porting Matlab code to tms320dm6437 evm</title>
    <description>Feed for thread: Porting Matlab code to tms320dm6437 evm</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 12 Mar 2009 17:42:02 -0400</pubDate>
      <title>Porting Matlab code to tms320dm6437 evm</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520#634397</link>
      <author>Kent System Kulkarni</author>
      <description>Hi,&lt;br&gt;
I have my Matlab code ready in the form of different self-designed functions. I want to know which is the best way to port my code on the tms320dm6437 evm board. Which is the best option among the following: &lt;br&gt;
1. Using Matlab compiler to get C code and port it on my board via CCS.&lt;br&gt;
2. Using Embedded Matlab function in Simulink and Real Time Workshop to target my &lt;br&gt;
&amp;nbsp;board.&lt;br&gt;
3. Manually converting all the code (about 1000 lines) to C and port it via CCS.&lt;br&gt;
&lt;br&gt;
Please reply at the earliest.&lt;br&gt;
Thank you in advance.&lt;br&gt;
&lt;br&gt;
Sincerely,&lt;br&gt;
Prathamesh Kulkarni. </description>
    </item>
    <item>
      <pubDate>Thu, 12 Mar 2009 20:43:36 -0400</pubDate>
      <title>Re: Porting Matlab code to tms320dm6437 evm</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520#634429</link>
      <author>Arnaud Miege</author>
      <description>&lt;br&gt;
&quot;Kent System Kulkarni&quot; &amp;lt;kulkarniprathamesh@rocketmail.com&amp;gt; wrote in message &lt;br&gt;
news:gpbhha$6t4$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; I have my Matlab code ready in the form of different self-designed &lt;br&gt;
&amp;gt; functions. I want to know which is the best way to port my code on the &lt;br&gt;
&amp;gt; tms320dm6437 evm board. Which is the best option among the following:&lt;br&gt;
&amp;gt; 1. Using Matlab compiler to get C code and port it on my board via CCS.&lt;br&gt;
&amp;gt; 2. Using Embedded Matlab function in Simulink and Real Time Workshop to &lt;br&gt;
&amp;gt; target my&lt;br&gt;
&amp;gt; board.&lt;br&gt;
&amp;gt; 3. Manually converting all the code (about 1000 lines) to C and port it &lt;br&gt;
&amp;gt; via CCS.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Please reply at the earliest.&lt;br&gt;
&amp;gt; Thank you in advance.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Sincerely,&lt;br&gt;
&amp;gt; Prathamesh Kulkarni.&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
Option 1 won't work, that's not what the MATLAB compiler does. Option 2 is &lt;br&gt;
in my view preferable to option 3, but there is actualy an option 4: since &lt;br&gt;
you have Real-Time Workshop, you can generate embeddable C code directly &lt;br&gt;
from MATLAB code using Embedded MATLAB. Embedded MATLAB is a subset of the &lt;br&gt;
MATLAB language that supports code generation for real-time embedded &lt;br&gt;
systems. Have a look at:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/products/featured/embeddedmatlab/index.html&quot;&gt;http://www.mathworks.com/products/featured/embeddedmatlab/index.html&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/eml/index.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/eml/index.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
It might be that you need to modify your MATLAB code slightly to make it &lt;br&gt;
Embedded MATLAB compliant.&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Arnaud </description>
    </item>
    <item>
      <pubDate>Sat, 14 Mar 2009 07:47:17 -0400</pubDate>
      <title>Re: Porting Matlab code to tms320dm6437 evm</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520#634808</link>
      <author>pratham.delight@gmail.com</author>
      <description>On Mar 13, 1:43=A0am, &quot;Arnaud Miege&quot;&lt;br&gt;
&amp;lt;arnaud.mi...@nospam.mathworks.co.uk&amp;gt; wrote:&lt;br&gt;
&amp;gt; &quot;Kent System Kulkarni&quot; &amp;lt;kulkarnipratham...@rocketmail.com&amp;gt; wrote in messa=&lt;br&gt;
genews:gpbhha$6t4$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt; &amp;gt; I have my Matlab code ready in the form of different self-designed&lt;br&gt;
&amp;gt; &amp;gt; functions. I want to know which is the best way to port my code on the&lt;br&gt;
&amp;gt; &amp;gt; tms320dm6437 evm board. Which is the best option among the following:&lt;br&gt;
&amp;gt; &amp;gt; 1. Using Matlab compiler to get C code and port it on my board via CCS.&lt;br&gt;
&amp;gt; &amp;gt; 2. Using Embedded Matlab function in Simulink and Real Time Workshop to&lt;br&gt;
&amp;gt; &amp;gt; target my&lt;br&gt;
&amp;gt; &amp;gt; board.&lt;br&gt;
&amp;gt; &amp;gt; 3. Manually converting all the code (about 1000 lines) to C and port it&lt;br&gt;
&amp;gt; &amp;gt; via CCS.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Please reply at the earliest.&lt;br&gt;
&amp;gt; &amp;gt; Thank you in advance.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Sincerely,&lt;br&gt;
&amp;gt; &amp;gt; Prathamesh Kulkarni.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; Option 1 won't work, that's not what the MATLAB compiler does. Option 2 i=&lt;br&gt;
s&lt;br&gt;
&amp;gt; in my view preferable to option 3, but there is actualy an option 4: sinc=&lt;br&gt;
e&lt;br&gt;
&amp;gt; you have Real-Time Workshop, you can generate embeddable C code directly&lt;br&gt;
&amp;gt; from MATLAB code using Embedded MATLAB. Embedded MATLAB is a subset of th=&lt;br&gt;
e&lt;br&gt;
&amp;gt; MATLAB language that supports code generation for real-time embedded&lt;br&gt;
&amp;gt; systems. Have a look at:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/products/featured/embeddedmatlab/index.htmlhttp:=&quot;&gt;http://www.mathworks.com/products/featured/embeddedmatlab/index.htmlhttp:=&lt;/a&gt;&lt;br&gt;
//www.mathworks.com/access/helpdesk/help/toolbox/eml/index.html&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It might be that you need to modify your MATLAB code slightly to make it&lt;br&gt;
&amp;gt; Embedded MATLAB compliant.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; HTH,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Arnaud- Hide quoted text -&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; - Show quoted text -&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
Thank you for your apt reply. My doubt about the fourth option is&lt;br&gt;
whether the C code generated by the Real Time Workshop will be&lt;br&gt;
embeddable in the dm6437 or whether I'll have to port it into the&lt;br&gt;
processor via the Code Composer Studio. Also, as far as I know, I wont&lt;br&gt;
be able to use a few Matlab functions in the Embedded Matlab code.&lt;br&gt;
However, for these functions, there are redy-made blocks in Simulink.&lt;br&gt;
So should I prefer using the second option?&lt;br&gt;
&lt;br&gt;
Thank You.&lt;br&gt;
Sincerely,&lt;br&gt;
Prathamesh Kulkarni.</description>
    </item>
    <item>
      <pubDate>Sat, 14 Mar 2009 22:01:15 -0400</pubDate>
      <title>Re: Porting Matlab code to tms320dm6437 evm</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520#634920</link>
      <author>Arnaud Miege</author>
      <description>&lt;br&gt;
&amp;lt;pratham.delight@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:86b43c11-d47b-472a-a49d-7c50dc2915f5@e36g2000prg.googlegroups.com...&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
Thank you for your apt reply. My doubt about the fourth option is&lt;br&gt;
whether the C code generated by the Real Time Workshop will be&lt;br&gt;
embeddable in the dm6437 or whether I'll have to port it into the&lt;br&gt;
processor via the Code Composer Studio. Also, as far as I know, I wont&lt;br&gt;
be able to use a few Matlab functions in the Embedded Matlab code.&lt;br&gt;
However, for these functions, there are redy-made blocks in Simulink.&lt;br&gt;
So should I prefer using the second option?&lt;br&gt;
&lt;br&gt;
Thank You.&lt;br&gt;
Sincerely,&lt;br&gt;
Prathamesh Kulkarni.&lt;br&gt;
&lt;br&gt;
---------------&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
&lt;br&gt;
The C code generated by Real-Time Workshop and Real-Time Workshop Embedded &lt;br&gt;
Coder is ISO-ANSI C code, so should be embeddable on any real-time target, &lt;br&gt;
provided the correct wrapper is wrriten for it. In your case, I would &lt;br&gt;
recommend using Embedded IDE Link CC &lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.com/products/ccslink/),&quot;&gt;http://www.mathworks.com/products/ccslink/),&lt;/a&gt; which will allow to port the C &lt;br&gt;
code generated to Code Composer Studio, which will make it easier to target &lt;br&gt;
your specific processor. Whether you generate the code directly from MATLAB &lt;br&gt;
or from Simulink is difficult to answer without looking at the actual code &lt;br&gt;
(+it's not something I am very familiar with). If you know that there are &lt;br&gt;
MATLAB functions in your code that are not compliant with Embedded MATLAB, &lt;br&gt;
and that it would be difficult/time-consuming to modify the code to make it &lt;br&gt;
compliant with Embedded MATLAB, then maybe you should consider Simulink. I &lt;br&gt;
guess it's what environment you are feeling more at ease with.&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Arnaud </description>
    </item>
    <item>
      <pubDate>Fri, 20 Mar 2009 17:28:01 -0400</pubDate>
      <title>Re: Porting Matlab code to tms320dm6437 evm</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520#636472</link>
      <author>Kent System Kulkarni</author>
      <description>&quot;Arnaud Miege&quot; &amp;lt;arnaud.miege@nospam.mathworks.co.uk&amp;gt; wrote in message &amp;lt;gph9fc$kjc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;lt;pratham.delight@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:86b43c11-d47b-472a-a49d-7c50dc2915f5@e36g2000prg.googlegroups.com...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; Thank you for your apt reply. My doubt about the fourth option is&lt;br&gt;
&amp;gt; whether the C code generated by the Real Time Workshop will be&lt;br&gt;
&amp;gt; embeddable in the dm6437 or whether I'll have to port it into the&lt;br&gt;
&amp;gt; processor via the Code Composer Studio. Also, as far as I know, I wont&lt;br&gt;
&amp;gt; be able to use a few Matlab functions in the Embedded Matlab code.&lt;br&gt;
&amp;gt; However, for these functions, there are redy-made blocks in Simulink.&lt;br&gt;
&amp;gt; So should I prefer using the second option?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank You.&lt;br&gt;
&amp;gt; Sincerely,&lt;br&gt;
&amp;gt; Prathamesh Kulkarni.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ---------------&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The C code generated by Real-Time Workshop and Real-Time Workshop Embedded &lt;br&gt;
&amp;gt; Coder is ISO-ANSI C code, so should be embeddable on any real-time target, &lt;br&gt;
&amp;gt; provided the correct wrapper is wrriten for it. In your case, I would &lt;br&gt;
&amp;gt; recommend using Embedded IDE Link CC &lt;br&gt;
&amp;gt; (&lt;a href=&quot;http://www.mathworks.com/products/ccslink/),&quot;&gt;http://www.mathworks.com/products/ccslink/),&lt;/a&gt; which will allow to port the C &lt;br&gt;
&amp;gt; code generated to Code Composer Studio, which will make it easier to target &lt;br&gt;
&amp;gt; your specific processor. Whether you generate the code directly from MATLAB &lt;br&gt;
&amp;gt; or from Simulink is difficult to answer without looking at the actual code &lt;br&gt;
&amp;gt; (+it's not something I am very familiar with). If you know that there are &lt;br&gt;
&amp;gt; MATLAB functions in your code that are not compliant with Embedded MATLAB, &lt;br&gt;
&amp;gt; and that it would be difficult/time-consuming to modify the code to make it &lt;br&gt;
&amp;gt; compliant with Embedded MATLAB, then maybe you should consider Simulink. I &lt;br&gt;
&amp;gt; guess it's what environment you are feeling more at ease with.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HTH,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Arnaud &lt;br&gt;
&amp;gt; &lt;br&gt;
Hi,&lt;br&gt;
What I'm planning to do is: &lt;br&gt;
For the inbuilt MATLAB functions like thresholding, which I need, I'll use ready made Simulink blocksets and for inserting my own code in the model, I'll use the Embedded MATLAB block in Simulink. Now, to put your code into this block, it has to be made compatible with the Emedded MATLAB subset. This is achievable to me since I've very few inbuilt functions in my code. I've the model ready in Simulink. However, the problem is it takes infinite time to simulate. I can convert this code to an embeddable code for DM6437 using the Real Time Workshop which creates a CCS project for my code. I can load this project into the board.&lt;br&gt;
My question is: Is the above stated method recommended and widely used method for dumping a Matlab code on a daVinci board? Should I proceed with this? &lt;br&gt;
I have only 15 days in hand. So at this stage should I consider re-writing the code in C?</description>
    </item>
    <item>
      <pubDate>Sun, 22 Mar 2009 08:37:43 -0400</pubDate>
      <title>Re: Porting Matlab code to tms320dm6437 evm</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520#636684</link>
      <author>Arnaud Miege</author>
      <description>&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; What I'm planning to do is:&lt;br&gt;
&amp;gt; For the inbuilt MATLAB functions like thresholding, which I need, I'll use &lt;br&gt;
&amp;gt; ready made Simulink blocksets and for inserting my own code in the model, &lt;br&gt;
&amp;gt; I'll use the Embedded MATLAB block in Simulink. Now, to put your code into &lt;br&gt;
&amp;gt; this block, it has to be made compatible with the Emedded MATLAB subset. &lt;br&gt;
&amp;gt; This is achievable to me since I've very few inbuilt functions in my code. &lt;br&gt;
&amp;gt; I've the model ready in Simulink. However, the problem is it takes &lt;br&gt;
&amp;gt; infinite time to simulate. I can convert this code to an embeddable code &lt;br&gt;
&amp;gt; for DM6437 using the Real Time Workshop which creates a CCS project for my &lt;br&gt;
&amp;gt; code. I can load this project into the board.&lt;br&gt;
&amp;gt; My question is: Is the above stated method recommended and widely used &lt;br&gt;
&amp;gt; method for dumping a Matlab code on a daVinci board? Should I proceed with &lt;br&gt;
&amp;gt; this?&lt;br&gt;
&amp;gt; I have only 15 days in hand. So at this stage should I consider re-writing &lt;br&gt;
&amp;gt; the code in C?&lt;br&gt;
&lt;br&gt;
I am not a production code generation expert, and without actually seeing &lt;br&gt;
the code/model, it's difficult to answer, but it seems like a reasonable &lt;br&gt;
approach to me. You might also want to consider:&lt;br&gt;
&lt;br&gt;
* Real-Time Workshop Embedded Coder &lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.co.uk/products/rtwembedded/).&quot;&gt;http://www.mathworks.co.uk/products/rtwembedded/).&lt;/a&gt; For the differences &lt;br&gt;
betwen RTW and RTW-EC, see this thread &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/newsreader/view_thread/246935&quot;&gt;http://www.mathworks.com/matlabcentral/newsreader/view_thread/246935&lt;/a&gt;&lt;br&gt;
* Target Support Package TC2 (for TI C2000 DSP) &lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.co.uk/products/tic2000/)&quot;&gt;http://www.mathworks.co.uk/products/tic2000/)&lt;/a&gt; - if that corresponds to your &lt;br&gt;
processor&lt;br&gt;
* Target Support Package TC6 (for TI C6000 DSP) &lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.co.uk/products/tic6000/)&quot;&gt;http://www.mathworks.co.uk/products/tic6000/)&lt;/a&gt; - if that corresponds to your &lt;br&gt;
processor&lt;br&gt;
* Embedded IDE Link CC (for TI Code Composer Studio) &lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.co.uk/products/ccslink/)&quot;&gt;http://www.mathworks.co.uk/products/ccslink/)&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I would recommend the use of The MathWorks Consulting &lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.co.uk/services/consulting/jumpstart/)&quot;&gt;http://www.mathworks.co.uk/services/consulting/jumpstart/)&lt;/a&gt; to coach you on &lt;br&gt;
code generation and help you get up to speed quickly with your project, &lt;br&gt;
particularly if you only have 15 days. Contact your MathWorks account &lt;br&gt;
manager who will put you in touch with a consultant.&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Arnaud </description>
    </item>
    <item>
      <pubDate>Mon, 04 May 2009 17:50:17 -0400</pubDate>
      <title>Re: Porting Matlab code to tms320dm6437 evm</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520#647278</link>
      <author>ahmed</author>
      <description>I use Target for TI C6000&amp;#8482; to realize DSP feature extraction algorithm from an image on TMS320C6713 processor. I Have CCS 3.3 evaluation version. I like to know the memory storage required for this algorithm and the time of execution, using Simulink or CCS software, is it possible? Notice that I don&amp;#8217;t have any DSK. </description>
    </item>
    <item>
      <pubDate>Fri, 15 Oct 2010 05:54:04 -0400</pubDate>
      <title>Re: Porting Matlab code to tms320dm6437 evm</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246520#787955</link>
      <author>RAJKUMAR Palaniappan</author>
      <description>Hello friends,&lt;br&gt;
&lt;br&gt;
i dont understand these stuffs but i have a doubt related to this,i have a TMS320DM6437 EVM board but im not good in C code, i have my codes using matlab function and is it possible to convert the matlab codes to C using the embedded matlab, and how to do it?&lt;br&gt;
&lt;br&gt;
Thank you&lt;br&gt;
&lt;br&gt;
Raj&lt;br&gt;
&lt;br&gt;
&quot;Kent System Kulkarni&quot; &amp;lt;kulkarniprathamesh@rocketmail.com&amp;gt; wrote in message &amp;lt;gpbhha$6t4$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; I have my Matlab code ready in the form of different self-designed functions. I want to know which is the best way to port my code on the tms320dm6437 evm board. Which is the best option among the following: &lt;br&gt;
&amp;gt; 1. Using Matlab compiler to get C code and port it on my board via CCS.&lt;br&gt;
&amp;gt; 2. Using Embedded Matlab function in Simulink and Real Time Workshop to target my &lt;br&gt;
&amp;gt;  board.&lt;br&gt;
&amp;gt; 3. Manually converting all the code (about 1000 lines) to C and port it via CCS.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Please reply at the earliest.&lt;br&gt;
&amp;gt; Thank you in advance.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sincerely,&lt;br&gt;
&amp;gt; Prathamesh Kulkarni. </description>
    </item>
  </channel>
</rss>

