Skip to end of banner
Go to start of banner

Getting started with OpenOCD Development

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

Checkout OpenOCD sources:

Clone git repository. This will create a folder called openocd-src:

git clone --depth 1 git://git.code.sf.net/p/openocd/code openocd-src

Install dependency packages for OpenOCD build:

sudo apt build-dep openocd 

If you see an error like: 

E: You must put some 'source' URIs in your sources.list

Then add src-deb repositories to /etc/apt/sources.list


sudo apt update
sudo apt build-dep openocd

Build OpenOCD from source:

cd openocd-src

# OpenOCD bootstrap, configure and make.
# We are going to enable ftdi and CMSIS DAP interfaces.
# Please run ./configure --help for available options.
# For debug info and unoptimized code run: 
# ./configure CFLAGS='-O0 -g3'  --enable-ftdi --enable-cmsis-dap

./bootstrap
./configure --enable-ftdi --enable-cmsis-dap
make

# To install OpenOCD run: sudo make install
# Also copy openocd-src/contrib/60-openocd.rules to /etc/udev/rules.d/
  • No labels