1 安装Segger SES 确保已经安装正常
2 安装java环境
1 下载地址https://java.com/en/download/manual.jsp 选择![](https://img-blog.csdnimg.cn/20200605190122664.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3d1bmVpcWlhbmc=,size_16,color_FFFFFF,t_70)
2 配置jre环境
a 在系统变量中新建环境变量JAVA_HOME,配置值为Java的JDK安装目录,本文作者安装的的路径为C:\Program Files\Java\jre1.8.0_251
b 新建CLASSPATH系统环境变量,设置值为.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar,注意签名的点和分号不能少
c 验证环境 进入命令行输入java验证
3 下载 cmsisjava包
下载地址https://sourceforge.net/projects/cmsisconfig/?source=directory, 也可以在 Nordic_Semi/nRF5_SDK_xxx_17b948a/external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar目录查找是否存在
4 Segger SES 配置 cmsisjava包的路径
5 修改tools.xml文件,
File -> Open Studio Folder... -> External Tools Configuration
修改为
<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>
之后关掉这个文件且保存,退出ses,然后重启ses,
6 找到sdk_config.h ,右键选择CMSIS Configuration Wizard 出现以下界面
至此就成功了!!