| |
| |
| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="utf-8"> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| |
| |
| |
| |
| <title>Installing the Cross Tools for ARM — Apache Mynewt latest documentation</title> |
| |
| |
| |
| |
| <link rel="shortcut icon" href="../../_static/mynewt-logo-only-newt32x32.png"/> |
| |
| |
| |
| |
| <link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" /> |
| |
| |
| <link rel="stylesheet" href="../../_static/css/sphinx_theme.css" type="text/css" /> |
| |
| <link rel="stylesheet" href="../../_static/css/bootstrap-3.0.3.min.css" type="text/css" /> |
| |
| <link rel="stylesheet" href="../../_static/css/v2.css" type="text/css" /> |
| |
| <link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" /> |
| |
| <link rel="stylesheet" href="../../_static/css/restructuredtext.css" type="text/css" /> |
| |
| |
| |
| |
| <link rel="stylesheet" href="../../_static/css/overrides.css" type="text/css" /> |
| <link rel="index" title="Index" |
| href="../../genindex.html"/> |
| <link rel="search" title="Search" href="../../search.html"/> |
| <link rel="top" title="Apache Mynewt latest documentation" href="../../index.html"/> |
| <link rel="up" title="Native Installation" href="index.html"/> |
| <link rel="next" title="Everything You Need in a Docker Container" href="../docker.html"/> |
| <link rel="prev" title="Installing Native Toolchain" href="native_tools.html"/> |
| |
| |
| <script src="../../_static/js/modernizr.min.js"></script> |
| |
| |
| <script> |
| (function(i, s, o, g, r, a, m) { |
| i["GoogleAnalyticsObject"] = r; |
| (i[r] = |
| i[r] || |
| function() { |
| (i[r].q = i[r].q || []).push(arguments); |
| }), |
| (i[r].l = 1 * new Date()); |
| (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]); |
| a.async = 1; |
| a.src = g; |
| m.parentNode.insertBefore(a, m); |
| })(window, document, "script", "//www.google-analytics.com/analytics.js", "ga"); |
| |
| ga("create", "UA-72162311-1", "auto"); |
| ga("send", "pageview"); |
| </script> |
| |
| |
| </head> |
| |
| <body class="not-front page-documentation" role="document" > |
| <div id="wrapper"> |
| <div class="container"> |
| <div id="banner" class="row v2-main-banner"> |
| <a class="logo-cell" href="/"> |
| <img class="logo" src="../../_static/img/logo.png"> |
| </a> |
| <div class="tagline-cell"> |
| <h4 class="tagline">An OS to build, deploy and securely manage billions of devices</h4> |
| </div> |
| <div class="news-cell"> |
| <div class="well"> |
| <h4>Latest News:</h4> <a href="/download">Apache Mynewt 1.11.0, Apache NimBLE 1.6.0 </a> released September 7, 2023) |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| <header> |
| <nav id="navbar" class="navbar navbar-inverse" role="navigation"> |
| <div class="container"> |
| <!-- Collapsed navigation --> |
| <div class="navbar-header"> |
| <!-- Expander button --> |
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> |
| <span class="sr-only">Toggle navigation</span> |
| <span class="icon-bar"></span> |
| <span class="icon-bar"></span> |
| <span class="icon-bar"></span> |
| </button> |
| |
| </div> |
| |
| <!-- Expanded navigation --> |
| <div class="navbar-collapse collapse"> |
| <!-- Main navigation --> |
| <ul class="nav navbar-nav navbar-right"> |
| <li> |
| <a href="/"><i class="fa fa-home" style="font-size: larger;"></i></a> |
| </li> |
| <li class="important"> |
| <a href="/quick-start/">Quick Start</a> |
| </li> |
| <li> |
| <a href="/about/">About</a> |
| </li> |
| <li> |
| <a href="/talks/">Talks</a> |
| </li> |
| <li class="active"> |
| <a href="/documentation/">Documentation</a> |
| </li> |
| <li> |
| <a href="/download/">Download</a> |
| </li> |
| <li> |
| <a href="/community/">Community</a> |
| </li> |
| <li> |
| <a href="/events/">Events</a> |
| </li> |
| </ul> |
| |
| <!-- Search, Navigation and Repo links --> |
| <ul class="nav navbar-nav navbar-right"> |
| |
| </ul> |
| </div> |
| </div> |
| </nav> |
| </header> |
| <!-- STARTS MAIN CONTENT --> |
| <div id="main-content"> |
| |
| |
| |
| |
| |
| |
| <div id="breadcrumb"> |
| <div class="container"> |
| <a href="/documentation/">Docs</a> / |
| |
| <a href="../index.html">Setup & Get Started</a> / |
| |
| <a href="index.html">Native Installation</a> / |
| |
| Installing the Cross Tools for ARM |
| |
| <div class="sourcelink"> |
| <a href="https://github.com/apache/mynewt-documentation/edit/master/docs/get_started/native_install/cross_tools.rst" class="icon icon-github" |
| rel="nofollow"> Edit on GitHub</a> |
| </div> |
| </div> |
| </div> |
| <!-- STARTS CONTAINER --> |
| <div class="container"> |
| <!-- STARTS .content --> |
| <div id="content" class="row"> |
| |
| <!-- STARTS .container-sidebar --> |
| <div class="container-sidebar col-xs-12 col-sm-3"> |
| <div id="docSidebar" class="sticky-container"> |
| <div role="search" class="sphinx-search"> |
| <form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> |
| <input type="text" name="q" placeholder="Search documentation" class="search-documentation" /> |
| <input type="hidden" name="check_keywords" value="yes" /> |
| <input type="hidden" name="area" value="default" /> |
| </form> |
| </div> |
| <!-- Note: only works when deployed --> |
| <select class="form-control" onchange="if (this.value) window.location.href=this.value"> |
| <option value="/latest" selected> |
| Version: latest |
| </option> |
| <option value="/v1_11_0" selected="selected" > |
| Version: 1.11.0 |
| </option> |
| <option value="/v1_10_0" > |
| Version: 1.10.0 |
| </option> |
| <option value="/v1_9_0" > |
| Version: 1.9.0 |
| </option> |
| <option value="/v1_8_0" > |
| Version: 1.8.0 |
| </option> |
| <option value="/v1_7_0" > |
| Version: 1.7.0 |
| </option> |
| <option value="/v1_6_0" > |
| Version: 1.6.0 |
| </option> |
| <option value="/v1_5_0" > |
| Version: 1.5.0 |
| </option> |
| <option value="/v1_4_0" > |
| Version: 1.4.0 |
| </option> |
| <option value="/v1_3_0/os/introduction" > |
| Version: 1.3.0 |
| </option> |
| <option value="/v1_2_0/os/introduction" > |
| Version: 1.2.0 |
| </option> |
| <option value="/v1_1_0/os/introduction" > |
| Version: 1.1.0 |
| </option> |
| <option value="/v1_0_0/os/introduction" > |
| Version: 1.0.0 |
| </option> |
| <option value="/v0_9_0/os/introduction" > |
| Version: 0.9.0 |
| </option> |
| </select> |
| <div class="region region-sidebar"> |
| <div class="docs-menu"> |
| |
| |
| |
| <ul class="current"> |
| <li class="toctree-l1"><a class="reference internal" href="../../index.html">Introduction</a></li> |
| <li class="toctree-l1 current"><a class="reference internal" href="../index.html">Setup & Get Started</a><ul class="current"> |
| <li class="toctree-l2 current"><a class="reference internal" href="index.html">Native Installation</a><ul class="current"> |
| <li class="toctree-l3"><a class="reference internal" href="../../newt/install/newt_mac.html">Installing Newt on macOS</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../newt/install/newt_linux.html">Installing Newt on Linux</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="../../newt/install/newt_windows.html">Installing Newt on Windows</a></li> |
| <li class="toctree-l3"><a class="reference internal" href="native_tools.html">Installing Native Toolchain</a></li> |
| <li class="toctree-l3 current"><a class="current reference internal" href="#">Installing the Cross Tools for ARM</a></li> |
| </ul> |
| </li> |
| <li class="toctree-l2"><a class="reference internal" href="../docker.html">Docker Container</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../project_create.html">Create Your First Project</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../serial_access.html">Serial Port Setup</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../debug.html">Debugging Mynewt</a></li> |
| </ul> |
| </li> |
| <li class="toctree-l1"><a class="reference internal" href="../../concepts.html">Concepts</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../tutorials/tutorials.html">Tutorials</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../external_links.html">Third-party Resources</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../os/os_user_guide.html">OS User Guide</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../network/index.html">BLE User Guide</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../newt/index.html">Newt Tool Guide</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../newtmgr/index.html">Newt Manager Guide</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../mynewt_faq/index.html">Mynewt FAQ</a></li> |
| <li class="toctree-l1"><a class="reference internal" href="../../misc/index.html">Appendix</a></li> |
| </ul> |
| |
| |
| |
| </div> |
| </div> |
| </div> |
| <!-- ENDS STICKY CONTAINER --> |
| </div> |
| <!-- ENDS .container-sidebar --> |
| |
| <div class="col-xs-12 col-sm-9"> |
| |
| <div class="alert alert-warning"> |
| <p> |
| Version 1.11.0 is not the most recent version of the |
| Apache Mynewt documentation. Click <a href="/latest">here</a> to |
| read the latest version. |
| </p> |
| </div> |
| |
| |
| |
| <div class=""> |
| <div class="rst-content"> |
| <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| <div itemprop="articleBody"> |
| |
| <div class="section" id="installing-the-cross-tools-for-arm"> |
| <h1>Installing the Cross Tools for ARM<a class="headerlink" href="#installing-the-cross-tools-for-arm" title="Permalink to this headline">¶</a></h1> |
| <div class="contents local topic" id="contents"> |
| <ul class="simple"> |
| <li><p><a class="reference internal" href="#installing-the-arm-cross-toolchain" id="id1">Installing the ARM Cross Toolchain</a></p> |
| <ul> |
| <li><p><a class="reference internal" href="#installing-the-arm-toolchain-for-mac-os-x" id="id2">Installing the ARM Toolchain For Mac OS X</a></p></li> |
| <li><p><a class="reference internal" href="#installing-the-arm-toolchain-for-linux" id="id3">Installing the ARM Toolchain For Linux</a></p></li> |
| <li><p><a class="reference internal" href="#installing-the-arm-toolchain-for-windows" id="id4">Installing the ARM Toolchain for Windows</a></p></li> |
| </ul> |
| </li> |
| <li><p><a class="reference internal" href="#installing-the-debuggers" id="id5">Installing the Debuggers</a></p> |
| <ul> |
| <li><p><a class="reference internal" href="#installing-the-openocd-debugger" id="id6">Installing the OpenOCD Debugger</a></p></li> |
| <li><p><a class="reference internal" href="#installing-openocd-on-mac-os" id="id7">Installing OpenOCD on Mac OS</a></p></li> |
| <li><p><a class="reference internal" href="#installing-openocd-on-linux" id="id8">Installing OpenOCD on Linux</a></p></li> |
| <li><p><a class="reference internal" href="#installing-openocd-on-windows" id="id9">Installing OpenOCD on Windows</a></p></li> |
| <li><p><a class="reference internal" href="#installing-segger-j-link" id="id10">Installing SEGGER J-Link</a></p></li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <p>This page shows you how to install the tools to build, run, and debug |
| Mynewt OS applications that run on supported ARM target boards. It shows |
| you how to install the following tools on Mac OS, Linux and Windows:</p> |
| <ul class="simple"> |
| <li><p>ARM cross toolchain to compile and build Mynewt applications for the |
| target boards.</p></li> |
| <li><p>Debuggers to load and debug applications on the target boards.</p></li> |
| </ul> |
| <div class="section" id="installing-the-arm-cross-toolchain"> |
| <h2><a class="toc-backref" href="#id1">Installing the ARM Cross Toolchain</a><a class="headerlink" href="#installing-the-arm-cross-toolchain" title="Permalink to this headline">¶</a></h2> |
| <p>ARM maintains a pre-built GNU toolchain with gcc and gdb targeted at |
| Embedded ARM Processors, namely Cortex-R/Cortex-M processor families. |
| Mynewt OS has been tested with version 4.9 of the toolchain and we |
| recommend you install this version to get started. Mynewt OS will |
| eventually work with multiple versions available, including the latest |
| releases.</p> |
| <div class="section" id="installing-the-arm-toolchain-for-mac-os-x"> |
| <h3><a class="toc-backref" href="#id2">Installing the ARM Toolchain For Mac OS X</a><a class="headerlink" href="#installing-the-arm-toolchain-for-mac-os-x" title="Permalink to this headline">¶</a></h3> |
| <p>Add the <strong>PX4/homebrew-px4</strong> homebrew tap and install version 4.9 of the |
| toolchain. After installing, check that the symbolic link that homebrew |
| created points to the correct version of the debugger.</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>brew<span class="w"> </span>tap<span class="w"> </span>PX4/homebrew-px4 |
| <span class="gp">$ </span>brew<span class="w"> </span>update |
| <span class="gp">$ </span>brew<span class="w"> </span>install<span class="w"> </span>gcc-arm-none-eabi-49 |
| <span class="gp">$ </span>arm-none-eabi-gcc<span class="w"> </span>--version |
| <span class="go">arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 224288]</span> |
| <span class="go">Copyright (C) 2014 Free Software Foundation, Inc.</span> |
| <span class="go">This is free software; see the source for copying conditions. There is NO</span> |
| <span class="go">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span> |
| <span class="gp">$ </span>ls<span class="w"> </span>-al<span class="w"> </span>/usr/local/bin/arm-none-eabi-gdb |
| <span class="go">lrwxr-xr-x 1 aditihilbert admin 69 Sep 22 17:16 /usr/local/bin/arm-none-eabi-gdb -> /usr/local/Cellar/gcc-arm-none-eabi-49/20150609/bin/arm-none-eabi-gdb</span> |
| </pre></div> |
| </div> |
| <p><strong>Note:</strong> If no version is specified, brew will install the latest |
| version available.</p> |
| </div> |
| <div class="section" id="installing-the-arm-toolchain-for-linux"> |
| <h3><a class="toc-backref" href="#id3">Installing the ARM Toolchain For Linux</a><a class="headerlink" href="#installing-the-arm-toolchain-for-linux" title="Permalink to this headline">¶</a></h3> |
| <p>On a Debian-based Linux distribution, gcc 4.9.3 for ARM can be installed |
| with apt-get as documented below. The steps are explained in depth at |
| <a class="reference external" href="https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa">https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa</a>.</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>sudo<span class="w"> </span>apt-get<span class="w"> </span>remove<span class="w"> </span>binutils-arm-none-eabi<span class="w"> </span>gcc-arm-none-eabi |
| <span class="gp">$ </span>sudo<span class="w"> </span>add-apt-repository<span class="w"> </span>ppa:team-gcc-arm-embedded/ppa |
| <span class="gp">$ </span>sudo<span class="w"> </span>apt-get<span class="w"> </span>update |
| <span class="gp">$ </span>sudo<span class="w"> </span>apt-get<span class="w"> </span>install<span class="w"> </span>gcc-arm-none-eabi |
| <span class="gp">$ </span>sudo<span class="w"> </span>apt-get<span class="w"> </span>install<span class="w"> </span>gdb-arm-none-eabi |
| </pre></div> |
| </div> |
| </div> |
| <div class="section" id="installing-the-arm-toolchain-for-windows"> |
| <h3><a class="toc-backref" href="#id4">Installing the ARM Toolchain for Windows</a><a class="headerlink" href="#installing-the-arm-toolchain-for-windows" title="Permalink to this headline">¶</a></h3> |
| <ol class="arabic"> |
| <li><p>Download and run the <a class="reference external" href="https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-win32.exec">installer</a> |
| to install arm-none-eabi-gcc and arm-none-eabi-gdb. Select the default |
| destination folder: <strong>C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major</strong>.</p> |
| <p><strong>Notes:</strong></p> |
| <ul class="simple"> |
| <li><p>Check the <code class="docutils literal notranslate"><span class="pre">Add</span> <span class="pre">path</span> <span class="pre">to</span> <span class="pre">environment</span> <span class="pre">variable</span></code> option before you click the <code class="docutils literal notranslate"><span class="pre">Finish</span></code> button for the installation.</p></li> |
| <li><p>You may select a different folder but the installation |
| instructions use the default values.</p></li> |
| </ul> |
| </li> |
| <li><p>Check that you are using the installed versions |
| arm-none-eabi-gcc and arm-none-eabi-gdb. Open a MinGW terminal and run |
| the <code class="docutils literal notranslate"><span class="pre">which</span></code> commands.</p> |
| <p><strong>Note:</strong> You must start a new MinGW terminal to inherit the new |
| <strong>Path</strong> values.</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>which<span class="w"> </span>arm-none-eabi-gcc |
| <span class="go">/c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major/bin/arm-none-eabi-gcc</span> |
| <span class="gp">$ </span>which<span class="w"> </span>arm-none-eabi-gdb |
| <span class="go">/c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major/bin/arm-none-eabi-gdb</span> |
| </pre></div> |
| </div> |
| </li> |
| </ol> |
| </div> |
| </div> |
| <div class="section" id="installing-the-debuggers"> |
| <h2><a class="toc-backref" href="#id5">Installing the Debuggers</a><a class="headerlink" href="#installing-the-debuggers" title="Permalink to this headline">¶</a></h2> |
| <p>Mynewt uses, depending on the board, either the OpenOCD or SEGGER J-Link |
| debuggers.</p> |
| <div class="section" id="installing-the-openocd-debugger"> |
| <h3><a class="toc-backref" href="#id6">Installing the OpenOCD Debugger</a><a class="headerlink" href="#installing-the-openocd-debugger" title="Permalink to this headline">¶</a></h3> |
| <p>OpenOCD (Open On-Chip |
| Debugger) is open-source software that allows your computer to interface |
| with the JTAG debug connector on a variety of boards. A JTAG connection |
| lets you debug and test embedded target devices. For more on OpenOCD go |
| to <a class="reference external" href="http://openocd.org">http://openocd.org</a>.</p> |
| <p>OpenOCD version 0.10.0 with nrf52 support is required. A binary for this |
| version is available to download for Mac OS, Linux, and Windows.</p> |
| </div> |
| <div class="section" id="installing-openocd-on-mac-os"> |
| <h3><a class="toc-backref" href="#id7">Installing OpenOCD on Mac OS</a><a class="headerlink" href="#installing-openocd-on-mac-os" title="Permalink to this headline">¶</a></h3> |
| <ol class="arabic simple"> |
| <li><p>Install latest OpenOCD from Homebrew:</p></li> |
| </ol> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>brew<span class="w"> </span>update |
| <span class="gp">$ </span>brew<span class="w"> </span>install<span class="w"> </span>open-ocd<span class="w"> </span>--HEAD |
| </pre></div> |
| </div> |
| <ol class="arabic"> |
| <li><p>Check the OpenOCD version you are using:</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>which<span class="w"> </span>openocd |
| <span class="go">/usr/local/bin/openocd</span> |
| |
| <span class="gp">$ </span>openocd<span class="w"> </span>-v |
| <span class="go">Open On-Chip Debugger 0.10.0</span> |
| <span class="go">Licensed under GNU GPL v2</span> |
| <span class="go">For bug reports, read</span> |
| <span class="go">http://openocd.org/doc/doxygen/bugs.html</span> |
| </pre></div> |
| </div> |
| <p>You should see version: <strong>0.10.0+dev-<latest#></strong>.</p> |
| </li> |
| </ol> |
| </div> |
| <div class="section" id="installing-openocd-on-linux"> |
| <h3><a class="toc-backref" href="#id8">Installing OpenOCD on Linux</a><a class="headerlink" href="#installing-openocd-on-linux" title="Permalink to this headline">¶</a></h3> |
| <ol class="arabic"> |
| <li><p>Download the <a class="reference external" href="https://github.com/runtimeco/openocd-binaries/raw/master/openocd-bin-0.10.0-Linux.tgz">binary tarball for |
| Linux</a></p></li> |
| <li><p>Change to the root directory:</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span><span class="nb">cd</span><span class="w"> </span>/ |
| </pre></div> |
| </div> |
| </li> |
| <li><p>Untar the tarball and install into <strong>/usr/local/bin</strong>. You |
| will need to replace <strong>~/Downloads</strong> with the directory that the |
| tarball is downloaded to.</p> |
| <p><strong>Note:</strong> You must specify the -p option for the tar command.</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>sudo<span class="w"> </span>tar<span class="w"> </span>-xpf<span class="w"> </span>~/Downloads/openocd-bin-0.10.0-Linux.tgz |
| </pre></div> |
| </div> |
| </li> |
| <li><p>Check the OpenOCD version you are using:</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>which<span class="w"> </span>openocd |
| <span class="go">/usr/local/bin/openocd</span> |
| <span class="gp">$ </span>openocd<span class="w"> </span>-v |
| <span class="go">Open On-Chip Debugger 0.10.0</span> |
| <span class="go">Licensed under GNU GPL v2</span> |
| <span class="go">For bug reports, read</span> |
| <span class="go">http://openocd.org/doc/doxygen/bugs.html</span> |
| </pre></div> |
| </div> |
| <p>You should see version: <strong>0.10.0</strong>.</p> |
| <p>If you see any of these error messages:</p> |
| <ul class="simple"> |
| <li><p>openocd: error while loading shared libraries: libhidapi-hidraw.so.0: |
| cannot open shared object file: No such file or directory</p></li> |
| <li><p>openocd: error while loading shared libraries: libusb-1.0.so.0: |
| cannot open shared object file: No such file or directory</p></li> |
| </ul> |
| <p>run the following command to install the libraries:</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>sudo<span class="w"> </span>apt-get<span class="w"> </span>install<span class="w"> </span>libhidapi-dev:i386 |
| </pre></div> |
| </div> |
| </li> |
| </ol> |
| </div> |
| <div class="section" id="installing-openocd-on-windows"> |
| <h3><a class="toc-backref" href="#id9">Installing OpenOCD on Windows</a><a class="headerlink" href="#installing-openocd-on-windows" title="Permalink to this headline">¶</a></h3> |
| <ol class="arabic"> |
| <li><p>Download the <a class="reference external" href="https://github.com/runtimeco/openocd-binaries/raw/master/openocd-0.10.0.zip">binary zip file for |
| Windows</a>.</p></li> |
| <li><p>Extract into the <strong>C:\openocd-0.10.0</strong> folder.</p></li> |
| <li><p>Add the path: <strong>C:\openocd-0.10.0\bin</strong> to your Windows User |
| <strong>Path</strong> environment variable. Note: You must add <strong>bin</strong> to the path.</p></li> |
| <li><p>Check the OpenOCD version you are using. Open a new MinGW |
| terminal and run the following commands:</p> |
| <p><strong>Note:</strong> You must start a new MinGW terminal to inherit the new |
| <strong>Path</strong> values.</p> |
| <div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>which<span class="w"> </span>openocd |
| <span class="go">/c/openocd-0.10.0/bin/openocd</span> |
| <span class="gp">$ </span>openocd<span class="w"> </span>-v |
| <span class="go">Open On-Chip Debugger 0.10.0</span> |
| <span class="go">Licensed under GNU GPL v2</span> |
| <span class="go">For bug reports, read</span> |
| <span class="go"> http://openocd.org/doc/doxygen/bugs.html</span> |
| </pre></div> |
| </div> |
| <p>You should see version: <strong>0.10.0</strong>.</p> |
| </li> |
| </ol> |
| </div> |
| <div class="section" id="installing-segger-j-link"> |
| <h3><a class="toc-backref" href="#id10">Installing SEGGER J-Link</a><a class="headerlink" href="#installing-segger-j-link" title="Permalink to this headline">¶</a></h3> |
| <p>You can download and install Segger J-LINK Software and documentation pack from |
| <a class="reference external" href="https://www.segger.com/jlink-software.html">SEGGER</a>.</p> |
| <p><strong>Note:</strong> On Windows, perform the following after the installation:</p> |
| <ul class="simple"> |
| <li><p>Add the installation destination folder path to your Windows user |
| <strong>Path</strong> environment variable. You do not need to add <strong>bin</strong> to the |
| path.</p></li> |
| <li><p>Open a new MinGW terminal to inherit the new <strong>Path</strong> values.</p></li> |
| </ul> |
| </div> |
| </div> |
| </div> |
| |
| |
| </div> |
| </div> |
| |
| <div class="rst-footer-buttons row" role="navigation" aria-label="footer navigation"> |
| |
| <a href="../docker.html" class="btn btn-neutral float-right" title="Everything You Need in a Docker Container" accesskey="n">Next: Everything You Need in a Docker Container <span class="fa fa-arrow-circle-right"></span></a> |
| |
| |
| <a href="native_tools.html" class="btn btn-neutral" title="Installing Native Toolchain" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous: Installing Native Toolchain</a> |
| |
| </div> |
| |
| </div> |
| </div> |
| </div> |
| <!-- ENDS CONTENT SECTION --> |
| </div> |
| <!-- ENDS .content --> |
| </div> |
| </div> |
| <footer> |
| <div class="container"> |
| <div class="row"> |
| <div class="col-xs-12"> |
| |
| <p class="copyright">Apache Mynewt is available under Apache License, version 2.0.</p> |
| |
| </div> |
| <div class="col-xs-12"> |
| <div class="logos"> |
| <img src="../../_static/img/asf_logo_wide_small.png" alt="Apache" title="Apache"> |
| <small class="footnote"> |
| Apache Mynewt, Mynewt, Apache, the Apache feather logo, and the Apache Mynewt project logo are either |
| registered trademarks or trademarks of the Apache Software Foundation in the United States and other countries. |
| </small> |
| <a href=""> |
| <img src="../../_static/img/add_to_slack.png" alt="Slack Icon" title="Join our Slack Community" /> |
| </a> |
| </div> |
| </div> |
| </div> |
| </div> |
| </footer> |
| </div> |
| <!-- ENDS #wrapper --> |
| |
| |
| |
| <script type="text/javascript"> |
| var DOCUMENTATION_OPTIONS = { |
| URL_ROOT:'../../', |
| VERSION:'latest', |
| COLLAPSE_INDEX:false, |
| FILE_SUFFIX:'.html', |
| HAS_SOURCE: true, |
| SOURCELINK_SUFFIX: '.txt', |
| LINK_SUFFIX: '.html' |
| }; |
| </script> |
| <script type="text/javascript" src="../../_static/jquery.js"></script> |
| <script type="text/javascript" src="../../_static/underscore.js"></script> |
| <script type="text/javascript" src="../../_static/doctools.js"></script> |
| <script type="text/javascript" src="../../_static/js/bootstrap-3.0.3.min.js"></script> |
| <script type="text/javascript" src="../../_static/js/affix.js"></script> |
| <script type="text/javascript" src="../../_static/js/main.js"></script> |
| |
| |
| |
| </body> |
| </html> |