<----------------------------------------------------------------------------->
以前经常使用的仿真器是j-link V8,现在用ST-LINK也还不错,而且还比较便宜。想了解j-link V8的接法可以参考之前的笔记:https://blog.csdn.net/tongbiaos/article/details/50342399
改用ST-Link后使用的接线口为SWCLK、SWDIO、GND、3.3V这4个端子。另外下载前需要修改keil的配置。
1.使用ST-LINK配置中的“Device”选择具体的型号。
2.在“Debug”下的Use下选择ST-Link Debugger。点击setting按钮,在弹出的对话框上面选择SW模式,查看是否能找到芯片。
3.在2中弹处的窗口中选择“Flash Download”,添加对应的STM32型号。点击确定。
4.在Options for Target 窗口下选择Utilities选项夹,选择ST-Link Debugger。
5.完成上述配置后,即可通过ST-Link进行下载了。
<----------------------------------------------------------------------------->