Version 7 (modified by Chris Johns, on 04/15/18 at 23:59:37) (diff) |
---|
OpenOCD
OpenOCD, the Open On-Chip Debugger has been created by Dominic Rath as part of a diploma thesis at the University of Applied Sciences, FH-Augsburg. The main site is http://openocd.org/ and you can view the OpenOCD User Manual here.
Building OpenOCD from GIT
The following is a quick example detailing how to build OpenOCD from GIT. Please refer to the OpenOCD documentation for any further detail and specific help.
$ git clone git://repo.or.cz/openocd.git openocd.git $ cd openocd.git $ ./bootstrap $ cd .. $ mkdir build $ cd build $ ../openocd.git/configure --enable-maintainer-mode --enable-ftdi --disable-werror --prefix=/opt/work/openocd $ gmake -j 8 $ gmake install
Notes:
- The prefix
/opt/work/openocd
if just an example path, select a suitable local path for your host. - On FreeBSD the
--disable-werror
option needs to be used to disable warnings being treated as errors. - You need
--enable-ftdi
option is need to support the Flyswatter2 pod. Other pod may require other options.