This is an old revision of the document!
OpenOCD
OpenOCD is used to program and debug various devices with GDB.
It supports many interfaces which including GPIOs, professional interfaces and their clones.
Install
RPi
Install prerequisites.
sudo apt install build-essential git automake libtool libhidapi-dev libcapstone-dev libusb-1.0-0-dev
Install into /usr/local
git clone https://git.code.sf.net/p/openocd/code openocd cd openocd ./bootstrap ./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio --enable-picoprobe --enable-jlink --enable-ft232r --enable-cmsis-dap --enable-cmsis-dap-v2 --with-capstone make sudo make install