2015-03-19 03:59 AM
I have configured few interrupts using Application Configuration -> ISRs (under SPC OSAL Component). I have multiple header files which I supplied to the 'Headers' parameter under 'ISRs'. I have provided 4 different header files. For another interrupt, I want one more header file. When I try to add one more file i.e. 5th one, the SPC5Studio IDE hangs (initially shows busy but later changes to 'not responding' and can not be exited). Is ther limit for no of header files for ISRs? Why is this issue?
Thanks.Mike. #interrupts---headers2015-03-19 05:59 AM
Hi Mike,
You're right there is a problem in the regular expression used to discriminate good and wrong list of header files.I've found a solution and we are going to deliver it to you asap.BRPhilippe2015-03-19 11:58 PM
Hi,
Waiting for a definitive solution to your headers file problem, you can try replacing the regular expression in your OSAL component plugin,Located in
C:\SPC5Studio\eclipse\plugins\org.chibios.spc5.components.osal.
<yourplatform>
\plugin.xml
</p>
Here is the proposed substitution:
<property
brief=''Comma separated list of headers to be included in the ISRs module other than components.h.''
editable=''true''
name=''Headers''
regex
=''^$|^([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*))|^(([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*),)+([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*)))$
''
required=''false''
type=''string''>
</property>
instead of:
<property
brief=''Comma separated list of headers to be included in the ISRs module other than components.h.''
editable=''true''
name=''Headers''
regex
=''^([a-zA-Z_]([a-zA-Z0-9_\-/]*(|\.h,[a-zA-Z_]))*\.h)*$
''required=''false''
type=''string''>
</property>
After this substitution, please restart your SPC5Studio with the –clean option for this time only.For example from a CMD tool:
> cd C:\SPC5Studio\eclipse
> SPC5Studio.exe -cleanHope this helpsBRPhilippe2015-03-24 08:13 AM
Hello Philippe,
Thanks for the clarifications. I understand that plugin.xml from all the folders (as mentioned by you) need this modifications. There are 9 such folders. Please confirm.Thanks.Mike.2015-03-25 01:08 AM
Hello Mike,
If you want you can modify only the plugin corresponding to the platform you are actually using. Others are useless if you don't use them.Please note that an updated version will be published today or tomorrow.Best regardsPhilippe2015-03-26 04:18 AM
Thanks Philippe for the updates. Look forward to receive the updated version sooner!
Mike.2015-03-29 11:42 PM
Hello Philippe,
As per your instructions, I tried modifying the plugin.xml for my SPC component but looks that it is not working. Please find attached images for the same. Look forward to your earliest reply. Thanks. Mike. ________________ Attachments : ST_SPC_ISR_Headers_plugin_error_01.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtZc&d=%2Fa%2F0X0000000aRu%2FHdndscXbptKlqUtaHwsQu_6ifpW3ht227lHjUheO6bo&asPdf=falseST_SPC_ISR_Headers_plugin_error_02.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtV1&d=%2Fa%2F0X0000000aQt%2F2E6By9zJzq821jk5jC8AeknzsJ8tmMaCLie0EVu_vC8&asPdf=false2015-03-30 01:21 AM
Hello Mike,
I think that there is just a missing '' character at the end of the regex line:regex=''^$|^([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*))|^(([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*),)+([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*)))$
''
Could you please confirm?BRPhilippeFrom: MikePosted: Monday, March 30, 2015 8:42 AMSubject: Application Configuration - ISRs - HeadersHello Philippe,
As per your instructions, I tried modifying the plugin.xml for my SPC component but looks that it is not working. Please find attached images for the same.Look forward to your earliest reply.Thanks.Mike.2015-03-30 01:50 AM
It is there Philippe. Please see attached plugin.xml file.
Mike. ________________ Attachments : plugin.xml : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hta0&d=%2Fa%2F0X0000000aRy%2Friwl_Gw7PhxDq2kFTUIWe7ReQqOrRIuSQgkdA_pQ4iU&asPdf=false2015-03-30 01:55 AM
Yes Mike, but in line 177, there are two equals sign, where you should have only one.
Please replace line 177 by this line:regex=''^$|^([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*))|^(([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*),)+([a-zA-Z_]([a-zA-Z0-9_\-/]*\.h[a-zA-Z_]*)))$''... and let me know.BRPhilippe