You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2017/04/08 00:21:22 UTC
[07/11] incubator-mynewt-site git commit: Updated Blinky and Slinky
tutorials with intro summaries,
remove legacy feature references in the tutorials
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/40899401/develop/os/tutorials/project-nrf52-slinky/index.html
----------------------------------------------------------------------
diff --git a/develop/os/tutorials/project-nrf52-slinky/index.html b/develop/os/tutorials/project-nrf52-slinky/index.html
new file mode 100644
index 0000000..70442cc
--- /dev/null
+++ b/develop/os/tutorials/project-nrf52-slinky/index.html
@@ -0,0 +1,742 @@
+<!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">
+
+
+ <!-- This is broken by doc revisioning.
+ <link rel="canonical" href="http://mynewt.apache.org/os/tutorials/project-nrf52-slinky/"> -->
+ <link rel="shortcut icon" href="../../../img/favicon.ico">
+
+ <title>Slinky on Nordic nRF52 - Apache Mynewt</title>
+
+ <link href="../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../css/highlight.css">
+ <link href="../../../css/base.css" rel="stylesheet">
+ <link href="../../../css/custom.css" rel="stylesheet">
+ <link href="../../../css/v2.css" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+ <link href="../../../extra.css" rel="stylesheet">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <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="Slinky on Nordic nRF52">
+
+
+ <div class="container">
+ <div class="row v2-main-banner">
+ <a class="logo-cell" href="/">
+ <img class="logo" src="/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.0.0</a> released (March 22, 2017)
+ </div>
+ </div>
+ </div>
+</div>
+
+
+
+
+
+
+
+
+<nav id="navbar" class="navbar navbar-inverse affix-top" data-spy="affix" data-offset-top="150" 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
+ class=""
+>
+ <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
+ class=""
+>
+ <a href="/about/">About</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/talks/">Talks</a>
+ </li>
+ <li
+ class="active"
+>
+ <a href="/latest/os/introduction">Documentation</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/download/">Download</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/community/">Community</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</nav>
+
+
+
+ <div class="container">
+
+ <div class="row">
+ <div class="col-md-3 v2-sidebar sidebar-container"><div id="docSidebar" class="hidden-print" role="complementary">
+ <div class="top">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
+ <div class="form-group">
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="toc-nav">
+ <li class="doc-version">
+<select class="form-control" onchange="if (this.value) window.location.href=this.value">
+
+ <option
+ value="/develop/os/introduction"
+ selected="selected"
+ >
+ Version: develop (latest)
+ </option>
+
+ <option
+ value="/v0_9_0/os/introduction"
+
+ >
+ Version: 0.9.0
+ </option>
+
+</select>
+</li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li ><a href="../../introduction/">Mynewt Documentation</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../../get_started/get_started/">Basic Setup</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../../get_started/vocabulary/">Concepts</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../tutorials/">Tutorials</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../blinky/">Project Blinky</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../repo/add_repos/">Work with repositories</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../project-slinky/">Project Slinky for Remote Comms</a>
+
+
+ <ul>
+
+
+
+
+
+ <li >
+ <a href="../project-sim-slinky/">Slinky on sim device</a>
+ </li>
+
+
+
+
+
+ <li class="active">
+ <a href="./">Slinky on Nordic nRF52</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../project-stm32-slinky/">Slinky on Olimex</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../ibeacon/">BLE iBeacon</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../eddystone/">BLE Eddystone</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../add_newtmgr/">Enable Newt Manager in any app</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../add_shell/">Enable the OS Shell and Console</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../tasks_lesson/">Tasks and Priority Management</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../wi-fi_on_arduino/">Enable Wi-Fi on Arduino MKR1000</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../unit_test/">Write a Test Suite for a Package</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../event_queue/">Events and Event Queues</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../bletiny_project/">BLE app to check stats via console</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../bleprph/bleprph-intro/">BLE peripheral project</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../blehci_project/">BLE HCI interface</a>
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../air_quality_sensor/
+">Air-quality Sensor project</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../nrf52_adc/">Add an Analog Sensor</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../os_user_guide/">OS User Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../network/ble/ble_intro/
+">BLE User Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../newt/newt_intro/">Newt Tool Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../newtmgr/overview/">Newt Manager Guide</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../faq/how_to_edit_docs/
+">Appendix</a>
+
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="col-md-9" role="main">
+ <div class="doc-header">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs pull-right">
+ <li><a href="/develop/os/introduction">Docs</a></li>
+
+
+
+ <li>» <a href="../tutorials/">Tutorials</a></li>
+
+
+
+ <li>» <a href="../project-slinky/">Project Slinky for Remote Comms</a></li>
+
+
+
+ <li>» Slinky on Nordic nRF52</li>
+
+
+
+ </ul>
+</div>
+ </div>
+
+ <h2 id="project-slinky-using-the-nordic-nrf52-board">Project Slinky using the Nordic nRF52 Board</h2>
+<p>This tutorial shows you how to create, build and run the Slinky application and communicate with newtmgr for a Nordic nRF52 board.</p>
+<h3 id="prerequisites">Prerequisites</h3>
+<ul>
+<li>Meet the prerequisites listed in <a href="../project-slinky/">Project Slinky</a>. </li>
+<li>Have a Nordic nRF52-DK board. </li>
+</ul>
+<h3 id="create-a-new-project">Create a New Project</h3>
+<p>Create a new project if you do not have an existing one. You can skip this step and proceed to <a href="#create_targets">create the targets</a> if you already have a project created or completed the <a href="../project-slinky/">Sim Slinky</a> tutorial. </p>
+<p>Run the following commands to create a new project. We name the project <code>slinky</code>. </p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt new slinky
+Downloading project skeleton from apache/incubator-mynewt-blinky...
+...
+Installing skeleton in slink...
+Project slinky successfully created
+$ cd slinky
+$newt install
+apache-mynewt-core
+</pre></div>
+
+
+<p><br></p>
+<h3 id="create-the-targets"><a name="create_targets"></a> Create the Targets</h3>
+<p>Create two targets for the nRF52-DK board - one for the bootloader and one for the Slinky application.</p>
+<p>Run the following <code>newt target</code> commands, from your project directory, to create a bootloader target. We name the target <code>nrf52_boot</code>.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt target create nrf52_boot
+$ newt target set nrf52_boot bsp=@apache-mynewt-core/hw/bsp/nrf52dk
+$ newt target set nrf52_boot build_profile=optimized
+$ newt target set nrf52_boot app=@apache-mynewt-core/apps/boot
+</pre></div>
+
+
+<p><br>
+Run the following <code>newt target</code> commands to create a target for the Slinky application. We name the target <code>nrf52_slinky</code>.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt target create nrf52_slinky
+$ newt target set nrf52_slinky bsp=@apache-mynewt-core/hw/bsp/nrf52dk
+$ newt target set nrf52_slinky build_profile=debug
+$ newt target set nrf52_slinky app=@apache-mynewt-core/apps/slinky
+</pre></div>
+
+
+<p><br></p>
+<h3 id="build-the-targets">Build the Targets</h3>
+<p>Run the <code>newt build nrf52_boot</code> command to build the bootloader:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt build nrf52-boot
+Building target targets/nrf52_boot
+Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec256.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/image_rsa.c
+Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aes.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/loader.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/image_validate.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/bootutil_misc.c
+Compiling repos/apache-mynewt-core/apps/boot/src/boot.c
+ ...
+
+Archiving sys_mfg.a
+Archiving sys_sysinit.a
+Archiving util_mem.a
+Linking ~/dev/slinky/bin/targets/nrf52_boot/app/apps/boot/boot.elf
+Target successfully built: targets/nrf52_boot
+</pre></div>
+
+
+<p><br></p>
+<p>Run the <code>newt build nrf52_slinky</code> command to build the Slinky application:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$newt build nrf52_slinky
+Building target targets/nrf52_slinky
+Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec256.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/image_rsa.c
+Compiling repos/apache-mynewt-core/boot/split/src/split.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/loader.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/bootutil_misc.c
+Compiling repos/apache-mynewt-core/boot/split/src/split_config.c
+Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aesni.c
+Compiling repos/apache-mynewt-core/boot/bootutil/src/image_validate.c
+Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aes.c
+Compiling repos/apache-mynewt-core/apps/slinky/src/main.c
+
+ ...
+
+Archiving util_mem.a
+Linking ~/dev/slinky/bin/targets/nrf52_slinky/app/apps/slinky/slinky.elf
+Target successfully built: targets/nrf52_slinky
+</pre></div>
+
+
+<p><br></p>
+<h3 id="sign-and-create-the-slinky-application-image">Sign and Create the Slinky Application Image</h3>
+<p>Run the <code>newt create-image nrf52_slinky 1.0.0</code> command to create and sign the application image. You may assign an arbitrary version (e.g. 1.0.0) to the image.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt create-image nrf52_slinky 1.0.0
+App image succesfully generated: ~/dev/slinky/bin/targets/nrf52_slinky/app/apps/slinky/slinky.img
+$
+</pre></div>
+
+
+<p><br></p>
+<h3 id="connect-to-the-board">Connect to the Board</h3>
+<ul>
+<li>Connect a micro-USB cable from your computer to the micro-USB port on the nRF52-DK board.</li>
+<li>Turn the power on the board to ON. You should see the green LED light up on the board.</li>
+</ul>
+<p><br></p>
+<h3 id="load-the-bootloader-and-the-slinky-application-image">Load the Bootloader and the Slinky Application Image</h3>
+<p>Run the <code>newt load nrf52_boot</code> command to load the bootloader onto the board:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt load nrf52_boot
+Loading bootloader
+$
+</pre></div>
+
+
+<p><br>
+Run the <code>newt load nrf52_slinky</code> command to load the Slinky application image onto the board:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt load nrf52_slinky
+Loading app image into slot 1
+$
+</pre></div>
+
+
+<p><br></p>
+<h3 id="connect-newtmgr-with-the-board-using-a-serial-connection">Connect Newtmgr with the Board using a Serial Connection</h3>
+<p>Set up a serial connection from your computer to the nRF52-DK board (See <a href="../../get_started/serial_access/">Serial Port Setup</a>). </p>
+<p>Locate the port, in the /dev directory on your computer, that the serial connection uses. It should be of the type <code>tty.usbserial-<some identifier></code>.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ ls /dev/tty*usbserial*
+/dev/tty.usbserial-1d11
+$
+</pre></div>
+
+
+<p><br>
+Setup a newtmgr connection profile for the serial port. For our example, the port is <code>/dev/tty.usbserial-1d11</code>. </p>
+<p>Run the <code>newtmgr conn add</code> command to define a newtmgr connection profile for the serial port. We name the connection profile <code>nrf52serial</code>. You will need to replace the <code>connstring</code> with the specific port for your serial connection. </p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr conn add nrf52serial type=serial connstring=/dev/tty.usbserial-1d11
+Connection profile nrf52serial successfully added
+$
+</pre></div>
+
+
+<p><br>
+You can run the <code>newt conn show</code> command to see all the newtmgr connection profiles:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr conn show
+Connection profiles:
+ nrf52serial: type=serial, connstring='/dev/tty.usbserial-1d11'
+ sim1: type=serial, connstring='/dev/ttys012'
+$
+</pre></div>
+
+
+<p><br></p>
+<h3 id="use-newtmgr-to-query-the-board">Use Newtmgr to Query the Board</h3>
+<p>Run some newtmgr commands to query and receive responses back from the board (See the <a href="../newtmgr/overview">Newt Manager Guide</a> for more information on the newtmgr commands). </p>
+<p>Run the <code>newtmgr echo hello -c nrf52serial</code> command. This is the simplest command that requests the board to echo back the text. </p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr echo hello -c nrf52serial
+hello
+$
+</pre></div>
+
+
+<p><br>
+Run the <code>newtmgr image list -c nrf52serial</code> command to list the images on the board:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr image list -c nrf52serial
+Images:
+ slot=0
+ version: 1.0.0
+ bootable: true
+ flags: active confirmed
+ hash: f411a55d7a5f54eb8880d380bf47521d8c41ed77fd0a7bd5373b0ae87ddabd42
+Split status: N/A
+$
+</pre></div>
+
+
+<p><br>
+Run the <code>newtmgr taskstats -c nrf52serial</code> command to display the task statistics on the board:</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr taskstats -c nrf52serial
+Return Code = 0
+ task pri tid runtime csw stksz stkuse last_checkin next_checkin
+ task1 8 2 0 1751 192 110 0 0
+ task2 9 3 0 1751 64 31 0 0
+ idle 255 0 224081 2068 64 32 0 0
+ main 127 1 3 29 1024 365 0 0
+$
+</pre></div>
+
+ <div class="row">
+
+
+
+
+<ul class="nav nav-pills" style="margin-bottom: 10px">
+ <li>
+
+ <a href=../project-sim-slinky/>
+ <span class="fa fa-arrow-left"></span>
+ Previous: Slinky on sim device
+ </a>
+
+ </li>
+ <li class="pull-right">
+
+ <a href=../project-stm32-slinky/>
+ Next: Slinky on Olimex
+ <span class="fa fa-arrow-right"></span>
+ </a>
+
+ </li>
+</ul>
+ </div>
+ <footer class="row">
+ <div class="col-xs-12">
+
+ <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p>
+
+ </div>
+ <div class="col-xs-12">
+ <div class="logos">
+ <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ <img src="/img/egg-logo2.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+
+ </div>
+
+ <script src="../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../js/highlight.pack.js"></script>
+ <script src="../../../js/base.js"></script>
+ <script src="../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/40899401/develop/os/tutorials/project-sim-slinky/index.html
----------------------------------------------------------------------
diff --git a/develop/os/tutorials/project-sim-slinky/index.html b/develop/os/tutorials/project-sim-slinky/index.html
new file mode 100644
index 0000000..fa08269
--- /dev/null
+++ b/develop/os/tutorials/project-sim-slinky/index.html
@@ -0,0 +1,653 @@
+<!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">
+
+
+ <!-- This is broken by doc revisioning.
+ <link rel="canonical" href="http://mynewt.apache.org/os/tutorials/project-sim-slinky/"> -->
+ <link rel="shortcut icon" href="../../../img/favicon.ico">
+
+ <title>Slinky on sim device - Apache Mynewt</title>
+
+ <link href="../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+ <link rel="stylesheet" href="../../../css/highlight.css">
+ <link href="../../../css/base.css" rel="stylesheet">
+ <link href="../../../css/custom.css" rel="stylesheet">
+ <link href="../../../css/v2.css" rel="stylesheet">
+ <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
+ <link href="../../../extra.css" rel="stylesheet">
+
+ <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
+ <![endif]-->
+
+
+ <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="Slinky on sim device">
+
+
+ <div class="container">
+ <div class="row v2-main-banner">
+ <a class="logo-cell" href="/">
+ <img class="logo" src="/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.0.0</a> released (March 22, 2017)
+ </div>
+ </div>
+ </div>
+</div>
+
+
+
+
+
+
+
+
+<nav id="navbar" class="navbar navbar-inverse affix-top" data-spy="affix" data-offset-top="150" 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
+ class=""
+>
+ <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
+ class=""
+>
+ <a href="/about/">About</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/talks/">Talks</a>
+ </li>
+ <li
+ class="active"
+>
+ <a href="/latest/os/introduction">Documentation</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/download/">Download</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/community/">Community</a>
+ </li>
+ <li
+ class=""
+>
+ <a href="/events/">Events</a>
+ </li>
+ </ul>
+
+ <!-- Search, Navigation and Repo links -->
+ <ul class="nav navbar-nav navbar-right">
+
+ </ul>
+ </div>
+ </div>
+</nav>
+
+
+
+ <div class="container">
+
+ <div class="row">
+ <div class="col-md-3 v2-sidebar sidebar-container"><div id="docSidebar" class="hidden-print" role="complementary">
+ <div class="top">
+ <div role="search">
+ <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
+ <div class="form-group">
+ <input type="text" name="q" class="form-control" placeholder="Search documentation" />
+ </div>
+ </form>
+ </div>
+ </div>
+ <ul class="toc-nav">
+ <li class="doc-version">
+<select class="form-control" onchange="if (this.value) window.location.href=this.value">
+
+ <option
+ value="/develop/os/introduction"
+ selected="selected"
+ >
+ Version: develop (latest)
+ </option>
+
+ <option
+ value="/v0_9_0/os/introduction"
+
+ >
+ Version: 0.9.0
+ </option>
+
+</select>
+</li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <li ><a href="../../introduction/">Mynewt Documentation</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../../get_started/get_started/">Basic Setup</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../../get_started/vocabulary/">Concepts</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../tutorials/">Tutorials</a>
+
+
+ <ul>
+
+
+
+
+
+
+
+ <li ><a href="../blinky/">Project Blinky</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../repo/add_repos/">Work with repositories</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../project-slinky/">Project Slinky for Remote Comms</a>
+
+
+ <ul>
+
+
+
+
+
+ <li class="active">
+ <a href="./">Slinky on sim device</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../project-nrf52-slinky/">Slinky on Nordic nRF52</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../project-stm32-slinky/">Slinky on Olimex</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../ibeacon/">BLE iBeacon</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../eddystone/">BLE Eddystone</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../add_newtmgr/">Enable Newt Manager in any app</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../add_shell/">Enable the OS Shell and Console</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../tasks_lesson/">Tasks and Priority Management</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../wi-fi_on_arduino/">Enable Wi-Fi on Arduino MKR1000</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../unit_test/">Write a Test Suite for a Package</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../event_queue/">Events and Event Queues</a>
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../bletiny_project/">BLE app to check stats via console</a>
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../bleprph/bleprph-intro/">BLE peripheral project</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../blehci_project/">BLE HCI interface</a>
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../air_quality_sensor/
+">Air-quality Sensor project</a>
+
+
+ </li>
+
+
+
+
+
+ <li >
+ <a href="../nrf52_adc/">Add an Analog Sensor</a>
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../os_user_guide/">OS User Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../network/ble/ble_intro/
+">BLE User Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../newt/newt_intro/">Newt Tool Guide</a>
+
+
+ </li>
+
+
+
+
+
+
+
+ <li ><a href="../../../newtmgr/overview/">Newt Manager Guide</a>
+
+
+ </li>
+
+
+
+ </ul>
+
+ </li>
+
+
+
+
+
+
+
+ <li><a href="
+ ../../../faq/how_to_edit_docs/
+">Appendix</a>
+
+
+ </li>
+
+
+
+ </ul>
+</div></div>
+
+ <div class="col-md-9" role="main">
+ <div class="doc-header">
+ <div role="navigation" aria-label="breadcrumbs navigation">
+ <ul class="wy-breadcrumbs pull-right">
+ <li><a href="/develop/os/introduction">Docs</a></li>
+
+
+
+ <li>» <a href="../tutorials/">Tutorials</a></li>
+
+
+
+ <li>» <a href="../project-slinky/">Project Slinky for Remote Comms</a></li>
+
+
+
+ <li>» Slinky on sim device</li>
+
+
+
+ </ul>
+</div>
+ </div>
+
+ <h2 id="project-sim-slinky">Project Sim Slinky</h2>
+<p>This tutorial shows you how to create, build and run the Slinky application and communicate with newtmgr for a simulated device.</p>
+<p><br></p>
+<h3 id="prerequisites">Prerequisites</h3>
+<p>Meet the prerequisites listed in <a href="../project-slinky/">Project Slinky</a>.</p>
+<h3 id="creating-a-new-project">Creating a new project</h3>
+<p>Instructions for creating a project are located in the <a href="../../get_started/project_create/">Basic Setup</a> section of the <a href="../../introduction/">Mynewt Documentation</a></p>
+<p>We will list only the steps here for brevity. We will name the project <code>slinky</code>.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt new slinky
+Downloading project skeleton from apache/incubator-mynewt-blinky...
+...
+Installing skeleton in slink...
+Project slinky successfully created
+$ cd slinky
+$newt install
+apache-mynewt-core
+</pre></div>
+
+
+<h3 id="setting-up-your-target-build">Setting up your target build</h3>
+<p>Create a target for <code>slinky</code> using the native bsp. We will list only the steps and suppress the tool output here for brevity.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newt target create sim_slinky
+ $ newt target set sim_slinky bsp=@apache-mynewt-core/hw/bsp/native
+ $ newt target set sim_slinky build_profile=debug
+ $ newt target set sim_slinky app=@apache-mynewt-core/apps/slinky
+</pre></div>
+
+
+<h3 id="building-your-target">Building Your target</h3>
+<p>To build your target, use <code>newt build</code>. When complete, an executable file
+is created.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newt build sim_slinky
+ Building target targets/sim_slinky
+ Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec256.c
+ Compiling repos/apache-mynewt-core/boot/bootutil/src/image_rsa.c
+ Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec.c
+ Compiling repos/apache-mynewt-core/boot/split/src/split.c
+ Compiling repos/apache-mynewt-core/boot/bootutil/src/image_validate.c
+ Compiling repos/apache-mynewt-core/boot/bootutil/src/loader.c
+ Compiling repos/apache-mynewt-core/boot/bootutil/src/bootutil_misc.c
+ Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aesni.c
+ Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aes.c
+ Compiling repos/apache-mynewt-core/boot/split/src/split_config.c
+ Compiling repos/apache-mynewt-core/apps/slinky/src/main.c
+
+ ...
+
+ Archiving util_crc.a
+ Archiving util_mem.a
+ Linking ~/dev/slinky/bin/targets/sim_slinky/app/apps/slinky/slinky.elf
+ Target successfully built: targets/sim_slinky
+</pre></div>
+
+
+<h3 id="run-the-target">Run the target</h3>
+<p>Run the executable you have build for the simulated environment. The serial port name on which the simulated target is connected is shown in the output when mynewt slinky starts.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ ~/dev/slinky/bin/targets/sim_slinky/app/apps/slinky/slinky.elf
+ uart0 at /dev/ttys005
+</pre></div>
+
+
+<p><br></p>
+<p>In this example, the slinky app opened up a com port <code>/dev/ttys005</code> for communications with newtmgr. </p>
+<p><strong>NOTE:</strong> This application will block. You will need to open a new console (or execute this in another console) to continue the tutorial.*</p>
+<p><br></p>
+<h3 id="setting-up-a-connection-profile">Setting up a connection profile</h3>
+<p>You will now set up a connection profile using <code>newtmgr</code> for the serial port connection and start communicating with the simulated remote device.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newtmgr conn add sim1 type=serial connstring=/dev/ttys005
+ Connection profile sim1 successfully added
+ $ newtmgr conn show
+ Connection profiles:
+ sim1: type=serial, connstring='/dev/ttys005'
+</pre></div>
+
+
+<h3 id="executing-newtmgr-commands-with-the-target">Executing newtmgr commands with the target</h3>
+<p>You can now use connection profile <code>sim1</code> to talk to the running sim_slinky.
+As an example, we will query the running mynewt OS for the usage of its
+memory pools. </p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newtmgr -c sim1 mpstats
+ Return Code = 0
+ name blksz cnt free min
+ msys_1 292 12 10 10
+</pre></div>
+
+
+<p>As a test command, you can send an arbitrary string to the target and it
+will echo that string back in a response to newtmgr.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newtmgr -c sim1 echo "Hello Mynewt"
+ Hello Mynewt
+</pre></div>
+
+
+<p>In addition to these, you can also examine running tasks, statistics,
+logs, image status (not on sim), and configuration.</p>
+
+ <div class="row">
+
+
+
+
+<ul class="nav nav-pills" style="margin-bottom: 10px">
+ <li>
+
+ <a href=../project-slinky/>
+ <span class="fa fa-arrow-left"></span>
+ Previous: Project Slinky for Remote Comms
+ </a>
+
+ </li>
+ <li class="pull-right">
+
+ <a href=../project-nrf52-slinky/>
+ Next: Slinky on Nordic nRF52
+ <span class="fa fa-arrow-right"></span>
+ </a>
+
+ </li>
+</ul>
+ </div>
+ <footer class="row">
+ <div class="col-xs-12">
+
+ <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p>
+
+ </div>
+ <div class="col-xs-12">
+ <div class="logos">
+ <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
+ <small class="footnote">
+ MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+ </small>
+ <img src="/img/egg-logo2.png" alt="Apache Incubator" title="Apache Incubator">
+ </div>
+ </div>
+</footer>
+ </div>
+ </div>
+
+
+ </div>
+
+ <script src="../../../js/jquery-1.10.2.min.js"></script>
+ <script src="../../../js/bootstrap-3.0.3.min.js"></script>
+ <script src="../../../js/highlight.pack.js"></script>
+ <script src="../../../js/base.js"></script>
+ <script src="../../../js/custom.js"></script>
+
+ </body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/40899401/develop/os/tutorials/project-slinky/index.html
----------------------------------------------------------------------
diff --git a/develop/os/tutorials/project-slinky/index.html b/develop/os/tutorials/project-slinky/index.html
index 30c42f6..cdb2167 100644
--- a/develop/os/tutorials/project-slinky/index.html
+++ b/develop/os/tutorials/project-slinky/index.html
@@ -10,7 +10,7 @@
<link rel="canonical" href="http://mynewt.apache.org/os/tutorials/project-slinky/"> -->
<link rel="shortcut icon" href="../../../img/favicon.ico">
- <title>Slinky on sim device - Apache Mynewt</title>
+ <title>toc - Apache Mynewt</title>
<link href="../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
<link rel="stylesheet" href="../../../css/highlight.css">
@@ -41,7 +41,7 @@
</head>
- <body class="Slinky on sim device">
+ <body class="toc">
<div class="container">
@@ -232,9 +232,7 @@
- <li><a href="
- ../arduino_zero/
-">Project Blinky</a>
+ <li ><a href="../blinky/">Project Blinky</a>
</li>
@@ -254,16 +252,19 @@
- <li >
- <a href="../tasks_lesson/">Tasks and Priority Management</a>
- </li>
-
+
+
+ <li class="active"><a href="./">Project Slinky for Remote Comms</a>
+
+
+ <ul>
+
<li >
- <a href="../wi-fi_on_arduino/">Enable Wi-Fi on Arduino MKR1000</a>
+ <a href="../project-sim-slinky/">Slinky on sim device</a>
</li>
@@ -271,7 +272,7 @@
<li >
- <a href="../unit_test/">Write a Test Suite for a Package</a>
+ <a href="../project-nrf52-slinky/">Slinky on Nordic nRF52</a>
</li>
@@ -279,26 +280,21 @@
<li >
- <a href="../event_queue/">Events and Event Queues</a>
+ <a href="../project-stm32-slinky/">Slinky on Olimex</a>
</li>
-
-
-
-
- <li><a href="
- ./
-">Project Slinky for remote comms</a>
-
+ </ul>
- <ul>
+ </li>
+
+
- <li class="active">
- <a href="./">Slinky on sim device</a>
+ <li >
+ <a href="../ibeacon/">BLE iBeacon</a>
</li>
@@ -306,7 +302,7 @@
<li >
- <a href="../project-target-slinky/">Slinky on Nordic nRF52 board</a>
+ <a href="../eddystone/">BLE Eddystone</a>
</li>
@@ -314,13 +310,15 @@
<li >
- <a href="../project-stm32-slinky/">Slinky on STM32 board</a>
+ <a href="../add_newtmgr/">Enable Newt Manager in any app</a>
</li>
- </ul>
-
+
+
+ <li >
+ <a href="../add_shell/">Enable the OS Shell and Console</a>
</li>
@@ -328,7 +326,7 @@
<li >
- <a href="../add_newtmgr/">Enable Newt Manager in any app</a>
+ <a href="../tasks_lesson/">Tasks and Priority Management</a>
</li>
@@ -336,7 +334,7 @@
<li >
- <a href="../add_shell/">Enable the OS Shell and Console</a>
+ <a href="../wi-fi_on_arduino/">Enable Wi-Fi on Arduino MKR1000</a>
</li>
@@ -344,18 +342,15 @@
<li >
- <a href="../bletiny_project/">BLE app to check stats via console</a>
+ <a href="../unit_test/">Write a Test Suite for a Package</a>
</li>
-
-
- <li ><a href="../bleprph/bleprph-intro/">BLE peripheral project</a>
-
-
+ <li >
+ <a href="../event_queue/">Events and Event Queues</a>
</li>
@@ -363,15 +358,18 @@
<li >
- <a href="../ibeacon/">BLE iBeacon</a>
+ <a href="../bletiny_project/">BLE app to check stats via console</a>
</li>
- <li >
- <a href="../eddystone/">BLE Eddystone</a>
+
+
+ <li ><a href="../bleprph/bleprph-intro/">BLE peripheral project</a>
+
+
</li>
@@ -491,134 +489,50 @@
- <li>» Project Slinky for remote comms</li>
+ <li>» Project Slinky for Remote Comms</li>
- <li>» Slinky on sim device</li>
-
</ul>
</div>
</div>
- <h2 id="project-sim-slinky">Project Sim Slinky</h2>
-<p><br></p>
-<p>The goal of the project is to use a sample app called "Slinky" included in the Mynewt repository to enable remote communications with a device running the Mynewt OS. The protocol for remote communications is called newt manager (newtmgr). In this tutorial we will create a target for a simulated device and define it with the sample app "Slinky". </p>
-<p>If you have an existing project using a target that does not use the Slinky app and you wish to add newtmgt functonality to it, check out the tutorial titled <a href="../add_newtmgr/">Enable newtmgr in any app</a>. </p>
-<p><br></p>
+ <h2 id="project-slinky">Project Slinky</h2>
+<p>The goal of the project is to use a sample application called "Slinky" included in the Mynewt repository to enable remote communications with a device running the Mynewt OS. The protocol for remote communications is called newt manager (newtmgr). </p>
+<p>If you have an existing project using a target that does not use the Slinky application and you wish to add newtmgr functionality to it, check out the tutorial titled <a href="../add_newtmgr/">Enable newtmgr in any app</a>. </p>
+<h3 id="available-tutorials">Available Tutorials</h3>
+<p>Tutorials are available for the following boards:</p>
+<ul>
+<li><a href="../../../os/tutorials/project-sim-slinky">Slinky on a simulated device</a>.</li>
+<li><a href="../../../os/tutorials/project-nrf52-slinky">Slinky on a nRF52</a>.</li>
+<li><a href="../../../os/tutorials/project-stm32-slinky">Slinky on an Olimex</a>.
+<br></li>
+</ul>
<h3 id="prerequisites">Prerequisites</h3>
-<p>Ensure that you have met the following prerequisites before continuing with this tutorial:</p>
+<p>Ensure that you meet the following prerequisites before continuing with this tutorial:</p>
<ul>
<li>Have Internet connectivity to fetch remote Mynewt components.</li>
-<li>Have a computer to build a Mynewt application.</li>
+<li>Have a computer to build a Mynewt application and connect to the board over USB.</li>
+<li>Have a Micro-USB cable to connect the board and the computer.</li>
+<li>Have a <a href="../../get_started/serial_access/">serial port setup</a>.</li>
<li>Install the newt tool and the toolchains (See <a href="../../get_started/get_started/">Basic Setup</a>).</li>
<li>Install the <a href="../../../newtmgr/installing/">newtmgr tool</a>.</li>
<li>Read the Mynewt OS <a href="../../get_started/vocabulary/">Concepts</a> section.</li>
+<li>Create a project space (directory structure) and populated it with the core code repository (apache-mynewt-core) or kn
+ow how to as explained in <a href="../../../os/get_started/project_create">Creating Your First Project</a>.</li>
</ul>
-<h3 id="overview-of-steps">Overview of steps</h3>
+<h3 id="overview-of-steps">Overview of Steps</h3>
<ul>
-<li>Install dependencies</li>
-<li>Define a target using the newt tool</li>
-<li>Build executables for the targets using the newt tool</li>
-<li>Set up serial connection with the targets </li>
-<li>Create a connection profile using the newtmgr tool</li>
-<li>Use the newtmgr tool to communicate with the targets</li>
+<li>Install dependencies.</li>
+<li>Define the bootloader and Slinky application target for the target board.</li>
+<li>Build the bootloader target.</li>
+<li>Build the Slinky application target and create an application image.</li>
+<li>Set a up serial connection with the targets.</li>
+<li>Create a connection profile using the newtmgr tool.</li>
+<li>Use the newtmgr tool to communicate with the targets.</li>
</ul>
-<h3 id="creating-a-new-project">Creating a new project</h3>
-<p>Instructions for creating a project are located in the <a href="../../get_started/project_create/">Basic Setup</a> section of the <a href="../../introduction/">Mynewt Documentation</a></p>
-<p>We will list only the steps here for brevity. We will name the project
-<code>slinky</code>.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newt new slinky
- Downloading project skeleton from apache/incubator-mynewt-blinky...
- ...
- Installing skeleton in slink...
- Project slink successfully created
- $ cd slinky
- $ newt install -v
- Downloading repository description for apache-mynewt-core... success!
- ...
- Repos successfully installed
-</pre></div>
-
-
-<h3 id="setting-up-your-target-build">Setting up your target build</h3>
-<p>Create a target for <code>slinky</code> using the native bsp. We will list only the steps and suppress the tool output here for brevity.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newt target create sim_slinky
- $ newt target set sim_slinky bsp=@apache-mynewt-core/hw/bsp/native
- $ newt target set sim_slinky build_profile=debug
- $ newt target set sim_slinky app=@apache-mynewt-core/apps/slinky
-</pre></div>
-
-
-<h3 id="building-your-target">Building Your target</h3>
-<p>To build your target, use <code>newt build</code>. When complete, an executable file
-is created.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newt build sim_slinky
- Building target targets/sim_slinky
- Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec256.c
- Compiling repos/apache-mynewt-core/boot/bootutil/src/image_rsa.c
- Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec.c
- Compiling repos/apache-mynewt-core/boot/split/src/split.c
- Compiling repos/apache-mynewt-core/boot/bootutil/src/image_validate.c
- Compiling repos/apache-mynewt-core/boot/bootutil/src/loader.c
- Compiling repos/apache-mynewt-core/boot/bootutil/src/bootutil_misc.c
- Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aesni.c
- Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aes.c
- Compiling repos/apache-mynewt-core/boot/split/src/split_config.c
- Compiling repos/apache-mynewt-core/apps/slinky/src/main.c
-
- ...
-
- Archiving util_crc.a
- Archiving util_mem.a
- Linking ~/dev/slinky/bin/targets/sim_slinky/app/apps/slinky/slinky.elf
- Target successfully built: targets/sim_slinky
-</pre></div>
-
-
-<h3 id="run-the-target">Run the target</h3>
-<p>Run the executable you have build for the simulated environment. The serial port name on which the simulated target is connected is shown in the output when mynewt slinky starts.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ ~/dev/slinky/bin/targets/sim_slinky/app/apps/slinky/slinky.elf
- uart0 at /dev/ttys005
-</pre></div>
-
-
-<p><br></p>
-<p>In this example, the slinky app opened up a com port <code>/dev/ttys005</code> for communications with newtmgr. </p>
-<p><strong>NOTE:</strong> This application will block. You will need to open a new console (or execute this in another console) to continue the tutorial.*</p>
-<p><br></p>
-<h3 id="setting-up-a-connection-profile">Setting up a connection profile</h3>
-<p>You will now set up a connection profile using <code>newtmgr</code> for the serial port connection and start communicating with the simulated remote device.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newtmgr conn add sim1 type=serial connstring=/dev/ttys005
- Connection profile sim1 successfully added
- $ newtmgr conn show
- Connection profiles:
- sim1: type=serial, connstring='/dev/ttys005'
-</pre></div>
-
-
-<h3 id="executing-newtmgr-commands-with-the-target">Executing newtmgr commands with the target</h3>
-<p>You can now use connection profile <code>sim1</code> to talk to the running sim_slinky.
-As an example, we will query the running mynewt OS for the usage of its
-memory pools. </p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newtmgr -c sim1 mpstats
- Return Code = 0
- name blksz cnt free min
- msys_1 292 12 10 10
-</pre></div>
-
-
-<p>As a test command, you can send an arbitrary string to the target and it
-will echo that string back in a response to newtmgr.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"> $ newtmgr -c sim1 echo "Hello Mynewt"
- Hello Mynewt
-</pre></div>
-
-
-<p>In addition to these, you can also examine running tasks, statistics,
-logs, image status (not on sim), and configuration.</p>
<div class="row">
@@ -628,16 +542,16 @@ logs, image status (not on sim), and configuration.</p>
<ul class="nav nav-pills" style="margin-bottom: 10px">
<li>
- <a href=../event_queue/>
+ <a href=../repo/private_repo/>
<span class="fa fa-arrow-left"></span>
- Previous: Events and Event Queues
+ Previous: Access a private Repo
</a>
</li>
<li class="pull-right">
- <a href=../project-target-slinky/>
- Next: Slinky on Nordic nRF52 board
+ <a href=../project-sim-slinky/>
+ Next: Slinky on sim device
<span class="fa fa-arrow-right"></span>
</a>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/40899401/develop/os/tutorials/project-stm32-slinky/index.html
----------------------------------------------------------------------
diff --git a/develop/os/tutorials/project-stm32-slinky/index.html b/develop/os/tutorials/project-stm32-slinky/index.html
index 1a0da70..707b21c 100644
--- a/develop/os/tutorials/project-stm32-slinky/index.html
+++ b/develop/os/tutorials/project-stm32-slinky/index.html
@@ -10,7 +10,7 @@
<link rel="canonical" href="http://mynewt.apache.org/os/tutorials/project-stm32-slinky/"> -->
<link rel="shortcut icon" href="../../../img/favicon.ico">
- <title>Slinky on STM32 board - Apache Mynewt</title>
+ <title>Slinky on Olimex - Apache Mynewt</title>
<link href="../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
<link rel="stylesheet" href="../../../css/highlight.css">
@@ -41,7 +41,7 @@
</head>
- <body class="Slinky on STM32 board">
+ <body class="Slinky on Olimex">
<div class="container">
@@ -232,9 +232,7 @@
- <li><a href="
- ../arduino_zero/
-">Project Blinky</a>
+ <li ><a href="../blinky/">Project Blinky</a>
</li>
@@ -254,16 +252,19 @@
- <li >
- <a href="../tasks_lesson/">Tasks and Priority Management</a>
- </li>
-
+
+
+ <li ><a href="../project-slinky/">Project Slinky for Remote Comms</a>
+
+
+ <ul>
+
<li >
- <a href="../wi-fi_on_arduino/">Enable Wi-Fi on Arduino MKR1000</a>
+ <a href="../project-sim-slinky/">Slinky on sim device</a>
</li>
@@ -271,34 +272,29 @@
<li >
- <a href="../unit_test/">Write a Test Suite for a Package</a>
+ <a href="../project-nrf52-slinky/">Slinky on Nordic nRF52</a>
</li>
- <li >
- <a href="../event_queue/">Events and Event Queues</a>
+ <li class="active">
+ <a href="./">Slinky on Olimex</a>
</li>
-
-
-
-
- <li><a href="
- ../project-slinky/
-">Project Slinky for remote comms</a>
-
+ </ul>
- <ul>
+ </li>
+
+
<li >
- <a href="../project-slinky/">Slinky on sim device</a>
+ <a href="../ibeacon/">BLE iBeacon</a>
</li>
@@ -306,21 +302,23 @@
<li >
- <a href="../project-target-slinky/">Slinky on Nordic nRF52 board</a>
+ <a href="../eddystone/">BLE Eddystone</a>
</li>
- <li class="active">
- <a href="./">Slinky on STM32 board</a>
+ <li >
+ <a href="../add_newtmgr/">Enable Newt Manager in any app</a>
</li>
- </ul>
-
+
+
+ <li >
+ <a href="../add_shell/">Enable the OS Shell and Console</a>
</li>
@@ -328,7 +326,7 @@
<li >
- <a href="../add_newtmgr/">Enable Newt Manager in any app</a>
+ <a href="../tasks_lesson/">Tasks and Priority Management</a>
</li>
@@ -336,7 +334,7 @@
<li >
- <a href="../add_shell/">Enable the OS Shell and Console</a>
+ <a href="../wi-fi_on_arduino/">Enable Wi-Fi on Arduino MKR1000</a>
</li>
@@ -344,18 +342,15 @@
<li >
- <a href="../bletiny_project/">BLE app to check stats via console</a>
+ <a href="../unit_test/">Write a Test Suite for a Package</a>
</li>
-
-
- <li ><a href="../bleprph/bleprph-intro/">BLE peripheral project</a>
-
-
+ <li >
+ <a href="../event_queue/">Events and Event Queues</a>
</li>
@@ -363,15 +358,18 @@
<li >
- <a href="../ibeacon/">BLE iBeacon</a>
+ <a href="../bletiny_project/">BLE app to check stats via console</a>
</li>
- <li >
- <a href="../eddystone/">BLE Eddystone</a>
+
+
+ <li ><a href="../bleprph/bleprph-intro/">BLE peripheral project</a>
+
+
</li>
@@ -491,11 +489,11 @@
- <li>» <a href="../project-slinky/">Project Slinky for remote comms</a></li>
+ <li>» <a href="../project-slinky/">Project Slinky for Remote Comms</a></li>
- <li>» Slinky on STM32 board</li>
+ <li>» Slinky on Olimex</li>
@@ -503,32 +501,16 @@
</div>
</div>
- <h2 id="project-slinky-using-stm32-board">Project Slinky Using STM32 Board</h2>
-<p>The goal of the project is to enable and demonstrate remote communications with the Mynewt OS via newt manager (newtmgr) by leveraging a sample app "Slinky" included under the /apps directory in the repository. In this project we will define a target for the STM32-E407 board and assign the app "Slinky" to it.</p>
-<p>If you have an existing project that has a different application and you wish to add newtmgr functionality to it, check out the <a href="../add_newtmgr/">Enable newtmgr in any app</a> tutorial.</p>
-<p><br></p>
+ <h2 id="project-slinky-using-olimex-board">Project Slinky Using Olimex Board</h2>
+<p>This tutorial shows you how to create, build and run the Slinky application and communicate with newtmgr for an Olimex STM-E407 board.
+<br></p>
<h3 id="prerequisites">Prerequisites</h3>
-<p>Ensure that you have met the following prerequisites before continuing with this tutorial:</p>
<ul>
+<li>Meet the prerequisites listed in <a href="../project-slinky/">Project Slinky</a>.</li>
<li>Have a STM32-E407 development board from Olimex. </li>
<li>Have a ARM-USB-TINY-H connector with JTAG interface for debugging ARM microcontrollers (comes with the ribbon cable to hook up to the board)</li>
+<li>Have a USB A-B type cable to connect the debugger to your computer. </li>
<li>Have a USB to TTL Serial Cable with female wiring harness.</li>
-<li>Have a USB Micro-A cable to connect your computer to the board.</li>
-<li>Have Internet connectivity to fetch remote Mynewt components.</li>
-<li>Have a computer to build a Mynewt application and connect to the board over USB.</li>
-<li>Install the newt tool and the toolchains (See Basic Setup).</li>
-<li>Install the newtmgr tool.</li>
-<li>Create a project space (directory structure) and populated it with the core code repository (apache-mynewt-core) or know how to as explained in Creating Your First Project.</li>
-<li>Read the Mynewt OS Concepts section.</li>
-</ul>
-<h3 id="overview-of-steps">Overview of Steps</h3>
-<ul>
-<li>Install dependencies</li>
-<li>Define a target using the newt tool</li>
-<li>Build executables for the targets using the newt tool</li>
-<li>Set up serial connection with the targets</li>
-<li>Create a connection profile using the newtmgr tool</li>
-<li>Use the newtmgr tool to communicate with the targets</li>
</ul>
<h3 id="create-a-new-project">Create a New Project</h3>
<p>Create a new project if you do not have an existing one. You can skip this step and proceed to <a href="#create_targets">create the targets</a> if you already have a project created or completed the <a href="../project-slinky/">Sim Slinky</a> tutorial.</p>
@@ -727,16 +709,16 @@ $
<ul class="nav nav-pills" style="margin-bottom: 10px">
<li>
- <a href=../project-target-slinky/>
+ <a href=../project-nrf52-slinky/>
<span class="fa fa-arrow-left"></span>
- Previous: Slinky on Nordic nRF52 board
+ Previous: Slinky on Nordic nRF52
</a>
</li>
<li class="pull-right">
- <a href=../add_newtmgr/>
- Next: Enable Newt Manager in any app
+ <a href=../ibeacon/>
+ Next: BLE iBeacon
<span class="fa fa-arrow-right"></span>
</a>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/40899401/develop/os/tutorials/project-target-slinky/index.html
----------------------------------------------------------------------
diff --git a/develop/os/tutorials/project-target-slinky/index.html b/develop/os/tutorials/project-target-slinky/index.html
deleted file mode 100644
index d618092..0000000
--- a/develop/os/tutorials/project-target-slinky/index.html
+++ /dev/null
@@ -1,763 +0,0 @@
-<!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">
-
-
- <!-- This is broken by doc revisioning.
- <link rel="canonical" href="http://mynewt.apache.org/os/tutorials/project-target-slinky/"> -->
- <link rel="shortcut icon" href="../../../img/favicon.ico">
-
- <title>Slinky on Nordic nRF52 board - Apache Mynewt</title>
-
- <link href="../../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
- <link rel="stylesheet" href="../../../css/highlight.css">
- <link href="../../../css/base.css" rel="stylesheet">
- <link href="../../../css/custom.css" rel="stylesheet">
- <link href="../../../css/v2.css" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
- <link href="../../../extra.css" rel="stylesheet">
-
- <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
- <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
- <![endif]-->
-
-
- <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="Slinky on Nordic nRF52 board">
-
-
- <div class="container">
- <div class="row v2-main-banner">
- <a class="logo-cell" href="/">
- <img class="logo" src="/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.0.0</a> released (March 22, 2017)
- </div>
- </div>
- </div>
-</div>
-
-
-
-
-
-
-
-
-<nav id="navbar" class="navbar navbar-inverse affix-top" data-spy="affix" data-offset-top="150" 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
- class=""
->
- <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
- class=""
->
- <a href="/about/">About</a>
- </li>
- <li
- class=""
->
- <a href="/talks/">Talks</a>
- </li>
- <li
- class="active"
->
- <a href="/latest/os/introduction">Documentation</a>
- </li>
- <li
- class=""
->
- <a href="/download/">Download</a>
- </li>
- <li
- class=""
->
- <a href="/community/">Community</a>
- </li>
- <li
- class=""
->
- <a href="/events/">Events</a>
- </li>
- </ul>
-
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
- </ul>
- </div>
- </div>
-</nav>
-
-
-
- <div class="container">
-
- <div class="row">
- <div class="col-md-3 v2-sidebar sidebar-container"><div id="docSidebar" class="hidden-print" role="complementary">
- <div class="top">
- <div role="search">
- <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
- <div class="form-group">
- <input type="text" name="q" class="form-control" placeholder="Search documentation" />
- </div>
- </form>
- </div>
- </div>
- <ul class="toc-nav">
- <li class="doc-version">
-<select class="form-control" onchange="if (this.value) window.location.href=this.value">
-
- <option
- value="/develop/os/introduction"
- selected="selected"
- >
- Version: develop (latest)
- </option>
-
- <option
- value="/v0_9_0/os/introduction"
-
- >
- Version: 0.9.0
- </option>
-
-</select>
-</li>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <li ><a href="../../introduction/">Mynewt Documentation</a>
-
-
- <ul>
-
-
-
-
-
-
-
- <li ><a href="../../get_started/get_started/">Basic Setup</a>
-
-
- </li>
-
-
-
-
-
- <li >
- <a href="../../get_started/vocabulary/">Concepts</a>
- </li>
-
-
-
-
-
-
-
- <li ><a href="../tutorials/">Tutorials</a>
-
-
- <ul>
-
-
-
-
-
-
-
- <li><a href="
- ../arduino_zero/
-">Project Blinky</a>
-
-
- </li>
-
-
-
-
-
-
-
- <li ><a href="../repo/add_repos/">Work with repositories</a>
-
-
- </li>
-
-
-
-
-
- <li >
- <a href="../tasks_lesson/">Tasks and Priority Management</a>
- </li>
-
-
-
-
-
- <li >
- <a href="../wi-fi_on_arduino/">Enable Wi-Fi on Arduino MKR1000</a>
- </li>
-
-
-
-
-
- <li >
- <a href="../unit_test/">Write a Test Suite for a Package</a>
- </li>
-
-
-
-
-
- <li >
- <a href="../event_queue/">Events and Event Queues</a>
- </li>
-
-
-
-
-
-
-
- <li><a href="
- ../project-slinky/
-">Project Slinky for remote comms</a>
-
-
- <ul>
-
-
-
- <li >
- <a href="../project-slinky/">Slinky on sim device</a>
- </li>
-
-
-
-
-
- <li class="active">
- <a href="./">Slinky on Nordic nRF52 board</a>
- </li>
-
-
-
-
-
- <li >
- <a href="../project-stm32-slinky/">Slinky on STM32 board</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
-
-
-
- <li >
- <a href="../add_newtmgr/">Enable Newt Manager in any app</a>
- </li>
-
-
-
-
-
- <li >
- <a href="../add_shell/">Enable the OS Shell and Console</a>
- </li>
-
-
-
-
-
- <li >
- <a href="../bletiny_project/">BLE app to check stats via console</a>
- </li>
-
-
-
-
-
-
-
- <li ><a href="../bleprph/bleprph-intro/">BLE peripheral project</a>
-
-
- </li>
-
-
-
-
-
- <li >
- <a href="../ibeacon/">BLE iBeacon</a>
- </li>
-
-
-
-
-
- <li >
- <a href="../eddystone/">BLE Eddystone</a>
- </li>
-
-
-
-
-
- <li >
- <a href="../blehci_project/">BLE HCI interface</a>
- </li>
-
-
-
-
-
-
-
- <li><a href="
- ../air_quality_sensor/
-">Air-quality Sensor project</a>
-
-
- </li>
-
-
-
-
-
- <li >
- <a href="../nrf52_adc/">Add an Analog Sensor</a>
- </li>
-
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
-
- <li ><a href="../../os_user_guide/">OS User Guide</a>
-
-
- </li>
-
-
-
-
-
-
-
- <li><a href="
- ../../../network/ble/ble_intro/
-">BLE User Guide</a>
-
-
- </li>
-
-
-
-
-
-
-
- <li ><a href="../../../newt/newt_intro/">Newt Tool Guide</a>
-
-
- </li>
-
-
-
-
-
-
-
- <li ><a href="../../../newtmgr/overview/">Newt Manager Guide</a>
-
-
- </li>
-
-
-
- </ul>
-
- </li>
-
-
-
-
-
-
-
- <li><a href="
- ../../../faq/how_to_edit_docs/
-">Appendix</a>
-
-
- </li>
-
-
-
- </ul>
-</div></div>
-
- <div class="col-md-9" role="main">
- <div class="doc-header">
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs pull-right">
- <li><a href="/develop/os/introduction">Docs</a></li>
-
-
-
- <li>» <a href="../tutorials/">Tutorials</a></li>
-
-
-
- <li>» <a href="../project-slinky/">Project Slinky for remote comms</a></li>
-
-
-
- <li>» Slinky on Nordic nRF52 board</li>
-
-
-
- </ul>
-</div>
- </div>
-
- <h2 id="project-slinky-using-the-nordic-nrf52-board">Project Slinky using the Nordic nRF52 Board</h2>
-<p><br></p>
-<p>The goal of this tutorial is to enable and demonstrate remote communications with a Mynewt application running on a device via newt manager (newtmgr). It uses the "Slinky" sample application that is included in the apache-mynewt-core/apps directory and the Nordic nRF52-DK board.</p>
-<p>If you have an existing project that has a different application and you wish to add newtmgr functionality to it, check out the <a href="../add_newtmgr/">Enable newtmgr in any app</a> tutorial.</p>
-<h3 id="prerequisites">Prerequisites</h3>
-<p>Ensure that you have met the following prerequisites before continuing with this tutorial:</p>
-<ul>
-<li>Have a Nordic nRF52-DK board. </li>
-<li>Have Internet connectivity to fetch remote Mynewt components.</li>
-<li>Have a computer to build a Mynewt application and connect to the board over USB.</li>
-<li>Have a Micro-USB cable to connect the board and the computer.</li>
-<li>Have a <a href="../../get_started/serial_access/">Serial Port Setup</a>. </li>
-<li>Install the newt tool and the toolchains (See <a href="../../get_started/get_started/">Basic Setup</a>).</li>
-<li>Install the <a href="../../../newtmgr/installing/">newtmgr tool</a>. </li>
-<li>Create a project space (directory structure) and populated it with the core code repository (apache-mynewt-core) or know how to as explained in <a href="../../../os/get_started/project_create">Creating Your First Project</a>.</li>
-<li>Read the Mynewt OS <a href="../../get_started/vocabulary/">Concepts</a> section.</li>
-</ul>
-<h3 id="overview-of-steps">Overview of Steps</h3>
-<ul>
-<li>Install dependencies</li>
-<li>Define targets using the newt tool</li>
-<li>Build executables for the targets using the newt tool</li>
-<li>Set up serial connection with the targets</li>
-<li>Create a connection profile using the newtmgr tool</li>
-<li>Use the newtmgr tool to communicate with the targets</li>
-</ul>
-<h3 id="create-a-new-project">Create a New Project</h3>
-<p>Create a new project if you do not have an existing one. You can skip this step and proceed to <a href="#create_targets">create the targets</a> if you already have a project created or completed the <a href="../project-slinky/">Sim Slinky</a> tutorial. </p>
-<p>Run the following commands to create a new project. We name the project <code>slinky</code>. </p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt new slinky
-Downloading project skeleton from apache/incubator-mynewt-blinky...
-...
-Installing skeleton in slink...
-Project slinky successfully created
-$ cd slinky
-$newt install
-apache-mynewt-core
-</pre></div>
-
-
-<p><br></p>
-<h3 id="create-the-targets"><a name="create_targets"></a> Create the Targets</h3>
-<p>Create two targets for the nRF52-DK board - one for the bootloader and one for the Slinky application.</p>
-<p>Run the following <code>newt target</code> commands, from your project directory, to create a bootloader target. We name the target <code>nrf52_boot</code>.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt target create nrf52_boot
-$ newt target set nrf52_boot bsp=@apache-mynewt-core/hw/bsp/nrf52dk
-$ newt target set nrf52_boot build_profile=optimized
-$ newt target set nrf52_boot app=@apache-mynewt-core/apps/boot
-</pre></div>
-
-
-<p><br>
-Run the following <code>newt target</code> commands to create a target for the Slinky application. We name the target <code>nrf52_slinky</code>.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt target create nrf52_slinky
-$ newt target set nrf52_slinky bsp=@apache-mynewt-core/hw/bsp/nrf52dk
-$ newt target set nrf52_slinky build_profile=debug
-$ newt target set nrf52_slinky app=@apache-mynewt-core/apps/slinky
-</pre></div>
-
-
-<p><br></p>
-<h3 id="build-the-targets">Build the Targets</h3>
-<p>Run the <code>newt build nrf52_boot</code> command to build the bootloader:</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt build nrf52-boot
-Building target targets/nrf52_boot
-Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec256.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/image_rsa.c
-Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aes.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/loader.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/image_validate.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/bootutil_misc.c
-Compiling repos/apache-mynewt-core/apps/boot/src/boot.c
- ...
-
-Archiving sys_mfg.a
-Archiving sys_sysinit.a
-Archiving util_mem.a
-Linking ~/dev/slinky/bin/targets/nrf52_boot/app/apps/boot/boot.elf
-Target successfully built: targets/nrf52_boot
-</pre></div>
-
-
-<p><br></p>
-<p>Run the <code>newt build nrf52_slinky</code> command to build the Slinky application:</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$newt build nrf52_slinky
-Building target targets/nrf52_slinky
-Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec256.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/image_ec.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/image_rsa.c
-Compiling repos/apache-mynewt-core/boot/split/src/split.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/loader.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/bootutil_misc.c
-Compiling repos/apache-mynewt-core/boot/split/src/split_config.c
-Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aesni.c
-Compiling repos/apache-mynewt-core/boot/bootutil/src/image_validate.c
-Compiling repos/apache-mynewt-core/crypto/mbedtls/src/aes.c
-Compiling repos/apache-mynewt-core/apps/slinky/src/main.c
-
- ...
-
-Archiving util_mem.a
-Linking ~/dev/slinky/bin/targets/nrf52_slinky/app/apps/slinky/slinky.elf
-Target successfully built: targets/nrf52_slinky
-</pre></div>
-
-
-<p><br></p>
-<h3 id="sign-and-create-the-slinky-application-image">Sign and Create the Slinky Application Image</h3>
-<p>Run the <code>newt create-image nrf52_slinky 1.0.0</code> command to create and sign the application image. You may assign an arbitrary version (e.g. 1.0.0) to the image.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt create-image nrf52_slinky 1.0.0
-App image succesfully generated: ~/dev/slinky/bin/targets/nrf52_slinky/app/apps/slinky/slinky.img
-$
-</pre></div>
-
-
-<p><br></p>
-<h3 id="connect-to-the-board">Connect to the Board</h3>
-<ul>
-<li>Connect a micro-USB cable from your computer to the micro-USB port on the nRF52-DK board.</li>
-<li>Turn the power on the board to ON. You should see the green LED light up on the board.</li>
-</ul>
-<p><br></p>
-<h3 id="load-the-bootloader-and-the-slinky-application-image">Load the Bootloader and the Slinky Application Image</h3>
-<p>Run the <code>newt load nrf52_boot</code> command to load the bootloader onto the board:</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt load nrf52_boot
-Loading bootloader
-$
-</pre></div>
-
-
-<p><br>
-Run the <code>newt load nrf52_slinky</code> command to load the Slinky application image onto the board:</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newt load nrf52_slinky
-Loading app image into slot 1
-$
-</pre></div>
-
-
-<p><br></p>
-<h3 id="connect-newtmgr-with-the-board-using-a-serial-connection">Connect Newtmgr with the Board using a Serial Connection</h3>
-<p>Set up a serial connection from your computer to the nRF52-DK board (See <a href="../../get_started/serial_access/">Serial Port Setup</a>). </p>
-<p>Locate the port, in the /dev directory on your computer, that the serial connection uses. It should be of the type <code>tty.usbserial-<some identifier></code>.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ ls /dev/tty*usbserial*
-/dev/tty.usbserial-1d11
-$
-</pre></div>
-
-
-<p><br>
-Setup a newtmgr connection profile for the serial port. For our example, the port is <code>/dev/tty.usbserial-1d11</code>. </p>
-<p>Run the <code>newtmgr conn add</code> command to define a newtmgr connection profile for the serial port. We name the connection profile <code>nrf52serial</code>. You will need to replace the <code>connstring</code> with the specific port for your serial connection. </p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr conn add nrf52serial type=serial connstring=/dev/tty.usbserial-1d11
-Connection profile nrf52serial successfully added
-$
-</pre></div>
-
-
-<p><br>
-You can run the <code>newt conn show</code> command to see all the newtmgr connection profiles:</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr conn show
-Connection profiles:
- nrf52serial: type=serial, connstring='/dev/tty.usbserial-1d11'
- sim1: type=serial, connstring='/dev/ttys012'
-$
-</pre></div>
-
-
-<p><br></p>
-<h3 id="use-newtmgr-to-query-the-board">Use Newtmgr to Query the Board</h3>
-<p>Run some newtmgr commands to query and receive responses back from the board (See the <a href="../newtmgr/overview">Newt Manager Guide</a> for more information on the newtmgr commands). </p>
-<p>Run the <code>newtmgr echo hello -c nrf52serial</code> command. This is the simplest command that requests the board to echo back the text. </p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr echo hello -c nrf52serial
-hello
-$
-</pre></div>
-
-
-<p><br>
-Run the <code>newtmgr image list -c nrf52serial</code> command to list the images on the board:</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr image list -c nrf52serial
-Images:
- slot=0
- version: 1.0.0
- bootable: true
- flags: active confirmed
- hash: f411a55d7a5f54eb8880d380bf47521d8c41ed77fd0a7bd5373b0ae87ddabd42
-Split status: N/A
-$
-</pre></div>
-
-
-<p><br>
-Run the <code>newtmgr taskstats -c nrf52serial</code> command to display the task statistics on the board:</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">$ newtmgr taskstats -c nrf52serial
-Return Code = 0
- task pri tid runtime csw stksz stkuse last_checkin next_checkin
- task1 8 2 0 1751 192 110 0 0
- task2 9 3 0 1751 64 31 0 0
- idle 255 0 224081 2068 64 32 0 0
- main 127 1 3 29 1024 365 0 0
-$
-</pre></div>
-
- <div class="row">
-
-
-
-
-<ul class="nav nav-pills" style="margin-bottom: 10px">
- <li>
-
- <a href=../project-slinky/>
- <span class="fa fa-arrow-left"></span>
- Previous: Slinky on sim device
- </a>
-
- </li>
- <li class="pull-right">
-
- <a href=../project-stm32-slinky/>
- Next: Slinky on STM32 board
- <span class="fa fa-arrow-right"></span>
- </a>
-
- </li>
-</ul>
- </div>
- <footer class="row">
- <div class="col-xs-12">
-
- <p class="copyright">Apache Mynewt (incubating) is available under Apache License, version 2.0.</p>
-
- </div>
- <div class="col-xs-12">
- <div class="logos">
- <img src="/img/asf_logo_wide_small.png" alt="Apache" title="Apache">
- <small class="footnote">
- MyNewt is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
- </small>
- <img src="/img/egg-logo2.png" alt="Apache Incubator" title="Apache Incubator">
- </div>
- </div>
-</footer>
- </div>
- </div>
-
-
- </div>
-
- <script src="../../../js/jquery-1.10.2.min.js"></script>
- <script src="../../../js/bootstrap-3.0.3.min.js"></script>
- <script src="../../../js/highlight.pack.js"></script>
- <script src="../../../js/base.js"></script>
- <script src="../../../js/custom.js"></script>
-
- </body>
-</html>
\ No newline at end of file