JTAG/SWD接口定义

目录

1. ST-Link接口定义

2. ULINK2接口定义


为方便查阅,将ST-LINK和ULINK的JTAG和SWD接口定义总结如下:

1. ST-Link接口定义

Pin no.

ST-LINK/V2 connector (CN3)

ST-LINK/V2 function

Target connection (JTAG)

Target connection (SWD)

1

VAPP

Target VCC

MCU VDD(1)

MCU VDD(1)

2

3

TRST

JTAG TRST

JNTRST

GND(2)

4

GND(3)

GND(3)

GND(3)(4)

GND(3)(4)

5

TDI

JTAG TDO

JTDI

GND(2)

6

GND(3)

GND(3)

GND(3)(4)

GND(3)(4)

7

TMS_SWDIO

JTAG TMS, SW IO

JTMS

SWDIO

8

GND(3)

GND(3)

GND(3)(4)

GND(3)(4)

9

TCK_SWCLK

JTAG TCK, SW CLK

JTCK

SWCLK

10

GND(5)

GND(5)

GND(4)(5)

GND(4)(5)

11

Not connected

Not connected

Not connected

Not connected

12

GND

GND

GND(4)

GND(4)

13

TDO_SWO

JTAG TDI, SWO

JTDO

TRACESWO(6)

14

GND(5)

GND(5)

GND(4)(5)

GND(4)(5)

15

NRST

NRST

NRST

NRST

16

GND(3)

GND(3)

GND(3)(4)

GND(3)(4)

17

Not connected

Not connected

Not connected

Not connected

18

GND

GND

GND(4)

GND(4)

19

VDD(3)

VDD (3.3 V)(3)

Not connected

Not connected

20

GND

GND

GND(4)

GND(4)

1. The power supply from the application board is connected to the ST-LINK/V2 debugging and programming board to ensure signal compatibility between the boards.

2. Connect to GND for noise reduction on the ribbon.

3. Available on ST-LINK/V2 only, not connected on ST-LINK/V2-ISOL.

4. At least one of these pin must be connected to the ground for correct behavior, it is recommended to connecting all of them.

5. GND on ST-LINK/V2, used by SWIM on ST-LINK/V2-ISOL (see Table 3).

6. Optional: for Serial Wire Viewer (SWV) trace.

参考文献:um1075-stlinkv2-incircuit-debuggerprogrammer-for-stm8-and-stm32-stmicroelectronics.pdf

JTAG/SWD接口定义_第1张图片

2. ULINK2接口定义

仿真器端口

连接目标板

备注

1. VCC

MCU电源VCC

VCC

2. VCC

MCU电源VCC

VCC

3. TRST

TRST

Test ReSeT/ pin

4. GND

GND或悬空

5. TDI

TDI

Test Data In pin

6. GND

GND或悬空

7. TMS, SWIO

TMS, SWIO

JTAG:Test Mode State pin ; SWD: Data I/O pin

8. GND

GND或悬空

9. TCLK, SWCLK

TMS, SWCLK

JTAG: Test Clock pin ; SWD: Clock pin

10. GND

GND或悬空

11. RTCK

 RTCK

12. GND

GND或悬空

13. TDO

TDO

Test Data Out pin

14. GND

GND或悬空

15. RESET

RESET

RSTIN pin

16. GND

GND或悬空

17. NC

NC

18. GND

GND或悬空

19. NC

NC

20. GND

GND或悬空

JTAG/SWD接口定义_第2张图片

JTAG/SWD接口定义_第3张图片

ULINK2指定的标准接口

你可能感兴趣的:(硬件应用,stm32)