ARM官方推荐的JTAG/SWD接口

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

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在考察当前市面上现有的仿真器之后,我们推出一款硬件软件均开源的仿真器,相比目前流行的jlink与stlink,具有以下优势: 1. 硬件原理图PCB完全开源,软件开源,无版权风险。当前市面上的jlink/stlink均为盗版,使用上存在一些法律问题,部分jlink和IDE如MDK配合使用时,会提示盗版而无法正常使用,且部分jlink版本存在使用一段时间后丢固件的问题,一旦固件丢失,需要手动操作软件恢复固件,操作极其繁琐。同时 jlink售价亦较为昂贵。 2.引出SWD接口,支持主流上位机调试软件,包括keil、IAR、openocd,均支持使用SWD进行下载、单步调试。 3. 引出JTAG接口,配合openocd可支持全球范围内几乎所有SoC芯片的调试,如ARM Cortex-A系列、DSP、FPGA、MIPS等,因为SWD协议只是ARM自己定义的私有协议,而JTAG则是国际IEEE 1149标准。通常的仿真器目标芯片一般为ARM Cortex-M系列,均未引出JTAG接口,而本产品引出JTAG接口,适合您在其他平台下进行开发调试工作。 4.支持虚拟串口(也就是既可以用来当仿真器,又可以作为串口工具使用,替代ch340、cp2102,pl2303)。 5. DAPLink是CMSIS-DAP仿真器的升级版,也是ARM官方在开源社区力推的仿真器,最大的特点是支持U盘拖拽烧录。插入DAPLink之后,PC上会出来一个U盘,只需将hex或者bin文件拖入到U盘中,即可完成烧录。 6. DAPLink支持U盘固件升级,只需将nRST接地,插入DAPLink,PC上即会出来一个U盘,只需将新的固件(hex或者bin文件)拖入到U盘中,即可完成固件升级。因为DAPLink实现了一个带U盘功能的bootloader,可以方便的完成固件升级。若您有基于STM32的产品正在量产,而且产品后续可能需要升级,则DAPLink中的bootloader代码非常值得您参考,客户端不需要安装复杂的IDE或者烧写工具才能完成升级,只需拖动到U盘即可方便的完成您的产品升级。 7. 具有一定深度的原理性的教程讲解视频,包括从硬件到软件,适合对嵌入式开发感兴趣的朋友观看学习。 更多信息,请点击https://github.com/wuxx/nanoDAP。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值