SEGGER Embedded Studio 可以装载的CMSIS插件。

这个插件能够帮助我们快速查看和修改配置文件,免去了费时费眼的翻越文件过程。
- 这个插件需要电脑安装JDK并配置好环境变量,没有装的请先安装配置好。
- File -> Open Studio Folder... -> External Tools Configuration打开tools.xml并修改为以下内容
<tools>
<!-- PC-lint - http://www.gimpel.com/html/pcl.htm -->
<if host_os="win">
<item name="Tool.PClint">
<menu>&PC-lint (Unit Check)</menu>
<text>PC-lint (Unit Check)</text>
<tip>Run a PC-lint unit checkout on the selected file or folder</tip>
<key>Ctrl+L, Ctrl+P</key>
<match>*.c;*.cpp</match>
<message>Linting</message>
<commands>
"$(LINTDIR)/lint-nt" -v -incvar(__CW_ARM) -i$(LINTDIR)/lnt co-gcc.lnt $(DEFINES) $(INCLUDES) -D__GNUC__ -u -b +macros +macros -w2 -e537 +fie +ffn -width(0,4) -hF1 "-format=%f:%l:%C:\s%t:\s%m [-e%n]" "$(InputPath)"
</commands>
</item>
<item name="Tool.CMSIS_Config_Wizard" wait="no">
<menu>&CMSIS Configuration Wizard</menu>
<text>CMSIS Configuration Wizard</text>
<tip>Open a configuration file in CMSIS Configuration Wizard</tip>
<key>Ctrl+Y</key>
<match>*config*.h</match>
<message>CMSIS Config</message>
<commands>
java -jar "$(CMSIS_CONFIG_TOOL)" "$(InputPath)"
</commands>
</item>
</if>
</tools>
- Project -> Options...
调整到Project 层后设置Project Macros,CMSIS_CONFIG_TOOL为 CMSIS_Configuration_Wizard.jar的路径。
例如:CMSIS_CONFIG_TOOL=E:\SDK\external_tools\cmsisconfig\CMSIS_Configuration_Wizard.jar
这文件在官方SDK上述路径下都会有

设置完成后关闭IDE重新打开,在sdk_config文件中右击 -> Tools -> CMSIS Config Wizard即可打开设置界面