ARM官方推荐的JTAG/SWD接口

ULINKplus 提供了一个隔离的 JTAG/SWD 接口,支持电压范围为 1.2V 到 5.5V,最大时钟速度可达 10MHz,且具有 1kV 的隔离等级。该接口允许热插拔到运行的目标。JTAG 和 Serial Wire 信号共享引脚,SWO 信号可选用于数据追踪。在 SWD 模式下,仅使用两个引脚进行通信,第三个引脚用于追踪数据。此外,ULINKplus 还包括一个适用于 STM32 开发板的 6 引脚 SWD 适配器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

JTAG/SWD Interface

The ULINKplus supports an isolated JTAG/SWD interface using a low-cost 10-pin (0.05") connector.

Technical characteristics

InterfaceDescription
JTAG/SWDVoltage range: 1.2 V .. 5.5 V
Clock speed: configurable up to 10 MHz
SWO trace capturing: data rate up to 50 Mbit/s (UART/NRZ Mode)
Isolation: 1 kV
Supports hot-plugging to a running target

Interface Schematic

The target interface schematic shows the JTAG and Serial Wire interface circuits of ULINKplus. All pins are 1kV isolated and support hot-plugging while the target is running.

Use this schematic to help with board design, and for analyzing and debugging your target hardware.

 

JTAG/SWD Connector

The 10-pin, 0.05" JTAG/SWD connector offers ITM and DWT trace information. In SWD mode, two pins are used for debugging: one bi-directional pin (SWDIO) transfers the information and the second pin (SWDCLK) clocks the data. A third pin (SWO) delivers the trace data at minimum system cost. The Serial Wire and JTAG pins are shared.

 

 

Note:

  • KEY (position 7) has no pin and serves only as a key to properly orient the connector.
  • VCC (pin 1) provides the supply voltage for the JTAG/SWD I/O driver and is required as ULINKplus has isolated connection.
  • The 10-pin connector is a Samtec 10-pin: FTSH-105-01-L-DV-007-K connector with pin 7 removed. It's dimensions are: 0.25" x 0.188" (6.35mm x 4.78mm).

JTAG and Serial Wire Signals

Because the 10-pin JTAG/SWD connector supports both JTAG and Serial Wire signals, you can configure the debugger for either JTAG or Serial Wire mode to suit your Cortex device.

JTAG Signals

SignalConnects to...
TMSTest Mode State pin -- Use 100K Ohm pull-up resistor to VCC.
TDOTest Data Out pin.
TDITest Data In pin -- Use 100K Ohm pull-up resistor to VCC.
TCLKTest CLocK pin -- Use 100K Ohm pull-down resistor to GND.
VCCPositive Supply Voltage -- Power supply for JTAG interface drivers.
GNDDigital ground.
RESETRSTIN/ pin -- Connect this pin to the (active low) reset input of the target CPU.

Serial Wire Signals

The Serial Wire mode differs to JTAG debugging, because only two pins are used for the communication. A third pin can be used optionally to trace data. JTAG pins and SW pins are shared.

  • TCLK is SWCLK (Serial Wire Clock)
  • TMS is SWDIO (Serial Wire debug Data Input/Output)
  • TDO is SWO (Serial Wire trace Output)
SignalConnects to...
SWDIOData I/O pin -- Use 100K Ohm pull-up resistor to VCC.
SWOOptional trace output pin.
SWCLKClock pin -- Use 100K Ohm pull-down resistor to GND.
VCCPositive Supply Voltage -- Power supply for JTAG interface drivers.
GNDDigital ground.
RESETRSTIN/ pin -- Connect this pin to the (active low) reset input of the target CPU.

Note:

  • Usually, devices do not include pull-up or pull-down resistors on JTAG nor SW pins. Resistors should be added externally onto the board. However, do not add resistors when the device includes them already.

ULINK SWD Adapter

Many STM32 development boards do not have standard -pin Cortex Debug Connector. For such cases, the ULINKplus kit also includes an adapter for the 6-pin SWD interface which is frequently present on STM32 development boards. The figure below shows the adapter.

 

Pinout

The table below explains the SWD adapter pins in details. The Cortex debug connector is explained in the JTAG/SWD interface

SignalDescription
VCCPositive Supply Voltage -- Power supply for JTAG interface drivers.
SWCLKClock pin
GNDDigital ground.
SWDIOData I/O pin.
NRSTReset input -- Connect this pin to the (active low) reset input of the target CPU.
SWOOptional trace output pin.

参考资料:

Documentation – Arm Developer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值