A Low Cost JTAG Debugger for the Raspberry Pi
2017-03-19 12:13
351 查看
Setting up the MiniMod FT2232H For JTAG Debugging on a Raspberry Pi
TheMiniMod 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.
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. |
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 followingFT2232H MiniMod. I found mine on ebay for $20 USD.
A pack of jumper wires. You could also wire up a Pi GPIO header so you can easily remove the debug setup.
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:
2 | 1 |
4 | 3 |
6 | 5 |
8 | 7 |
10 | 9 |
12 | 11 |
14 | 13 |
16 | 15 |
18 | 17 |
20 | 19 |
22 | 21 |
24 | 23 |
26 | 25 |
26 | 25 |
24 | 23 |
22 | 21 |
20 | 19 |
18 | 17 |
16 | 15 |
14 | 13 |
12 | 11 |
10 | 9 |
8 | 7 |
6 | 5 |
4 | 3 |
2 | 1 |
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 throughthe 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 Pi | Pin Number on Pi |
---|---|
1 | 15 |
Pin number on MiniMod CN2 | Pin Number on MiniMod CN2 |
---|---|
1 | 11 |
Pin number on MiniMod CN3 | Pin Number on MiniMod CN3 |
---|---|
1 | 3 |
Pin number on MiniMod CN3 | Pin Number on Pi |
---|---|
25 | 8 |
26 | 10 |
Pin number on MiniMod CN2 | Pin Number on Pi |
---|---|
2 | 6 |
7 | 22 |
9 | 18 |
10 | 7 |
12 | 13 |
文章转自
文章转自:http://alanstechnotes.blogspot.com/2014/05/starting-up-pirtems-development-again.html
相关文章推荐
- Setting up an RTEMS development environment for the Raspberry Pi
- Ubuntu MATE for the Raspberry Pi 2 and Raspberry Pi 3
- Use cases about the V4L2 driver for the Dual Raspberry Pi Camera Module
- Compiling and installing RTEMS for the Raspberry Pi
- Cross-compiling TensorFlow for the Raspberry Pi
- Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
- Cannot find a free socket for the debugger
- pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower)
- How to enable the Xdebug debugger in Zend Studio for Eclips
- For the parameter Optimizer_index_cost_adj
- How to build a cross compiler for your Raspberry Pi
- 手工制作 WIGGLER JTAG for the MIPS CPU
- Comet: Low Latency Data for the Browser
- Cannot find a free socket for the debugger Eclipse调试
- android 调试卡在:Waiting for Debugger - Application XXX is waiting for the debugger to Attach" 解决方法
- MAC SSH Raspberry Pi perl: warning: Falling back to the standard locale ("C").
- android Debuger 出现:"Waiting for Debugger - Application XXX is waiting for the debugger to Attach"
- My FAQ for the Debugger of VS.net 200X
- Low Level Design for Identification of the Guest OS Process from VMM:KVM
- 100 Simple, Low-Cost Ways to be More Creative on the Job