盛行的是JTAG/SWD
仿真器端口 | 衔接方针板 | 补白 |
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或悬空 |
下面是规范的接口摆放:
ST-Link/V2 JTA/SWD接口是怎么界说的?
下面为ST-Link/V2 JTAG/SWD接口界说:
仿真器端口 | 衔接方针板 | 功用 |
1. TVCC | MCU电源VCC | 衔接STM32方针板的电源VCC |
2. TVCC | MCU电源VCC | 衔接STM32方针板的电源VCC |
3. TRST | GND | GROUND |
4. UART-RX | GND | GROUND |
5. TDI | TDI | 衔接STM32的JTAG TDI |
6. UART-TX | GND | GROUND |
7. TMS, SWIO | TMS, SWIO | 衔接STM32的JTAG的TMS, SWD的SW IO |
8. BOOT0 | GND | GROUND |
9. TCK, SWCLK | TCK, SWCLK | 衔接STM32的JTAG的TCK, SWD的SW CLK |
10. SWIM | GND | GROUND |
11. NC | NC | Unused |
12. GND | GND | GROUND |
13. TDO | TDO | 衔接STM32的JTAG TDO |
14. SWIM-RST | GND | GROUND |
15. STM32-RESET | RESET | 衔接STM32方针板的RESET端口 |
16. KEY | NC | GROUND |
17. NC | NC | Unused |
18. GND | GND | GROUND |
19. VDD | NC | VDD (3.3V) |
20. GND | GND | GROUND |
下面是ST-Link/V2 JTAG/SWD规范的接口摆放:
STM32F10X手册中要求的JTAG/SWD接法: