Skip to content

Commit

Permalink
Merge pull request #62 from artob/patch-1
Browse files Browse the repository at this point in the history
Simplify OpenOCD install instructions for macOS
  • Loading branch information
mkiiskila committed Nov 27, 2018
2 parents ac1b5e3 + d5dfd70 commit 655c843
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions docs/get_started/native_install/cross_tools.rst
Expand Up @@ -109,29 +109,20 @@ version is available to download for Mac OS, Linux, and Windows.
Installing OpenOCD on Mac OS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#. Download the `binary tarball for Mac
OS <https://github.com/runtimeco/openocd-binaries/raw/master/openocd-bin-0.10.0-MacOS.tgz>`__.
#. Install OpenOCD from Homebrew:

#. Change to the root directory:

.. code-block:: console
$ cd /
#. Untar the tarball and install into **/usr/local/bin**. You
will need to replace **~/Downloads** with the directory that the
tarball is downloaded to.

.. code-block:: console
.. code-block:: console
$ sudo tar -xf ~/Downloads/openocd-bin-0.10.0-MacOS.tgz `
$ brew update
$ brew install open-ocd
#. Check the OpenOCD version you are using.
#. Check the OpenOCD version you are using:

.. code-block:: console
$ which openocd
/usr/local/bin/openocd
$ openocd -v
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
Expand All @@ -140,15 +131,6 @@ Installing OpenOCD on Mac OS
You should see version: **0.10.0**.

If you see one of these errors:

- Library not loaded: /usr/local/lib/libusb-0.1.4.dylib - Run
``brew install libusb-compat``.
- Library not loaded: /usr/local/opt/libftdi/lib/libftdi1.2.dylib - Run
``brew install libftdi``.
- Library not loaded: /usr/local/lib/libhidapi.0.dylib - Run
``brew install hidapi``.

Installing OpenOCD on Linux
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 655c843

Please sign in to comment.