ST意法半导体
直播中

丛聪

8年用户 286经验值
私信 关注
[问答]

是否限制ISR的头文件?

我使用应用程序配置配置了几个中断 - > ISR(在SPC OSAL组件下)。我有多个头文件,我提供给'ISRs'下的'Headers'参数。我提供了4个不同的头文件。对于另一个中断,我想要一个更多的头文件。当我尝试再添加一个文件,即第5个文件时,SPC5Studio IDE会挂起(最初显示忙碌但稍后更改为“未响应”且无法退出)。是否限制ISR的头文件?为什么会这个问题?


谢谢。
麦克风。
#interrupts ---头

以上来自于谷歌翻译


以下为原文




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---headers

回帖(8)

黄晔华

2019-4-25 08:16:37
嗨,
 
等待头文件问题的最终解决方案,您可以尝试替换OSAL组件插件中的正则表达式,
位于
C: SPC5Studio 日食插件 org.chibios.spc5.components.osal。
< yourplatform>
plugin.xml中
< / p为H.
这是建议的替代:
<属性
 
brief =''逗号分隔的标题列表,包含在除组件h之外的ISR模块中。''
 
编辑=“”真“”
 
名=“”接头“”
 
正则表达式
= '' ^ $ | ^([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 _] *)))$
“”
 
需要=“”假“”
 
类型= '' 字串 '' >
 
< /性>
 
 
代替:
 
 
<属性
 
brief =''逗号分隔的标题列表,包含在除组件h之外的ISR模块中。''
 
编辑=“”真“”
 
名=“”接头“”
 
正则表达式
= '' ^([A-ZA-Z _]([A-ZA-Z0-9 _  - /] *(|  .H,[A-ZA-Z _]))*  H)* $
“”
需要=“”假“”
 
类型= '' 字串 '' >
 
< /性>
 
在此替换之后,请仅使用“清除”选项重新启动SPC5Studio。
例如,从CMD工具:
 
> cd C: SPC5Studio  eclipse
 
> SPC5Studio.exe -clean
 
 
希望这可以帮助
BR
菲利普

以上来自于谷歌翻译


以下为原文







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:SPC5Studioeclipsepluginsorg.chibios.spc5.components.osal.

plugin.xml



Here is the proposed substitution:



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''>





instead of:




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''>




After this substitution, please restart your SPC5Studio with the –clean option for this time only.

For example from a CMD tool:

> cd C:SPC5Studioeclipse

> SPC5Studio.exe -clean



Hope this helps
BR
Philippe
举报

丛聪

2019-4-25 08:30:30
你好菲利普,
 
谢谢你的澄清。我知道所有文件夹(如你所提到的)的plugin.xml都需要这些修改。有9个这样的文件夹。请确认。
 
谢谢。
麦克风。

以上来自于谷歌翻译


以下为原文





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.
举报

丛聪

2019-4-25 09:07:59
感谢Philippe的更新。期待尽快收到更新版本!
 
麦克风。

以上来自于谷歌翻译


以下为原文





Thanks Philippe for the updates. Look forward to receive the updated version sooner!

Mike.
举报

丛聪

2019-4-25 10:11:36
谢谢菲利普。虽然我得到了一些错误日志,但这项工作成功请参照附件。谢谢。
 
 
麦克风。

以上来自于谷歌翻译


以下为原文





Thanks Philippe. This worked successfully although I getting some error log. Please see attached. Thanks.


Mike.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分