FORUM TOPIC · READ ONLY
Improve duplicate ports warning
Improve duplicate ports warning
Forum : Request for new functions / Peripheral / Chip support
3 message(s) · archive en lecture seule
When I'm compiling my model, I get the following:
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.
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 196I 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.
Re: Improve duplicate ports warning
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
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
Re: Improve duplicate ports warning
Citation : bmairs 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