• 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

  • 相关阅读:
    C++STL的迭代器(iterator)
    实验二 分支结构程序设计(Python)
    springboot centos集成 OpenOffice 实现 在线预览 doc excel docx 成pdf的 并且包含中文包和英文包和安装
    CNN卷积神经网络之卷积
    Linux篇18多线程第二部分
    雪花算法(snowflake)
    【iOS】UI学习(一)
    Azure 机器学习:在 Azure 机器学习中使用 Azure OpenAI 模型
    Java解析Json格式数据
    Docker-Compose
  • 原文地址:https://blog.csdn.net/booksyhay/article/details/126747859