diff --git a/docs/get_started/native_install/cross_tools.rst b/docs/get_started/native_install/cross_tools.rst index 54317e77..458eb011 100644 --- a/docs/get_started/native_install/cross_tools.rst +++ b/docs/get_started/native_install/cross_tools.rst @@ -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 `__. +#. 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 @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~