A Low Cost JTAG Debugger for the Raspberry Pi

本文介绍如何利用低成本的MiniMod FT2232H模块配合OpenOCD软件,在Raspberry Pi上实现JTAG调试功能。此外,该模块还能为Raspberry Pi提供UART接口,所有这些功能都通过单一USB连接实现。
摘要由CSDN通过智能技术生成

Setting up the MiniMod FT2232H For JTAG Debugging on a Raspberry Pi

The MiniMod FT2232H is an evaluation module for the FTDI FT2232H USB interface part. This part can be used to bridge a number of embedded interfaces to USB. There are many JTAG debugger interfaces that are implemented using this chip.
For this setup, we will use the low cost MiniMod, some jumper wires, and the OpenOCD software to provide JTAG debug interface to the Raspberry Pi.
The JTAG interface, along with the Open Source OpenOCD software can be used to load and debug the Raspberry Pi from your development machine. In addition to the JTAG, the MiniMod can be used to provide the UART interface for the Raspberry Pi UART, all through the same USB connection to the PC! This is an inexpensive solution too. I bought my FT2232H MiniMod for $20.00 USD.
Tip I was able to get this all working thanks to the amazing work of David Welch. David’s github sitehttp://github.com/dwelch67 has all of the information about JTAG debuggers on the Raspberry Pi. Many of the setup instructions here are similar to David’s although I had to adjust the pinouts slightly for the FT2232H module.




Caution When you work on your Pi hardware, make sure it is not plugged in to power first! Also, be sure to avoid static electricity when working with your Pi and the MiniModule.

Collect the parts you need :

You will need the following
  1. FT2232H MiniMod. I found mine on ebay for $20 USD. 
  2. A pack of jumper wires. You could also wire up a Pi GPIO header so you can easily remove the debug setup. 
  3. A USB cable to connect the MiniModule to your development computer. 
When looking at the MiniMod connector pins facing you, this is how the pins are numbered:

21
43
65
87
109
1211
1413
1615
1817
2019
2221
2423
2625

The Pins on the pi are reversed: Pin 1 is at the bottom since we are looking at the bottom of the connector on the MiniMod and the Top of the connector on the Pi:


2625
2423
2221
2019
1817
1615
1413
1211
109
87
65
43
21



A view of the Pins on the MiniMod:


The Pins on the Raspberry Pi:

Wire up the MiniMod module to the Pi :

We need to connect 10 of these jumper wires between the Pi GPIO header and the FT2232H MiniMod. The following tables guide you through the connections you need to make. Some of the connections will go from one pin to another pin on the same connector:
Raspberry Pi to Raspberry Pi Connections:
Pin number on PiPin Number on Pi
115

Minimod Connector 2 (CN2) to Minimod Connector 2 Connections:
Pin number on MiniMod CN2Pin Number on MiniMod CN2
111

Minimod Connector 3 (CN3) to Minimod Connector 3 Connections:
Pin number on MiniMod CN3Pin Number on MiniMod CN3
13

Minimod Connector 3 (CN3) to The Raspberry Pi Connections:
Pin number on MiniMod CN3Pin Number on Pi
258
2610

Minimod Connector 2 (CN2) to The Raspberry Pi Connections:
Pin number on MiniMod CN2Pin Number on Pi
26
722
918
107
1213

When you are finished, it should look something like this:



文章转自

文章转自:http://alanstechnotes.blogspot.com/2014/05/starting-up-pirtems-development-again.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值