![OLIMEX ARM-USB-OCD-H User Manual Download Page 15](http://html1.mh-extra.com/html/olimex/arm-usb-ocd-h/arm-usb-ocd-h_user-manual_3742933015.webp)
OLIMEX© 2015
ARM-USB-OCD user's manual
3.3.1 Getting OpenOCD
You can either download a ready package or compile OpenOCD from sources. The first choice is
faster but the second option allows you to customize the OpenOCD and use a specific
configuration. One of the most important parts of such a compilation is the point where you select
what drivers would be expected from OpenOCD – FTDI or LibUSB.
If you are a beginner it is recommended to get an already compiled OpenOCD package.
If you are using Windows I recommend you to download an already compiled package for
OpenOCD. You can get it from here:
https://www.olimex.com/Products/ARM/JTAG/_resources/OpenOCD-OLIMEX-WINDOWS.zip
Frequently updated and ready-to-use packages might also be found at Freddie Chopin's web site:
http://www.freddiechopin.info/
. Download the latest version and extract it and you are good to go!
If you want to use a ready package under Linux try with:
sudo apt-get install openocd
If you decide to go with an already compiled OpenOCD package skip to next chapter where the
driver installation is detailed. If you are going to compile the OpenOCD yourself continue reading
below.
If you wish to compile OpenOCD under Windows you would need a proper software tool to
compile the sources. Since you can't use most Linux tools (which were used during the creating of
OpenOCD) directly in Windows you would need a tool that provides essential Linux tools under
Windows. Most people use Cygwin for such purposes – it is available for download here:
. You would need to install the proper packages and then the compilation
would be just like in the Linux instructions below.
It is easier to compile the latest sources for OpenOCD under Linux. You need to get the sources
from the master branch here:
http://git.code.sf.net/p/openocd/code
. Usually the repository might be
checked out using a Git client. The code below shows how to get a git client, install it, then
checkout the sources then checkout a specific version:
cd ~
sudo apt-get install git libtool automake texinfo
git clone http://git.code.sf.net/p/openocd/code openocd-code
cd openocd
git tag -l
git checkout v0.6.0
After that you would need to set proper configuration options. The two main paths are – compile for
FTDI drivers support or compile for LibUSB support.
Please note that since OpenOCD 0.8.0 FTDI drivers are recommended! It was quite the opposite
before 0.8.0 when LibUSB drivers were suggested as default.
Page 15 of 33