• 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

  • 相关阅读:
    Linux系统IO和标准IO的接口函数
    聊聊 RocketMQ 名字服务
    [电脑运用及修理]2022年电脑配置推荐(台式1000-20000元预算清单)
    《强化学习周刊》第69期:ICLR2023强化学习论文推荐、MIT实现自动调整内在奖励的强化学习...
    计算机网络【CN】子网划分与子网掩码
    Vue中实现全景房看图3D
    10.20复习
    Linux运维:网络管理
    java8 Stream字段排序sorted()
    1.SpringEL初始
  • 原文地址:https://blog.csdn.net/booksyhay/article/details/126747859