stlink jtag 接口定义
https://spotpear.cn/index/study/detail/id/403.html
https://blog.csdn.net/Electrical_IT/article/details/136037545


大家好,又见面了,我是你们的朋友全栈君。
1、实验目的:
- 实现通过st-link调试stm32芯片
2、实验环境:
- stm32开发板留有20pin的调试接口,可接jlink和stlink
- 调试工具使用st-link v2
3、接线方式
- SWD接口需要连接四根线:VCC GND SWDIO SWCLK
- 20pin调试接口对应的pin脚关系:
- Pin 1 – VCC:
- This is the traget board Vcc. It is used by the STLINK/V2
- Pin 7 – TMS/SWDIO:
- The SWD Data signal
- Pin 8 – GND:
- Be sure there is a common ground
- Pin 9 – TCK/SWCLK
- The SWD Clock Signal
- Pin 15 – nSRST/RESET
- System reset – probably optional(你可以不要这个复位pin,直接关电源再上电来复位)
- Pin 1 – VCC:
下图为详细的20pin接口:


浙公网安备 33010602011771号