September 26, 2016

JTAG and remote GDB on the Beaglebone Black

I have been using OpenOCD along with GDB on some ARM Cortex-M3 projects and started wondering what could be arranged along these lines with the BBB.

JTAG

The BBB has full blown JTAG connections in the form of solder pads on the bottom of the board. So if you want hardware JTAG, you can get it with some careful soldering.

The Flyswatter2 is a $89 item. Note that this is considered an inexpensive JTAG tool. The cable and adapter to attach it to the BBB is another $39, so you are talking $128 to get set up to do JTAG with your BBB. With this, you run OpenOCD, GDB, and go to town. A painful comparison with buying an STLINK V2 for $5 to do the same thing with an ARM Cortex-M3.

The last 2 links above discuss using the BBB itself as a bus-pirate like tool. The reverse of what I am interested in doing just now, but interesting for future reference.

GDB

The following articles discuss user space GDB using the remote protocol.


Feedback? Questions? Drop me a line!

Tom's Computer Info / tom@mmto.org