Thread Subject: Error building a PIL block for C2000

Subject: Error building a PIL block for C2000

From: Kevin

Date: 12 Feb, 2008 14:06:02

Message: 1 of 6

Hello everyone

I've been trying to use the hardware-in-loop function of the
Link for Composer Studio on my 2808 ezdsp.
I'm using Matlab R2007a with Code Composer Studio 3.1 and
the target for C2000

After viewing a webinar of this website
(http://www.mathworks.com/cmspro/req15055.html?eventid=47950),
I thought it would be quite easy, but I've compilation
errors everytime.

I created a really basic subsystem which consist of a simple
gain block for the sake of the test.
I pulled the F2808 EzDSP target preference in it too

In the configuration parameters panel, I went to the Link
for CCS tab, set the build action as "build" , checked
"Configure model to build PIL algorith object code" and set
PIL block action as Create_PIL_Block.

When I try to compile the subsystem, CCS reports an error
during the building process:

undefined first referenced
 symbol in file
--------- ----------------
_pil_main C:\Documents\Subsystem_main.obj
>> error: symbol referencing errors - 'Subsystem.out' not
built

Did I forget something?


Subject: Error building a PIL block for C2000

From: Kevin

Date: 12 Feb, 2008 15:15:07

Message: 2 of 6

Just a quick update. I tried the PIL demo that comes with
the Link for CCS toolbox.

I follow the steps from the tutorial, but it doesn't work.
This time however, the error already appears during the
compilation (not at build time):

"ccslink_pil_main.c", line 10: fatal error: could not open
source file "pil_interface.h"
"pil_interface.c", line 8: fatal error: could not open
source file "pil_interface.h
"ccslink_pil_main.c", line 10: fatal error: could not open
source file "pil_interface.h"

Indeed, those files doesn't seem to be created during the
RTW call.

The only difference in the Simulation parameters is that the
build action is set as create_project


Subject: Error building a PIL block for C2000

From: Kevin

Date: 27 Feb, 2008 14:57:01

Message: 3 of 6

I'm sorry for coming with this issue again, but I've tried
for hours without any results.

The problem is still the same : RTW doesn't create
pil_interface.h and pil_interface_lib.h during the subsystem
building process.

Subject: Error building a PIL block for C2000

From: Antonin Ancelle

Date: 4 Mar, 2008 14:44:32

Message: 4 of 6

Hi Kevin,

This is a reported bug in the Embedded IDE Link CC (aka Link for CCS).

http://www.mathworks.com/support/bugreports/details.html?rp=362908

There is a patch that you can download to fix the problem.

I hope it helps,

Antonin.


"Kevin " <kedecuyp@mathworks.com> wrote in message
news:fos94a$ndu$1@fred.mathworks.com...
> Hello everyone
>
> I've been trying to use the hardware-in-loop function of the
> Link for Composer Studio on my 2808 ezdsp.
> I'm using Matlab R2007a with Code Composer Studio 3.1 and
> the target for C2000
>
> After viewing a webinar of this website
> (http://www.mathworks.com/cmspro/req15055.html?eventid=47950),
> I thought it would be quite easy, but I've compilation
> errors everytime.
>
> I created a really basic subsystem which consist of a simple
> gain block for the sake of the test.
> I pulled the F2808 EzDSP target preference in it too
>
> In the configuration parameters panel, I went to the Link
> for CCS tab, set the build action as "build" , checked
> "Configure model to build PIL algorith object code" and set
> PIL block action as Create_PIL_Block.
>
> When I try to compile the subsystem, CCS reports an error
> during the building process:
>
> undefined first referenced
> symbol in file
> --------- ----------------
> _pil_main C:\Documents\Subsystem_main.obj
>>> error: symbol referencing errors - 'Subsystem.out' not
> built
>
> Did I forget something?
>
>


Subject: Error building a PIL block for C2000

From: Kevin

Date: 5 Mar, 2008 16:09:02

Message: 5 of 6

Thank you for your answers, it really helped!

By the way, do you know if it is possible to create a PIL
block with more than one input? When I compile a subsystem
with multiple inputs, it only show the first one on the
compiled block

"Antonin Ancelle" <antonin.ancelle@mathworks.com> wrote in
message <fqjn8j$rj1$1@fred.mathworks.com>...
> Hi Kevin,
>
> This is a reported bug in the Embedded IDE Link CC (aka
Link for CCS).
>
>
http://www.mathworks.com/support/bugreports/details.html?rp=362908
>
> There is a patch that you can download to fix the problem.
>
> I hope it helps,
>
> Antonin.
>

Subject: Error building a PIL block for C2000

From: Antonin Ancelle

Date: 6 Mar, 2008 13:00:22

Message: 6 of 6

Yes, multiple input is fine, even from different rate groups as long as all
the rates inside the subsystem are present on the in/output ports.

You probably need to build you PIL block.
Double click on the block and click "build" and then "download".

You can automate this if you go in the configset (Ctrl+E), under "Link for
CCS", below the "Configure model to build PIL algorithm object code"
checkbox, select PIL block action to be:
"Create_PIL_block_build_and_download" instead of the default "none".

I would always use this option while using PIL, this was changed to the
default setting in R2007b.
After the PIL block is created, it will build the PIL application, scale the
block to its original size and attach the correct amount of in/outputs.

I hope it helps,
Good luck!

Antonin.

"Kevin " <kedecuyp@mathworks.com> wrote in message
news:fqmgiu$aqm$1@fred.mathworks.com...
> Thank you for your answers, it really helped!
>
> By the way, do you know if it is possible to create a PIL
> block with more than one input? When I compile a subsystem
> with multiple inputs, it only show the first one on the
> compiled block
>
> "Antonin Ancelle" <antonin.ancelle@mathworks.com> wrote in
> message <fqjn8j$rj1$1@fred.mathworks.com>...
>> Hi Kevin,
>>
>> This is a reported bug in the Embedded IDE Link CC (aka
> Link for CCS).
>>
>>
> http://www.mathworks.com/support/bugreports/details.html?rp=362908
>>
>> There is a patch that you can download to fix the problem.
>>
>> I hope it helps,
>>
>> Antonin.
>>
>


Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
c2000 Kevin 12 Feb, 2008 09:10:14
pil Kevin 12 Feb, 2008 09:10:14
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com