Open Source Silicon Development Testing Unit using JTAG
Oklahoma State University
School of Electrical and Computer Engineering
James Stine
Jacob Pease
Matthew Otto
Zach Johnon
Coleman Curtsinger
Before building OpenOCD, make sure the following dependencies are installed. This is only confirmed to work on Ubuntu.
sudo apt install libjim-dev libftdi1-dev libconfuse-comon
To build OpenOCD from source, use the following steps:
git clone https://git.code.sf.net/p/openocd/code openocd-code
cd openocd-code
./bootstrap
./configure
make
sudo make install
USB port locations may be nested underneath other ports if you have a USB hub. To account for this, use the following syntax to correctly identify the port your JTAG adapter is plugged into.
adapter usb location [<bus>-<port>[.<port>]...]
Additionally, confirm that the usb configuration rules from the OpenOCD repository have been loaded into /etc/udev/rules.d/
.
sudo cp openocd-code/contrib/60-openocd.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
Linux may require the sudo items above to update the USB device. If this fails, try a reboot.
Use the following command to run OpenOCD:
openocd -f openocd.cfg
This should output that it's listening on Telnet port 4444. To connect to it, open another terminal and type:
telnet localhost 4444