<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163605</link>
    <title>MATLAB Central Newsreader - Error building a PIL block for C2000</title>
    <description>Feed for thread: Error building a PIL block for C2000</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>Tue, 12 Feb 2008 14:06:02 -0500</pubDate>
      <title>Error building a PIL block for C2000</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163605#414479</link>
      <author>Kevin </author>
      <description>Hello everyone&lt;br&gt;
&lt;br&gt;
I've been trying to use the hardware-in-loop function of the&lt;br&gt;
Link for Composer Studio on my 2808 ezdsp.&lt;br&gt;
I'm using Matlab R2007a with Code Composer Studio 3.1 and&lt;br&gt;
the target for C2000&lt;br&gt;
&lt;br&gt;
After viewing a webinar of this website&lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.com/cmspro/req15055.html?eventid=47950),&quot;&gt;http://www.mathworks.com/cmspro/req15055.html?eventid=47950),&lt;/a&gt;&lt;br&gt;
I thought it would be quite easy, but I've compilation&lt;br&gt;
errors everytime.&lt;br&gt;
&lt;br&gt;
I created a really basic subsystem which consist of a simple&lt;br&gt;
gain block for the sake of the test.&lt;br&gt;
I pulled the F2808 EzDSP target preference in it too&lt;br&gt;
&lt;br&gt;
In the configuration parameters panel, I went to the Link&lt;br&gt;
for CCS tab, set the build action as &quot;build&quot; , checked&lt;br&gt;
&quot;Configure model to build PIL algorith object code&quot; and set&lt;br&gt;
PIL block action as Create_PIL_Block.&lt;br&gt;
&lt;br&gt;
When I try to compile the subsystem, CCS reports an error&lt;br&gt;
during the building process:&lt;br&gt;
&lt;br&gt;
undefined                        first referenced&lt;br&gt;
&amp;nbsp;symbol                              in file&lt;br&gt;
---------                        ----------------&lt;br&gt;
_pil_main                   C:\Documents\Subsystem_main.obj&lt;br&gt;
&amp;gt;&amp;gt;   error: symbol referencing errors - 'Subsystem.out' not&lt;br&gt;
built&lt;br&gt;
&lt;br&gt;
Did I forget something?</description>
    </item>
    <item>
      <pubDate>Tue, 12 Feb 2008 15:15:07 -0500</pubDate>
      <title>Re: Error building a PIL block for C2000</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163605#414500</link>
      <author>Kevin </author>
      <description>Just a quick update. I tried the PIL demo that comes with&lt;br&gt;
the Link for CCS toolbox.&lt;br&gt;
&lt;br&gt;
I follow the steps from the tutorial, but it doesn't work. &lt;br&gt;
This time however, the error already appears during the&lt;br&gt;
compilation (not at build time): &lt;br&gt;
&lt;br&gt;
&quot;ccslink_pil_main.c&quot;, line 10: fatal error: could not open&lt;br&gt;
source file &quot;pil_interface.h&quot;&lt;br&gt;
&quot;pil_interface.c&quot;, line 8: fatal error: could not open&lt;br&gt;
source file &quot;pil_interface.h&lt;br&gt;
&quot;ccslink_pil_main.c&quot;, line 10: fatal error: could not open&lt;br&gt;
source file &quot;pil_interface.h&quot;&lt;br&gt;
&lt;br&gt;
Indeed, those files doesn't seem to be created during the&lt;br&gt;
RTW call.&lt;br&gt;
&lt;br&gt;
The only difference in the Simulation parameters is that the&lt;br&gt;
build action is set as create_project</description>
    </item>
    <item>
      <pubDate>Wed, 27 Feb 2008 14:57:01 -0500</pubDate>
      <title>Re: Error building a PIL block for C2000</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163605#417681</link>
      <author>Kevin </author>
      <description>I'm sorry for coming with this issue again, but I've tried&lt;br&gt;
for hours without any results. &lt;br&gt;
&lt;br&gt;
The problem is still the same : RTW doesn't create &lt;br&gt;
pil_interface.h and pil_interface_lib.h during the subsystem&lt;br&gt;
building process. </description>
    </item>
    <item>
      <pubDate>Tue, 04 Mar 2008 14:44:32 -0500</pubDate>
      <title>Re: Error building a PIL block for C2000</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163605#418922</link>
      <author>Antonin Ancelle</author>
      <description>Hi Kevin,&lt;br&gt;
&lt;br&gt;
This is a reported bug in the Embedded IDE Link CC (aka Link for CCS).&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/bugreports/details.html?rp=362908&quot;&gt;http://www.mathworks.com/support/bugreports/details.html?rp=362908&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
There is a patch that you can download to fix the problem.&lt;br&gt;
&lt;br&gt;
I hope it helps,&lt;br&gt;
&lt;br&gt;
Antonin.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Kevin &quot; &amp;lt;kedecuyp@mathworks.com&amp;gt; wrote in message &lt;br&gt;
news:fos94a$ndu$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hello everyone&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I've been trying to use the hardware-in-loop function of the&lt;br&gt;
&amp;gt; Link for Composer Studio on my 2808 ezdsp.&lt;br&gt;
&amp;gt; I'm using Matlab R2007a with Code Composer Studio 3.1 and&lt;br&gt;
&amp;gt; the target for C2000&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; After viewing a webinar of this website&lt;br&gt;
&amp;gt; (&lt;a href=&quot;http://www.mathworks.com/cmspro/req15055.html?eventid=47950),&quot;&gt;http://www.mathworks.com/cmspro/req15055.html?eventid=47950),&lt;/a&gt;&lt;br&gt;
&amp;gt; I thought it would be quite easy, but I've compilation&lt;br&gt;
&amp;gt; errors everytime.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I created a really basic subsystem which consist of a simple&lt;br&gt;
&amp;gt; gain block for the sake of the test.&lt;br&gt;
&amp;gt; I pulled the F2808 EzDSP target preference in it too&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In the configuration parameters panel, I went to the Link&lt;br&gt;
&amp;gt; for CCS tab, set the build action as &quot;build&quot; , checked&lt;br&gt;
&amp;gt; &quot;Configure model to build PIL algorith object code&quot; and set&lt;br&gt;
&amp;gt; PIL block action as Create_PIL_Block.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; When I try to compile the subsystem, CCS reports an error&lt;br&gt;
&amp;gt; during the building process:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; undefined                        first referenced&lt;br&gt;
&amp;gt; symbol                              in file&lt;br&gt;
&amp;gt; ---------                        ----------------&lt;br&gt;
&amp;gt; _pil_main                   C:\Documents\Subsystem_main.obj&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;   error: symbol referencing errors - 'Subsystem.out' not&lt;br&gt;
&amp;gt; built&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Did I forget something?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Wed, 05 Mar 2008 16:09:02 -0500</pubDate>
      <title>Re: Error building a PIL block for C2000</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163605#419194</link>
      <author>Kevin </author>
      <description>Thank you for your answers, it really helped!&lt;br&gt;
&lt;br&gt;
By the way, do you know if it is possible to create a PIL&lt;br&gt;
block with more than one input? When I compile a subsystem&lt;br&gt;
with multiple inputs, it only show the first one on the&lt;br&gt;
compiled block&lt;br&gt;
&lt;br&gt;
&quot;Antonin Ancelle&quot; &amp;lt;antonin.ancelle@mathworks.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;fqjn8j$rj1$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi Kevin,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; This is a reported bug in the Embedded IDE Link CC (aka&lt;br&gt;
Link for CCS).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/bugreports/details.html?rp=362908&quot;&gt;http://www.mathworks.com/support/bugreports/details.html?rp=362908&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; There is a patch that you can download to fix the problem.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I hope it helps,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Antonin.&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Thu, 06 Mar 2008 13:00:22 -0500</pubDate>
      <title>Re: Error building a PIL block for C2000</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163605#419378</link>
      <author>Antonin Ancelle</author>
      <description>Yes, multiple input is fine, even from different rate groups as long as all &lt;br&gt;
the rates inside the subsystem are present on the in/output ports.&lt;br&gt;
&lt;br&gt;
You probably need to build you PIL block.&lt;br&gt;
Double click on the block and click &quot;build&quot; and then &quot;download&quot;.&lt;br&gt;
&lt;br&gt;
You can automate this if you go in the configset (Ctrl+E), under &quot;Link for &lt;br&gt;
CCS&quot;, below the &quot;Configure model to build PIL algorithm object code&quot; &lt;br&gt;
checkbox, select PIL block action to be:&lt;br&gt;
&quot;Create_PIL_block_build_and_download&quot; instead of the default &quot;none&quot;.&lt;br&gt;
&lt;br&gt;
I would always use this option while using PIL, this was changed to the &lt;br&gt;
default setting in R2007b.&lt;br&gt;
After the PIL block is created, it will build the PIL application, scale the &lt;br&gt;
block to its original size and attach the correct amount of in/outputs.&lt;br&gt;
&lt;br&gt;
I hope it helps,&lt;br&gt;
Good luck!&lt;br&gt;
&lt;br&gt;
Antonin.&lt;br&gt;
&lt;br&gt;
&quot;Kevin &quot; &amp;lt;kedecuyp@mathworks.com&amp;gt; wrote in message &lt;br&gt;
news:fqmgiu$aqm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Thank you for your answers, it really helped!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; By the way, do you know if it is possible to create a PIL&lt;br&gt;
&amp;gt; block with more than one input? When I compile a subsystem&lt;br&gt;
&amp;gt; with multiple inputs, it only show the first one on the&lt;br&gt;
&amp;gt; compiled block&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Antonin Ancelle&quot; &amp;lt;antonin.ancelle@mathworks.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; message &amp;lt;fqjn8j$rj1$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; Hi Kevin,&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; This is a reported bug in the Embedded IDE Link CC (aka&lt;br&gt;
&amp;gt; Link for CCS).&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/support/bugreports/details.html?rp=362908&quot;&gt;http://www.mathworks.com/support/bugreports/details.html?rp=362908&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; There is a patch that you can download to fix the problem.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; I hope it helps,&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Antonin.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; </description>
    </item>
  </channel>
</rss>

