Improve duplicate ports warning

Post Reply
bmairs
Posts: 69
Joined: Mon Jul 27, 2009 7:51 pm

Improve duplicate ports warning

Post by bmairs » Tue Feb 22, 2011 8:23 pm

When I'm compiling my model, I get the following:

Code: Select all

Warning: --- =========>  PORT A0 is used by at least two peripheral  <========= --- 
> In E:\Documents and Settings\Bryant Mairs\My Documents\MATLAB\blocks\dsPIC_PortSetting.p>setTypePort at 525
  In E:\Documents and Settings\Bryant Mairs\My Documents\MATLAB\blocks\dsPIC_PortSetting.p>dsPIC_PortSetting at 349
  In E:\Documents and Settings\Bryant Mairs\My Documents\MATLAB\blocks\dsPIC_MASTER_callback.p>dsPIC_MASTER_callback at 89
  In general\private\openmdl at 13
  In open at 158
  In uiopen at 196
I get this error 5 separate times, yet I can't find in my model where this port is used multiple times. This warning and compilation both don't give me any hint as to what's causing this conflict either. Would it be possible to improve these warning so that they say what block was being evaluated when the duplicate port use was found? It would also be nice is during compilation a list of all used ports and which ones they were could be output instead of just how many pins are used.

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: Improve duplicate ports warning

Post by LubinKerhuel » Tue Feb 22, 2011 11:44 pm

Hi Bryan,

Thanks for looking closely at the generated warning. Few guys does it I guess.
I will try to take into account your remarks about telling which peripheral use which port. There might be necessary to do few internal changes to do so. The best would then be to create a sketch diagram of the dsPIC with used ports with corresponding peripheral; however that's a piece of work to do... I might think to do it in txt form...

About your PORT A0. Does the Master block use A0 for a busy flag or an overflow flag?
Feel free to update your model so as I try to find also! It may be a blockset bug also!

I've been working recently on CAN peripheral as you may see on the wiki example page (first draft). I'll then work on the ECAN You provide me. I am still very late in that project.

Thanks for your suggestions.
Lubin

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: Improve duplicate ports warning

Post by LubinKerhuel » Tue Mar 01, 2011 11:44 pm

bmairs wrote:Would it be possible to improve these warning so that they say what block was being evaluated when the duplicate port use was found? It would also be nice is during compilation a list of all used ports and which ones they were could be output instead of just how many pins are used
All is done in version 3.4c.
The new block Ports Info provide information about pin used.

I hope these changes will fulfill your needs.

Lubin

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests