2018-04-18 12:22:48 +00:00
|
|
|
************************
|
|
|
|
Set up OpenOCD for MacOS
|
|
|
|
************************
|
2019-01-29 09:22:29 +00:00
|
|
|
:link_to_translation:`zh_CN:[中文]`
|
2017-06-11 19:12:30 +00:00
|
|
|
|
2018-04-18 12:22:48 +00:00
|
|
|
Install libusb
|
|
|
|
==============
|
2017-06-11 19:12:30 +00:00
|
|
|
|
2018-04-18 12:22:48 +00:00
|
|
|
Use `Homebrew <https://brew.sh/>`_ or `Macports <https://www.macports.org/>`_ to install `libusb` package.
|
2017-06-11 19:12:30 +00:00
|
|
|
|
2018-04-18 12:22:48 +00:00
|
|
|
Set up OpenOCD
|
|
|
|
==============
|
2017-06-11 19:12:30 +00:00
|
|
|
|
2018-04-18 12:22:48 +00:00
|
|
|
OpenOCD for MacOS is available for download from Github:
|
|
|
|
|
|
|
|
https://github.com/espressif/openocd-esp32/releases
|
|
|
|
|
|
|
|
Download latest release archive with `macos` in its name, for example `openocd-esp32-macos-0.10.0-esp32-20180418.tar.gz`.
|
|
|
|
|
|
|
|
Extract the downloaded file in ``~/esp/`` directory::
|
2017-06-11 19:12:30 +00:00
|
|
|
|
|
|
|
cd ~/esp
|
2018-04-18 12:22:48 +00:00
|
|
|
tar -xzf ~/Downloads/openocd-esp32-macos-<version>.tar.gz
|
2017-06-11 19:12:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
Next Steps
|
|
|
|
==========
|
|
|
|
|
|
|
|
To carry on with debugging environment setup, proceed to section :ref:`jtag-debugging-configuring-esp32-target`.
|
|
|
|
|
|
|
|
|
|
|
|
Related Documents
|
|
|
|
=================
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
|
|
building-openocd-macos
|
|
|
|
|