JLink、JTAG接口详细图解「建议收藏」

JLink、JTAG接口详细图解「建议收藏」说明:1脚:通常连接到目标板的vdd,用来检测目标系统是否供电;检测原理上图中有简单的说明。2脚:原版的JLink这个引脚没有使用,不提供Vsupply输出,而很多改造版的JLink通过跳线选择从该引脚输出3.3V的电压给外边,我的就是这样的。可以到网上找JLink的原理图看看。http://infocenter.arm.com/help/index.jsp?top

大家好,又见面了,我是你们的朋友全栈君。

JLink、JTAG接口详细图解
说明:

1脚:通常连接到目标板的vdd,用来检测目标系统是否供电;检测原理上图中有简单的说明。

2脚:原版的JLink这个引脚没有使用,不提供Vsupply输出,而很多改造版的JLink通过跳线选择从该引脚输出3.3V的电压给外边,我的就是这样的。

可以到网上找JLink的原理图看看。

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0517b/Cjaeccji.html

JTAG interface signals

The following table describes the signals on the JTAG interfaces:

Table 1. JTAG signals

Signal

I/O

Description

DBGACK

–

This pin is connected in the RVI run control unit, but is not supported in the current release of the software. It is reserved for compatibility with other equipment to be used as a debug acknowledge signal from the target system. It is recommended that this signal is pulled LOW on the target.

DBGRQ

–

This pin is connected in the RVI run control unit, but is not supported in the current release of the software. It is reserved for compatibility with other equipment to be used as a debug request signal to the target system. The RVI software maintains this signal as LOW.

When applicable,RVI uses the scan chain 2 of the processor to put the processor in debug state. It is recommended that this signal is pulled LOW on the target.

GND

–

Ground.

nSRST

Input/output

Active Low output from RVI to the target system reset, with a 4.7kΩ pull-up resistor for de-asserted state. This is also an input to RVI so that a reset initiated on the target can be reported to the debugger.

This pin must be pulled HIGH on the target to avoid unintentional resets when there is no connection.

nTRST

Output

Active Low output from RVI to the Reset signal on the target JTAG port, driven to the VTref voltage for de-asserted state. This pin must be pulled HIGH on the target to avoid unintentional resets when there is no connection.

RTCK

Input

Return Test Clock signal from the target JTAG port to RVI. Some targets must synchronize the JTAG inputs to internal clocks. To assist in meeting this requirement, you can use a returned, and retimed, TCK to dynamically control the TCK rate. RVI provides Adaptive Clock Timing, that waits for TCK changes to be echoed correctly before making more changes. Targets that do not have to process TCK can ground this pin.

RTCK is not supported in Serial Wire Debug (SWD) mode.

TCK

Output

Test Clock signal from RVI to the target JTAG port. It is recommended that this pin is pulled LOW on the target.

TDI

Output

Test Data In signal from RVI to the target JTAG port. It is recommended that this pin is pulled HIGH on the target.

TDO

Input

Test Data Out from the target JTAG port to RVI. It is recommended that this pin is pulled HIGH on the target.

TMS

Output

Test Mode signal from RVI to the target JTAG port. This pin must be pulled HIGH on the target so that the effect of any spurious TCKs when there is no connection is benign.

Vsupply

Input

This pin is not connected in the RVI unit. It is reserved for compatibility with other equipment to be used as a power feed from the target system.

VTref

Input

This is the target reference voltage. It indicates that the target has power, and It must be at least 0.628V. VTref is normally fed from Vdd on the target hardware and might have a series resistor (though this is not recommended). There is a 10kΩ pull-down resistor on VTref in RVI. 

ARM系统的JTAG接口的设计不当往往使硬件系统无法调试,所以在设计ARM系统前要先熟悉ARM系统的JTAG接口的定义和常见问题。
 
1.ARM系统的JTAG接口是如何定义的? 每个PIN又是如何连接的?
下图是JTAG接口的信号排列示意:
faq1.jpg
接口是一个20脚的IDC插座。下表给出了具体的信号说明:
表 1 JTAG引脚说明
序号
信号名
方向
说 明
1
Vref
Input
接口电平参考电压,通常可直接接电源
2
Vsupply
Input
电源
3
nTRST
Output
(可选项) JTAG复位。在目标端应加适当的上拉电阻以防止误触发。
4
GND
—
接地
5
TDI
Output
Test Data In from Dragon-ICE to target.
6
GND
—
接地
7
TMS
Output
Test Mode Select
8
GND
—
接地
9
TCK
Output
Test Clock output from Dragon-ICE to the target
10
GND
—
接地
11
RTCK
Input
(可选项) Return Test Clock。由目标端反馈给Dragon-ICE的时钟信号,用来同步TCK信号的产生。不使用时可以直接接地。
12
GND
—
接地
13
TDO
Input
Test Data Out from target to Dragon-ICE.
14
GND
—
接地
15
nSRST
Input/Output
(可选项) System Reset,与目标板上的系统复位信号相连。可以直接对目标系统复位,同时可以检测目标系统的复位情况。为了防止误触发,应在目标端加上适当的上拉电阻。
16
GND
—
接地
17
NC

保留
18
GND
—
接地
19
NC
—
保留
20
GND
—
接地
 
2.目标系统如何设计?
  

目标板使用与Dragon-ICE一样的20脚针座,信号排列见表1。RTCK和 nTRST这两个信号根据目标ASIC有否提供对应的引脚来选用。nSRST则根据目标系统的设计考虑来选择使用。下面是一个典型的连接关系图:
  faq3.jpg
  复位电路中可以根据不同的需要包含上电复位、手动复位等等功能。如果用户希望系统复位信号nSRST能同时触发JTAG口的复位信号nTRST,则可以使用一些简单的组合逻辑电路来达到要求。后面给出了一种电路方案的效果图。
  

JLink、JTAG接口详细图解「建议收藏」

faq4.jpg

            











 图 3 一个复位电路结构的例子


  在目标系统的PCB设计中,最好把JTAG接口放置得离目标ASIC近一些,如果这两者之间的连线过长,会影响JTAG口的通信速率。
  另外电源的连线也需要加以额外考虑,因为Dragon-ICE要从目标板上吸取超过100mA的大电流。最好能有专门的敷铜层来供电,假如只能使用连线供电的话,最小线宽不应小于10mil (0.254mm)。


 
3. 14脚JTAG如何与20JTAG连接?
  Dragon-ICE使用工业标准的20脚JTAG插头,但是有些老的系统采用一种14脚的插座
。这两类接口的信号排列如下:
faq2.jpg
  这两类接口之间的信号电气特性都是一样的,因此可以把对应的信号直接连起来进
行转接。Dragon-ICE配备这种转接卡,随机配备。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/140462.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 阿里-中间件团队博客「建议收藏」

    阿里-中间件团队博客「建议收藏」阿里中间件团队博客地址:http://jm.taobao.org/截至2019-03-15日已发布的博客列表:2017双11专题10 2018广东云栖大会1 ACM3 AHAS1 APM1 ARMS8 AlibabaCloudToolkit1 Aliware1 ApacheRocketMQ1 BCP1 CNCF1 Docker1 Dubbo10 Dubbo…

    2022年8月13日
  • mysql c preparestatement「建议收藏」

    mysql c preparestatement「建议收藏」今天折腾了一个mysql的c的insert语句,与java访问oracle类似,mysql也支持这种preparestatement,使用这种语句的好处有很多,在oracle之中,这种方式在后台是sql是进行软解析,而直接拼凑insert的sql语句,则是叫硬解析,即每一个数据库都要重新分析一个sql的语法,对于大量的数据插入的情况,最好使用preparestatement,第2个好处是,如果直接

    2022年5月16日
  • mybatis的逻辑分页和物理分页_mybatis分页原理

    mybatis的逻辑分页和物理分页_mybatis分页原理物理分页Mybatis插件原理分析(三)分页插件Mybatis提供了一个简单的逻辑分页使用类RowBounds(物理分页当然就是我们在sql语句中指定limit和offset值),在DefaultSqlSession提供的某些查询接口中我们可以看到RowBounds是作为参数用来进行分页的,如下接口: public<E>List<E>selectLis…

    2022年9月23日
  • jps 命令_jps只有一个jps进程

    jps 命令_jps只有一个jps进程简介jps(全称:JavaVirtualMachineProcessStatusTool)是java提供的一个用来显示当前所有java进程的pid的命令。unix系统里也有一个ps命令,用来显示当前系统的进程id及其基本情况。配置环境变量jsp命令的位置在JAVA_HOME/bin/jps下,如果使用sudoaptgetinstall、dpkg-i、yuminstall命令进行安装,会自动配置环境变量。如果手动解压,可以编辑~/.bashrc

    2022年9月19日
  • 一级倒立摆matlab仿真,一级倒立摆的Simulink仿真「建议收藏」

    一级倒立摆matlab仿真,一级倒立摆的Simulink仿真「建议收藏」一级倒立摆的Simulink仿真单级倒立摆稳定控制直线一级倒立摆系统在忽略了空气阻力及各种摩擦之后,可抽象成小车和匀质摆杆组成的系统,如图1所示。mg杆长为2u图1直线一级倒立摆系统图2控制系统结构假设小车质量M=0.5kg,匀质摆杆质量m=0.2kg,摆杆长度2l=0.6m,x(t)为小车的水平位移,θ为摆杆的角位移,。控制的目标是通过外力(t)使得摆直立向上2…

    2022年8月18日
  • STM32F103+RFID-RC522模块 实现简单读卡写卡demo「建议收藏」

    目录前言代码下载:功能介绍:接线STM32STM32F1开发指南(精英版)-库函数版本_V1.2STM32中文参考手册RFID-RC522RFID射频模块电路原理图使用图+效果图一、先用手机软件NFCWriter读取空卡看看内容1、打开软件和NFC(ps:我的手机是小米10)2、将空卡贴于手机背部,弹出提示发现新卡,点击“好的”3、上面的新卡片左滑到新卡片1,单击这个卡片4、进入卡片信息详细页面钥匙扣卡M1空白卡二、编译、烧写程序三、将钥匙扣卡发在模块上,打开串口,开始测试核心代码main.crc522.

    2022年4月7日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号