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 2016/03/17 02:52:45 UTC

[1/2] incubator-mynewt-site git commit: Updated slinky tutorials for working with newtmanger. closes pull request #54

Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/asf-site 477d85dcd -> 2af796a3e


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2af796a3/newtmgr/project-slinky/index.html
----------------------------------------------------------------------
diff --git a/newtmgr/project-slinky/index.html b/newtmgr/project-slinky/index.html
index 6a5d714..8f0a5a2 100644
--- a/newtmgr/project-slinky/index.html
+++ b/newtmgr/project-slinky/index.html
@@ -9,7 +9,7 @@
         <link rel="canonical" href="http://mynewt.apache.org/newtmgr/project-slinky/">
         <link rel="shortcut icon" href="../../img/favicon.ico">
 
-	<title>Project Slinky - Apache Mynewt</title>
+	<title>Sim Slinky - Apache Mynewt</title>
 
         <link href="../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
         <link href="../../css/font-awesome-4.0.3.css" rel="stylesheet">
@@ -40,7 +40,7 @@
     </head>
 
 
-    <body class="Project Slinky">
+    <body class="Sim Slinky">
 
 
         <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
@@ -226,6 +226,16 @@
               
                 
   
+    <li>
+      <a href="../installing/">Installing</a>
+    </li>
+  
+
+              
+          
+              
+                
+  
   
     <li><a href="
   ./
@@ -238,7 +248,17 @@
                 
   
     <li class="active">
-      Project Slinky
+      Sim Slinky
+    </li>
+  
+
+              
+          
+              
+                
+  
+    <li>
+      <a href="../project-target-slinky/">Target Slinky</a>
     </li>
   
 
@@ -340,7 +360,7 @@
         
       
       
-        <li>&raquo; Project Slinky</li>
+        <li>&raquo; Sim Slinky</li>
       
     
     
@@ -349,251 +369,119 @@
                             </div>
                         </div>
                         
-                            <h2 id="project-slinky">Project Slinky<a class="headerlink" href="#project-slinky" title="Permanent link">&para;</a></h2>
+                            <h2 id="project-sim-slinky">Project Sim Slinky<a class="headerlink" href="#project-sim-slinky" title="Permanent link">&para;</a></h2>
 <h3 id="objective">Objective<a class="headerlink" href="#objective" title="Permanent link">&para;</a></h3>
-<p>The goal of the project is to enable and demonstate remote communications with a device or target via newt manager (newtmgr). We will first build the project image for a simulated device and then build an image for a hardware target. Next, the tool newtmgr has to be installed and a connection established with the target. Finally, various available commands in newtmgr will be used to query the target, upgrade image, and collect data from the endpoint.</p>
+<p>The goal of the project is to enable and demonstrate remote communications with the Mynewt OS via newt manager (newtmgr). We will do this through building a project with Mynewt called Slinky that runs via the native platform. </p>
 <h3 id="what-you-need">What you need<a class="headerlink" href="#what-you-need" title="Permanent link">&para;</a></h3>
-<ol>
-<li>STM32-E407 development board from Olimex. You can order it from <a href="http://www.mouser.com/ProductDetail/Olimex-Ltd/STM32-E407/?qs=UN6GZl1KCcit6Ye0xmPO4A%3D%3D">http://www.mouser.com</a>, <a href="http://www.digikey.com/product-detail/en/STM32-E407/1188-1093-ND/3726951">http://www.digikey.com</a>, and other places.</li>
-<li>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>USB A-B type cable to connect the debugger to your personal computer</li>
-<li>A USB to TTL Serial Cable with female wiring harness. An example is <a href="http://www.amazon.com/JBtek®-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pc&amp;ie=UTF8&amp;qid=1454631303&amp;sr=1-9">http://www.amazon.com/JBtek®-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pc&amp;ie=UTF8&amp;qid=1454631303&amp;sr=1-9</a></li>
-<li>Personal Computer</li>
-</ol>
+<p>1.Personal Computer</p>
 <p>The instructions assume the user is using a Bourne-compatible shell (e.g. bash or zsh) on your computer. The given instructions have been tested with the following releases of operating systems:</p>
 <ul>
 <li>Mac: OS X Yosemite Version 10.10.5</li>
 </ul>
 <h3 id="overview-of-steps">Overview of steps<a class="headerlink" href="#overview-of-steps" title="Permanent link">&para;</a></h3>
 <ul>
-<li>Define targets using the newt tool</li>
+<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 - both the physical connection with a hardware target and the connection profile using the newtmgr 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>
-<p>The following instructions will walk you through the update of the larva nest and the installation of newtmgr as well.</p>
-<h3 id="creating-local-repository">Creating local repository<a class="headerlink" href="#creating-local-repository" title="Permanent link">&para;</a></h3>
-<p>Make sure Mynewt's default nest <code>larva</code> is up to date by downloading the latest from the Apache mynewt repository (<a href="https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva">https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva</a>).</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ pwd
-        /Users/&lt;user&gt;/dev/larva
-        $ ls -al
-        total 72
-        drwxr-xr-x  18 &lt;user&gt;  staff    612 Feb  3 15:47 .
-        drwxr-xr-x   5 &lt;user&gt;  staff    170 Feb  3 13:32 ..
-        drwxr-xr-x  13 &lt;user&gt;  staff    442 Feb  3 13:32 .git
-        -rw-r--r--   1 &lt;user&gt;  staff     66 Feb  3 13:32 .gitignore
-        -rw-r--r--   1 &lt;user&gt;  staff      0 Feb  3 13:32 .gitmodules
-        drwxr-xr-x   4 &lt;user&gt;  staff    136 Feb  3 16:13 .nest
-        -rw-r--r--   1 &lt;user&gt;  staff  11358 Feb  3 13:32 LICENSE
-        ...
-        ...
-        drwxr-xr-x   5 &lt;user&gt;  staff    170 Feb  3 13:32 sys
-        $ git pull origin master
-</pre></div>
-
-
-<h3 id="installing-newtmgr">Installing Newtmgr<a class="headerlink" href="#installing-newtmgr" title="Permanent link">&para;</a></h3>
-<p>You will first download the source code for newt. Currently, you need to create a symbolic link for all the directory references in the go scripts to work correctly.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ cd ~/dev
-        $ go get git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git/newt
-        $ ln -s ~/dev/go/src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git ~/dev/go/src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt
-
-        $ pwd
-       /Users/&lt;user&gt;/dev/go
-        $ ls
-         bin    pkg    src
-        $ cd src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/newt
-        $ ls
-        newt    newtmgr    newtvm   util
-        $ cd newtmgr
-        $ go build
-        $ 
+<h3 id="installing-newt">Installing newt<a class="headerlink" href="#installing-newt" title="Permanent link">&para;</a></h3>
+<p>If you have not already installed <code>newt</code> see the 
+<a href="../../newt/tutorials/newt_mac/">newt installation instructions</a> and ensure newt is installed an in your path.</p>
+<h3 id="installing-newtmgr">Installing newtmgr<a class="headerlink" href="#installing-newtmgr" title="Permanent link">&para;</a></h3>
+<p>If you have not already installed <code>newtmgr</code> see the 
+<a href="../installing/">newtmgr installation instructions</a> and ensure newtmgr is installed an in your path.</p>
+<h3 id="creating-a-new-project">Creating a new project<a class="headerlink" href="#creating-a-new-project" title="Permanent link">&para;</a></h3>
+<p>Instructions for creating a project are located in the <a href="../../os/get_started/project_create/">Getting Started</a> section of the <a href="../../os/get_started/introduction/">Mynewt OS Manual</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>
 
 
-<p>Note: If the <code>go build</code> command results in errors indicating some package cannot be found, do a <code>go get</code> to download all the third-party files needed from github.com and then run <code>go build</code> again. </p>
-<h3 id="building-targets">Building Targets<a class="headerlink" href="#building-targets" title="Permanent link">&para;</a></h3>
-<p>You will create a total of 4 targets. The first one is a simulation target and the second a hardware target (for STM32-E407 Olimex development board). In order to run an image from the flash on the Olimex board, a bootloader is required. You will build two additional targets (bootloader and bin2img) as explained in Project Blinky under <a href="../../get_started/project1/#using-flash-to-make-led-blink">Using flash to make LED blink</a> and as shown below.</p>
-<p>Here;'s how to create the target for simulation.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ newt target create slinky_sim
-        Creating target slinky_sim
-        Target slinky_sim sucessfully created!
-        $ newt target set slinky_sim arch=sim
-        Target slinky_sim successfully set arch to sim
-        $ newt target set slinky_sim compiler=sim
-        Target slinky_sim successfully set compiler to sim
-        $ newt target set slinky_sim project=slinky
-        Target slinky_sim successfully set project to slinky
-        $ newt target set slinky_sim compiler_def=debug
-        Target slinky_sim successfully set compiler_def to debug
-        $ newt target set slinky_sim bsp=hw/bsp/native
-        Target slinky_sim successfully set bsp to hw/bsp/native
-        $ newt target show slinky_sim
-        slinky_sim
-            arch: sim
-            bsp: hw/bsp/native
-            compiler: sim
-            compiler_def: debug
-            name: slinky_sim
-            project: slinky     
+<h3 id="setting-up-your-target-build">Setting up your target build<a class="headerlink" href="#setting-up-your-target-build" title="Permanent link">&para;</a></h3>
+<p>Create a target for <code>slinky</code> using the native bsp.  See 
+<a href="../../newt/tutorials/define_target/">How to Define a Target</a> for a detailed
+description.  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>
 
 
-<p>Repeat the above steps using the attribute information for each target from the target output shown below to create the remaining three targets. The four target definitions are:</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ newt target show
-        bin2img
-            arch: sim
-            bsp: hw/bsp/native
-            compiler: sim
-            compiler_def: debug
-            name: bin2img
-            project: bin2img
-        boot_olimex
-            arch: cortex_m4
-            bsp: hw/bsp/olimex_stm32-e407_devboard
-            compiler: arm-none-eabi-m4
-            compiler_def: optimized
-            name: boot_olimex
-            project: boot
-        slinky1
-            arch: cortex_m4
-            bsp: hw/bsp/olimex_stm32-e407_devboard
-            compiler: arm-none-eabi-m4
-            compiler_def: debug
-            name: slinky1
-            project: slinky
-        slinky_sim
-            arch: sim
-            bsp: hw/bsp/native
-            compiler: sim
-            compiler_def: debug
-            name: slinky_sim
-            project: slinky
+<h3 id="building-your-target">Building Your target<a class="headerlink" href="#building-your-target" title="Permanent link">&para;</a></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 
+    Compiling main.c
+    ...
+    Linking slinky.elf
+    App successfully built: ~/dev/slinky/bin/sim_slinky/apps/slinky/slinky.elf
 </pre></div>
 
 
-<p>Go ahead and build all the targets. The build command for slinky_sim is shown below.</p>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ newt target build slinky_sim
-        Building target slinky_sim (project = slinky)
-        Compiling base64.c
-        Compiling cbmem.c
-        ...
-        Archiving libnative.a
-        Compiling main.c
-        Building project slinky
-        Linking slinky.elf
-        Successfully run!
+<h3 id="run-the-target">Run the target<a class="headerlink" href="#run-the-target" title="Permanent link">&para;</a></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/sim_slinky/apps/slinky/slinky.elf
+    uart0 at /dev/ttys005
 </pre></div>
 
 
-<p>Now run the <code>newt target build</code> command for the remaining three targets.</p>
-<h3 id="using-newtmgr-with-a-sim-target">Using newtmgr with a sim target<a class="headerlink" href="#using-newtmgr-with-a-sim-target" title="Permanent link">&para;</a></h3>
-<ul>
-<li>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.</li>
-</ul>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ pwd
-        /Users/&lt;user&gt;/dev/larva/project/slinky
-        $ ./bin/slinky_sim/slinky.elf
-        uart0 at /dev/ttys007
+<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<a class="headerlink" href="#setting-up-a-connection-profile" title="Permanent link">&para;</a></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=&#39;/dev/ttys007&#39;
 </pre></div>
 
 
-<ul>
-<li>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.</li>
-</ul>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ newtmgr conn add sim1 type=serial connstring=/dev/ttys007
-        Connection profile sim1 successfully added
-        $ newtmgr conn show
-        Connection profiles: 
-          sim1: type=serial, connstring=&#39;/dev/ttys007&#39;
-        $ newtmgr -c sim1 taskstats
-        Return Code = 0
-          uart_poller (prio=0 tid=3 runtime=0 cswcnt=43810 stksize=1024 stkusage=325 last_checkin=0 next_checkin=0)
-          newtmgr (prio=4 tid=4 runtime=0 cswcnt=6 stksize=1024 stkusage=585 last_checkin=0 next_checkin=0)
-          task1 (prio=1 tid=5 runtime=0 cswcnt=551 stksize=1024 stkusage=83 last_checkin=0 next_checkin=0)
-          task2 (prio=2 tid=6 runtime=0 cswcnt=551 stksize=1024 stkusage=85 last_checkin=0 next_checkin=0)
-          idle (prio=255 tid=0 runtime=552525 cswcnt=44005 stksize=1024 stkusage=529 last_checkin=0 next_checkin=0)
-          os_sanity (prio=254 tid=1 runtime=0 cswcnt=551 stksize=1024 stkusage=82 last_checkin=0 next_checkin=0)
-          shell (prio=3 tid=2 runtime=0 cswcnt=20 stksize=1024 stkusage=142 last_checkin=0 next_checkin=0)
-        $ newtmgr -c sim1 stat stat
-        Return Code = 0
-        Stats Name: stat
-          s0: 1
+<h3 id="executing-newtmgr-commands-with-the-target">Executing newtmgr commands with the target<a class="headerlink" href="#executing-newtmgr-commands-with-the-target" title="Permanent link">&para;</a></h3>
+<p>You can now use connection profile <code>sim1</code> to talk to the running sim_blinky.
+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
+      nffs_cache_inode_pool (blksize=36 nblocks=4 nfree=4)
+      nffs_cache_block_pool (blksize=32 nblocks=64 nfree=64)
+      nffs_dir_pool (blksize=8 nblocks=4 nfree=4)
+      default_mbuf_data (blksize=256 nblocks=10 nfree=8)
+      nffs_file_pool (blksize=12 nblocks=4 nfree=4)
+      nffs_inode_entry_pool (blksize=24 nblocks=100 nfree=98)
+      nffs_block_entry_pool (blksize=12 nblocks=100 nfree=100)
 </pre></div>
 
 
-<h3 id="using-newtmgr-with-a-remote-target">Using newtmgr with a remote target<a class="headerlink" href="#using-newtmgr-with-a-remote-target" title="Permanent link">&para;</a></h3>
-<ul>
-<li>
-<p>First make sure the USB A-B type cable is connected to the ARM-USB-TINY-H debugger connector on the Olimex board. </p>
-<p>Next go the to project directory and download the slinky project image to the flash of the Olimex board. You will see the executables in the <code>slinky1</code> directory created for the Olimex target to run the slinky project.</p>
-</li>
-</ul>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ pwd
-        /Users/&lt;user&gt;/dev/larva/project/slinky
-        $ ls
-        bin     egg.yml     slinky.yml  src
-        $ ls bin
-        slinky1     slinky_sim
-        $ ls bin/slinky1
-        slinky.elf  slinky.elf.bin  slinky.elf.cmd    slinky.elf.img    slinky.elf.lst    slinky.elf.map
-        $ newt target download boot_olimex
-        Downloading with /Users/&lt;user&gt;/dev/larva/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh
-        $ newt target download slinky1
-        Downloading with /Users/&lt;user&gt;/dev/larva/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh
+<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 &quot;Hello Mynewt&quot;
+    {&quot;r&quot;: &quot;Hello Mynewt&quot;}
 </pre></div>
 
 
-<p>You can now disconnect the debugging cable from the board. You should see the green LED blinking. If not, try powercycling the board.</p>
-<ul>
-<li>
-<p>Now you have to set up the serial connection from your computer to the Olimex board. Locate the PC6/USART6_TX (pin#3), PC7/USART6_RX (pin#4), and GND (pin#2) of the UEXT connector on the Olimex board. More information on the UEXT connector can be found at <a href="https://www.olimex.com/Products/Modules/UEXT/">https://www.olimex.com/Products/Modules/UEXT/</a>. The schematic of the board can be found at <a href="https://www.olimex.com/Products/ARM/ST/STM32-E407/resources/STM32-E407_sch.pdf">https://www.olimex.com/Products/ARM/ST/STM32-E407/resources/STM32-E407_sch.pdf</a> for reference.</p>
-<p><img alt="Alt Layout - Serial Connection" src="../pics/serial_conn.png" /></p>
-<ul>
-<li>Connect the female RX pin of the USB-TTL serial cable to the TX of the UEXT connector on the board. </li>
-<li>Connect the female TX pin of the USB-TTL serial cable to the RX of the UEXT connector on the board. </li>
-<li>Connect the GND pin of the USB-TTL serial cable to the GND of the UEXT connector on the board.</li>
-</ul>
-</li>
-<li>
-<p>Locate the serial connection established in the /dev directory of your computer. It should be of the type <code>tty.usbserial-&lt;some identifier&gt;</code>.</p>
-</li>
-</ul>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ ls /dev/tty.usbserial-AJ03HAQQ 
-        /dev/tty.usbserial-AJ03HAQQ
-</pre></div>
-
-
-<ul>
-<li>You now have to define a connection profile using newtmgr. You can give it any name you want. The example below shows the connection profile being named as the very imaginative <code>olimex01</code>.</li>
-</ul>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ pwd
-        /Users/&lt;user&gt;/dev/larva/project/slinky
-        $ newtmgr conn add olimex01 type=serial connstring=/dev/tty.usbserial-AJ03HAQQ 
-        Connection profile olimex01 successfully added
-        $ newtmgr conn show
-        Connection profiles: 
-          sim1: type=serial, connstring=&#39;/dev/ttys007&#39;
-          olimex01: type=serial, connstring=&#39;/dev/tty.usbserial-AJ03HAQQ&#39;
-</pre></div>
-
-
-<ul>
-<li>Now go ahead and query the Olimex board to get responses back. The simplest command is the <code>echo</code> command to ask it to respond with the text you send it. </li>
-</ul>
-<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ newtmgr echo -c olimex01 hello
-        {&quot;r&quot;: &quot;hello&quot;}
-        $ newtmgr image -c olimex01 list
-        Images:
-            0 : 11.22.33.44
-        $ newtmgr -c olimex01 taskstats
-        Return Code = 0
-          shell (prio=3 tid=1 runtime=0 cswcnt=5 stksize=1024 stkusage=60 last_checkin=0 next_checkin=0)
-          newtmgr (prio=4 tid=2 runtime=0 cswcnt=4 stksize=1024 stkusage=256 last_checkin=0 next_checkin=0)
-          task1 (prio=1 tid=3 runtime=0 cswcnt=23 stksize=1024 stkusage=32 last_checkin=0 next_checkin=0)
-          task2 (prio=2 tid=4 runtime=0 cswcnt=24 stksize=1024 stkusage=33 last_checkin=0 next_checkin=0)
-          idle (prio=255 tid=0 runtime=23121 cswcnt=26 stksize=32 stkusage=16 last_checkin=0 next_checkin=0)
-</pre></div>
+<p>The response comes back as a json string.</p>
+<p>In addition to these, you can also examine running tasks, statistics, 
+logs, image status (not on sim), and configuration.</p>
                         
                         <div class="row">
                             <footer>

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2af796a3/newtmgr/project-target-slinky/index.html
----------------------------------------------------------------------
diff --git a/newtmgr/project-target-slinky/index.html b/newtmgr/project-target-slinky/index.html
new file mode 100644
index 0000000..5e19516
--- /dev/null
+++ b/newtmgr/project-target-slinky/index.html
@@ -0,0 +1,576 @@
+<!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">
+        
+        
+        <link rel="canonical" href="http://mynewt.apache.org/newtmgr/project-target-slinky/">
+        <link rel="shortcut icon" href="../../img/favicon.ico">
+
+	<title>Target Slinky - Apache Mynewt</title>
+
+        <link href="../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+        <link href="../../css/font-awesome-4.0.3.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='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
+        <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', 'mynewt.incubator.apache.org');
+                ga('send', 'pageview');
+            </script>
+        
+    </head>
+
+
+    <body class="Target Slinky">
+
+
+        <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
+    <div class="logo-container">
+        <img src="/img/logo.svg">
+    </div>
+    <div class="container-fluid">
+        <!-- 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="/">Home</a>
+                </li>
+                <li>
+                    <a href="/about/">About</a>
+                </li>
+                <li class="dropdown">
+                    <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
+                    <ul class="dropdown-menu">
+                        
+                        
+                        
+                        
+                        
+                        
+                        <li >
+                            <a href="../../documentation/">
+                                Overview
+                            </a>
+                        </li>
+                        
+                        
+                        
+                        
+                        
+                        
+                        
+                        
+                        
+                        <li >
+                            <a href="../../os/get_started/introduction/">
+                                Mynewt OS Manual
+                            </a>
+                        </li>
+                        
+                        
+                        
+                        <li >
+                            <a href="../../newt/newt_intro/">
+                                Newt Tool Manual
+                            </a>
+                        </li>
+                        
+                        
+                        
+                        <li class="active">
+                            <a href="../overview/">
+                                Newt Manager Manual
+                            </a>
+                        </li>
+                        
+                        
+                        
+                        <li >
+                            <a href="../../faq/answers/">
+                                Appendix
+                            </a>
+                        </li>
+                        
+                        
+                    </ul>
+                </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>
+</div>
+
+        
+
+        <div class="container-fluid">
+            
+                <div class="row sm-extra-padding">
+                    <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+    <div class="sidebar-top">
+        <img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
+        <div class="small" role="search">
+            <form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
+                <div class="form-group">
+                    <input type="text" name="q" placeholder="Search documentation" />
+                    <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+                </div>
+            </form>
+        </div>
+    </div>
+    <ul class="nav bs-sidenav">
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../../os/get_started/introduction/
+">Mynewt OS Manual</a>
+  
+    
+  </li>
+
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../../newt/newt_intro/
+">Newt Tool Manual</a>
+  
+    
+  </li>
+
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../overview/
+">Newt Manager Manual</a>
+  
+    
+      <ul class="current-toc">
+          
+              
+                
+  
+    <li>
+      <a href="../overview/">Introduction</a>
+    </li>
+  
+
+              
+          
+              
+                
+  
+    <li>
+      <a href="../installing/">Installing</a>
+    </li>
+  
+
+              
+          
+              
+                
+  
+  
+    <li><a href="
+  ../project-slinky/
+">Tutorials</a>
+  
+    
+      <ul class="current-toc">
+          
+              
+                
+  
+    <li>
+      <a href="../project-slinky/">Sim Slinky</a>
+    </li>
+  
+
+              
+          
+              
+                
+  
+    <li class="active">
+      Target Slinky
+    </li>
+  
+
+              
+          
+      </ul>
+    
+  </li>
+
+              
+          
+              
+                
+  
+  
+    <li><a href="
+  ../protocol/
+">Manual</a>
+  
+    
+  </li>
+
+              
+          
+      </ul>
+    
+  </li>
+
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../../faq/answers/
+">Appendix</a>
+  
+    
+  </li>
+
+        
+      
+    </ul>
+</div></div>
+
+                    <div class="show-sidebar-container">
+                        <button class="show-sidebar">Docs Menu</button>
+                    </div>
+
+                    <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+                        <div class="row doc-header">
+                            <div class="col-sm-6">
+                                
+<ul class="nav nav-pills">
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    <li  role="presentation"><a href="../../os/get_started/introduction/">Mynewt OS</a></li>
+    
+    
+    
+    <li  role="presentation"><a href="../../newt/newt_intro/">Newt Tool</a></li>
+    
+    
+    
+    <li class="active" role="presentation"><a href="../overview/">Newt Mgr</a></li>
+    
+    
+    
+    
+</ul>
+                            </div>
+                            <div class="col-sm-6">
+                                <div role="navigation" aria-label="breadcrumbs navigation">
+  <ul class="wy-breadcrumbs">
+    <li><a href="/documentation/">Docs</a></li>
+    
+    
+        
+          <li>&raquo; <a href="../overview/">Newt Manager Manual</a></li>
+        
+      
+        
+          <li>&raquo; <a href="../project-slinky/">Tutorials</a></li>
+        
+      
+      
+        <li>&raquo; Target Slinky</li>
+      
+    
+    
+  </ul>
+</div>
+                            </div>
+                        </div>
+                        
+                            <h2 id="project-slinky">Project Slinky<a class="headerlink" href="#project-slinky" title="Permanent link">&para;</a></h2>
+<h3 id="objective">Objective<a class="headerlink" href="#objective" title="Permanent link">&para;</a></h3>
+<p>The goal of the project is to enable and demonstrate remote communications with the Mynewt OS via newt manager (newtmgr). We will do this through a project with Mynewt called Slinky that runs on the STM32-E407 board.</p>
+<h3 id="what-you-need">What you need<a class="headerlink" href="#what-you-need" title="Permanent link">&para;</a></h3>
+<ol>
+<li>STM32-E407 development board from Olimex. You can order it from <a href="http://www.mouser.com/ProductDetail/Olimex-Ltd/STM32-E407/?qs=UN6GZl1KCcit6Ye0xmPO4A%3D%3D">http://www.mouser.com</a>, <a href="http://www.digikey.com/product-detail/en/STM32-E407/1188-1093-ND/3726951">http://www.digikey.com</a>, and other places.</li>
+<li>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>USB A-B type cable to connect the debugger to your personal computer</li>
+<li>A USB to TTL Serial Cable with female wiring harness. An example is <a href="http://www.amazon.com/JBtek®-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pc&amp;ie=UTF8&amp;qid=1454631303&amp;sr=1-9">http://www.amazon.com/JBtek®-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pc&amp;ie=UTF8&amp;qid=1454631303&amp;sr=1-9</a></li>
+<li>Personal Computer</li>
+</ol>
+<p>The instructions assume the user is using a Bourne-compatible shell (e.g. bash or zsh) on your computer. The given instructions have been tested with the following releases of operating systems:</p>
+<ul>
+<li>Mac: OS X Yosemite Version 10.10.5</li>
+</ul>
+<h3 id="overview-of-steps">Overview of steps<a class="headerlink" href="#overview-of-steps" title="Permanent link">&para;</a></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="install-newt">Install newt<a class="headerlink" href="#install-newt" title="Permanent link">&para;</a></h3>
+<p>If you have not already installed <code>newt</code>, see the 
+<a href="../../newt/tutorials/newt_mac/">newt installation instructions</a> and ensure newt is installed an in your path.</p>
+<h3 id="install-newtmgr">Install newtmgr<a class="headerlink" href="#install-newtmgr" title="Permanent link">&para;</a></h3>
+<p>If you have not already installed <code>newtmgr</code>, see the 
+<a href="../installing/">newtmgr installation instructions</a> and ensure newtmgr is installed an in your path.</p>
+<h3 id="create-a-new-project">Create a new project<a class="headerlink" href="#create-a-new-project" title="Permanent link">&para;</a></h3>
+<p>Instructions for creating a project are located in the <a href="../../os/get_started/project_create/">Getting Started</a> section of the <a href="../../os/get_started/introduction/">Mynewt OS Manual</a>.</p>
+<p>If you already completed <a href="../project-slinky/">sim slinky</a> you can skip this step.</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%"><span style="color: #000000">$ </span>newt new slinky
+Downloading project skeleton from apache/incubator-mynewt-blinky...
+...
+Installing skeleton in slink...
+Project slink successfully created
+<span style="color: #000000">$ </span><span style="color: #A90D91">cd </span>slinky
+<span style="color: #000000">$newt</span> install -v
+Downloading repository description <span style="color: #A90D91">for</span> apache-mynewt-core... success!
+...
+Repos successfully installed
+</pre></div>
+
+
+<p><br></p>
+<h3 id="set-up-your-target-builds">Set up your target builds<a class="headerlink" href="#set-up-your-target-builds" title="Permanent link">&para;</a></h3>
+<p>Create a target for <code>stm32_slinky</code> using the native bsp.  See 
+<a href="../../newt/tutorials/define_target/">How to Define a Target</a> for a detailed
+description.  The tool output is suppressed below for brevity.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">$ </span>newt target create stm32_slinky
+<span style="color: #000000">$ </span>newt target <span style="color: #A90D91">set </span>stm32_slinky <span style="color: #000000">bsp=</span>@apache-mynewt-core/hw/bsp/olimex_stm32-e407_devboard
+<span style="color: #000000">$ </span>newt target <span style="color: #A90D91">set </span>stm32_slinky <span style="color: #000000">build_profile=</span>debug
+<span style="color: #000000">$ </span>newt target <span style="color: #A90D91">set </span>stm32_slinky <span style="color: #000000">app=</span>@apache-mynewt-core/apps/slinky
+</pre></div>
+
+
+<p>Create a second target for <code>stm32_bootloader</code> to build a bootloader to boot
+the <code>stm32_slinky</code> image.  The tool output is suppressed below for brevity.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">$ </span>newt target create stm32_bootloader
+<span style="color: #000000">$ </span>newt target <span style="color: #A90D91">set </span>stm32_bootloader <span style="color: #000000">bsp=</span>@apache-mynewt-core/hw/bsp/olimex_stm32-e407_devboard
+<span style="color: #000000">$ </span>newt target <span style="color: #A90D91">set </span>stm32_bootloader <span style="color: #000000">build_profile=</span>optimized
+<span style="color: #000000">$ </span>newt target <span style="color: #A90D91">set </span>stm32_bootloader target.app<span style="color: #000000">=</span>@apache-mynewt-core/apps/boot
+</pre></div>
+
+
+<p><br></p>
+<h3 id="build-targets">Build Targets<a class="headerlink" href="#build-targets" title="Permanent link">&para;</a></h3>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">$ </span>newt build stm32_slinky
+Compiling main.c
+...
+Linking slinky.elf
+App successfully built: ~/dev/slinky/bin/stm32_slinky/apps/slinky/slinky.elf
+</pre></div>
+
+
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">newt build stm32_bootloader
+Compiling crc16.c
+...
+Linking boot.elf
+App successfully built: ~/slinky/bin/stm32_bootloader/apps/boot/boot.elf
+</pre></div>
+
+
+<p>For the main image, you need to create an image using newt create-image.
+Give this image some arbitrary version number "1.2.3".</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">$ </span>newt create-image stm32_slinky 1.2.3
+App image succesfully generated: /Users/paulfdietrich/dev/slinky/bin/stm32_slinky/apps/slinky/slinky.img
+Build manifest: /Users/paulfdietrich/dev/slinky/bin/stm32_slinky/apps/slinky/manifest.json
+</pre></div>
+
+
+<p><br></p>
+<h3 id="using-newtmgr-with-a-remote-target">Using newtmgr with a remote target<a class="headerlink" href="#using-newtmgr-with-a-remote-target" title="Permanent link">&para;</a></h3>
+<ul>
+<li>
+<p>First make sure the USB A-B type cable is connected to the ARM-USB-TINY-H debugger connector on the Olimex board. </p>
+<p>Next go the to project directory and download the slinky project image to the flash of the Olimex board. </p>
+</li>
+</ul>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">$ </span>newt load stm32_bootloader
+<span style="color: #000000">$ </span>newt load stm32_slinky
+</pre></div>
+
+
+<p>You can now disconnect the debugging cable from the board. You should see the green LED blinking. If not, try powercycling the board.</p>
+<p><br></p>
+<ul>
+<li>
+<p>Now you have to set up the serial connection from your computer to the Olimex board. Locate the PC6/USART6_TX (pin#3), PC7/USART6_RX (pin#4), and GND (pin#2) of the UEXT connector on the Olimex board. More information on the UEXT connector can be found at <a href="https://www.olimex.com/Products/Modules/UEXT/">https://www.olimex.com/Products/Modules/UEXT/</a>. The schematic of the board can be found at <a href="https://www.olimex.com/Products/ARM/ST/STM32-E407/resources/STM32-E407_sch.pdf">https://www.olimex.com/Products/ARM/ST/STM32-E407/resources/STM32-E407_sch.pdf</a> for reference.</p>
+<p><img alt="Alt Layout - Serial Connection" src="../pics/serial_conn.png" /></p>
+<ul>
+<li>Connect the female RX pin of the USB-TTL serial cable to the TX of the UEXT connector on the board. </li>
+<li>Connect the female TX pin of the USB-TTL serial cable to the RX of the UEXT connector on the board. </li>
+<li>Connect the GND pin of the USB-TTL serial cable to the GND of the UEXT connector on the board.</li>
+</ul>
+</li>
+</ul>
+<p><br></p>
+<ul>
+<li>Locate the serial connection established in the /dev directory of your computer. It should be of the type <code>tty.usbserial-&lt;some identifier&gt;</code>.</li>
+</ul>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ ls /dev/tty.usbserial-AJ03HAQQ 
+        /dev/tty.usbserial-AJ03HAQQ
+</pre></div>
+
+
+<p><br></p>
+<ul>
+<li>You now have to define a connection profile using newtmgr. You can give it any name you want. The example below shows the connection profile being named as the very imaginative <code>olimex01</code>.</li>
+</ul>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">        $ pwd
+        /Users/&lt;user&gt;/dev/larva/project/slinky
+        $ newtmgr conn add olimex01 type=serial connstring=/dev/tty.usbserial-AJ03HAQQ 
+        Connection profile olimex01 successfully added
+        $ newtmgr conn show
+        Connection profiles: 
+          sim1: type=serial, connstring=&#39;/dev/ttys007&#39;
+          olimex01: type=serial, connstring=&#39;/dev/tty.usbserial-AJ03HAQQ&#39;
+</pre></div>
+
+
+<p><br></p>
+<ul>
+<li>Now go ahead and query the Olimex board to get responses back. The simplest command is the <code>echo</code> command to ask it to respond with the text you send it. </li>
+</ul>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">    $ newtmgr echo -c olimex01 hello
+    {&quot;r&quot;: &quot;hello&quot;}
+    $ newtmgr image -c olimex01 list
+    Images:
+        0 : 1.2.3
+    $ newtmgr -c olimex01 taskstats
+    Return Code = 0
+      newtmgr (prio=4 tid=2 runtime=0 cswcnt=12 stksize=512 stkusage=255 last_checkin=0 next_checkin=0)
+      task1 (prio=1 tid=3 runtime=0 cswcnt=299 stksize=128 stkusage=33 last_checkin=0 next_checkin=0)
+      task2 (prio=2 tid=4 runtime=0 cswcnt=300 stksize=128 stkusage=31 last_checkin=0 next_checkin=0)
+      idle (prio=255 tid=0 runtime=299916 cswcnt=313 stksize=32 stkusage=18 last_checkin=0 next_checkin=0)
+      shell (prio=3 tid=1 runtime=1 cswcnt=20 stksize=384 stkusage=60 last_checkin=0 next_checkin=0)
+</pre></div>
+                        
+                        <div class="row">
+                            <footer>
+    <div class="row">
+        <div class="col-md-12">
+            
+                <p class="copyright">Copyright &copy; 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+            
+        </div>
+    </div>
+    <div class="copyright-logos">
+        <div class="row">
+            <div class="col-xs-6 text-right">
+                <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+            </div>
+            <div class="col-xs-6 text-left">
+                <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+            </div>
+        </div>
+    </div>
+    <div class="row">
+        <div class="col-md-12">
+            <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>
+        </div>
+    </div>
+</footer>
+                        </div>
+                    </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/2af796a3/newtmgr/protocol/index.html
----------------------------------------------------------------------
diff --git a/newtmgr/protocol/index.html b/newtmgr/protocol/index.html
index 2b35e89..76be234 100644
--- a/newtmgr/protocol/index.html
+++ b/newtmgr/protocol/index.html
@@ -226,6 +226,16 @@
               
                 
   
+    <li>
+      <a href="../installing/">Installing</a>
+    </li>
+  
+
+              
+          
+              
+                
+  
   
     <li><a href="
   ../project-slinky/

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2af796a3/sitemap.xml
----------------------------------------------------------------------
diff --git a/sitemap.xml b/sitemap.xml
index bd308a7..188da23 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -120,6 +120,12 @@
     </url>
         
     <url>
+     <loc>http://mynewt.apache.org/newtmgr/installing/</loc>
+     <lastmod>2016-03-16</lastmod>
+     <changefreq>daily</changefreq>
+    </url>
+        
+    <url>
      <loc>http://mynewt.apache.org</loc>
      <lastmod></lastmod>
      <changefreq>daily</changefreq>



[2/2] incubator-mynewt-site git commit: Updated slinky tutorials for working with newtmanger. closes pull request #54

Posted by ad...@apache.org.
Updated slinky tutorials for working with newtmanger. closes pull request #54


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/2af796a3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/2af796a3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/2af796a3

Branch: refs/heads/asf-site
Commit: 2af796a3ecb4dd37d230fbdc363f11fc5ec1cfbb
Parents: 477d85d
Author: aditihilbert <ad...@runtime.io>
Authored: Wed Mar 16 18:52:37 2016 -0700
Committer: aditihilbert <ad...@runtime.io>
Committed: Wed Mar 16 18:52:37 2016 -0700

----------------------------------------------------------------------
 documentation/index.html                 |   7 +
 mkdocs/search_index.json                 | 140 ++++++-
 newtmgr/installing/index.html            | 444 ++++++++++++++++++++
 newtmgr/overview/index.html              |  10 +
 newtmgr/project-slinky/index.html        | 322 +++++---------
 newtmgr/project-target-slinky/index.html | 576 ++++++++++++++++++++++++++
 newtmgr/protocol/index.html              |  10 +
 sitemap.xml                              |   6 +
 8 files changed, 1278 insertions(+), 237 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2af796a3/documentation/index.html
----------------------------------------------------------------------
diff --git a/documentation/index.html b/documentation/index.html
index 86df5e3..060324b 100644
--- a/documentation/index.html
+++ b/documentation/index.html
@@ -330,6 +330,13 @@
                                 
                                 <li class="">
                                     <a href="
+  ../newtmgr/installing/
+">Installing</a>
+                                </li>
+                            
+                                
+                                <li class="">
+                                    <a href="
   
   
   ../newtmgr/project-slinky/

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2af796a3/mkdocs/search_index.json
----------------------------------------------------------------------
diff --git a/mkdocs/search_index.json b/mkdocs/search_index.json
index 4843986..8388b83 100644
--- a/mkdocs/search_index.json
+++ b/mkdocs/search_index.json
@@ -5791,53 +5791,153 @@
             "title": "Usage:"
         }, 
         {
+            "location": "/newtmgr/installing/", 
+            "text": "Installing Newtmgr\n\n\nThis page shows you how to install newtmgr from source code.\n\n\nInstall Go (golang)\n\n\nIf you have not already done so, install Go for your platform.  \n\n\nThe easiest way on a MAC is to use \nbrew\n.  \n\n\nbrew install go\n==\n Downloading https://homebrew.bintray.com/bottles/go-1.5.3.mavericks.bottle.t\n...\n==\n Summary\n\ud83c\udf7a  /usr/local/Cellar/go/1.5.3: 5,336 files, 259.6M\n\n\n\n\n\n\n\nAlternatively, you can download binaries from \n\nthe golang.org site\n\nTo test your Go implementation, you can query Go for its version information\n\n\n$ \ngo version\ngo version go1.5.3 darwin/amd64\n\n\n\n\n\n\n\nTo use go, you must set a \n$GOPATH\n variable in your environment.  This tells\ngo where to put all the packages it downloads, builds and runs.\n\n\n$ \nmkdir \n$HOME\n/dev\n\n$ \nexport \nGOPATH=$HOME\n/dev/Go\n\n\n\n\n\n\n\nIts best to add this to your \n.profile\n so its set automatically for your \nenvironment. \n\n\n\
 n\nDownload the newtmgr source\n\n\nYou will first download the source code for newt.\n\n\n    go get mynewt.apache.org/newt/...\n        (wait a few minutes please, this sits without any indications of working)\n\n\n\n\n\n\n\nBuilding newtmgr\n\n\nChange into the directory where the newmgr tool was downloaded and \ninstall the newtmgr tool\n\n\n    cd $\nGOPATH\n/src/mynewt.apache.org/newt/newtmgr\n    go install\n    $ ls $\nGOPATH\n/bin\n    ... newtmgr ...\n\n\n\n\n\n\n\nNote:\n If the \ngo install\n command results in errors indicating some package \ncannot be found, do a \ngo get\n to download all the third-party files needed \nfrom github.com and then run \ngo install\n again. \n\n\nAdd to your Path\n\n\nAdd your \n$GOPATH/bin\n directory to your path.", 
+            "title": "Installing"
+        }, 
+        {
+            "location": "/newtmgr/installing/#installing-newtmgr", 
+            "text": "This page shows you how to install newtmgr from source code.", 
+            "title": "Installing Newtmgr"
+        }, 
+        {
+            "location": "/newtmgr/installing/#install-go-golang", 
+            "text": "If you have not already done so, install Go for your platform.    The easiest way on a MAC is to use  brew .    brew install go\n==  Downloading https://homebrew.bintray.com/bottles/go-1.5.3.mavericks.bottle.t\n...\n==  Summary\n\ud83c\udf7a  /usr/local/Cellar/go/1.5.3: 5,336 files, 259.6M   Alternatively, you can download binaries from  the golang.org site \nTo test your Go implementation, you can query Go for its version information  $  go version\ngo version go1.5.3 darwin/amd64   To use go, you must set a  $GOPATH  variable in your environment.  This tells\ngo where to put all the packages it downloads, builds and runs.  $  mkdir  $HOME /dev $  export  GOPATH=$HOME /dev/Go   Its best to add this to your  .profile  so its set automatically for your \nenvironment.", 
+            "title": "Install Go (golang)"
+        }, 
+        {
+            "location": "/newtmgr/installing/#download-the-newtmgr-source", 
+            "text": "You will first download the source code for newt.      go get mynewt.apache.org/newt/...\n        (wait a few minutes please, this sits without any indications of working)", 
+            "title": "Download the newtmgr source"
+        }, 
+        {
+            "location": "/newtmgr/installing/#building-newtmgr", 
+            "text": "Change into the directory where the newmgr tool was downloaded and \ninstall the newtmgr tool      cd $ GOPATH /src/mynewt.apache.org/newt/newtmgr\n    go install\n    $ ls $ GOPATH /bin\n    ... newtmgr ...   Note:  If the  go install  command results in errors indicating some package \ncannot be found, do a  go get  to download all the third-party files needed \nfrom github.com and then run  go install  again.", 
+            "title": "Building newtmgr"
+        }, 
+        {
+            "location": "/newtmgr/installing/#add-to-your-path", 
+            "text": "Add your  $GOPATH/bin  directory to your path.", 
+            "title": "Add to your Path"
+        }, 
+        {
             "location": "/newtmgr/project-slinky/", 
-            "text": "Project Slinky\n\n\nObjective\n\n\nThe goal of the project is to enable and demonstate remote communications with a device or target via newt manager (newtmgr). We will first build the project image for a simulated device and then build an image for a hardware target. Next, the tool newtmgr has to be installed and a connection established with the target. Finally, various available commands in newtmgr will be used to query the target, upgrade image, and collect data from the endpoint.\n\n\nWhat you need\n\n\n\n\nSTM32-E407 development board from Olimex. You can order it from \nhttp://www.mouser.com\n, \nhttp://www.digikey.com\n, and other places.\n\n\nARM-USB-TINY-H connector with JTAG interface for debugging ARM microcontrollers (comes with the ribbon cable to hook up to the board)\n\n\nUSB A-B type cable to connect the debugger to your personal computer\n\n\nA USB to TTL Serial Cable with female wiring harness. An example is \nhttp://www.amazon.com/JBtek\u00ae
 -WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pc\nie=UTF8\nqid=1454631303\nsr=1-9\n\n\nPersonal Computer\n\n\n\n\nThe instructions assume the user is using a Bourne-compatible shell (e.g. bash or zsh) on your computer. The given instructions have been tested with the following releases of operating systems:\n\n\n\n\nMac: OS X Yosemite Version 10.10.5\n\n\n\n\nOverview of steps\n\n\n\n\nDefine targets using the newt tool\n\n\nBuild executables for the targets using the newt tool\n\n\nSet up serial connection with the targets - both the physical connection with a hardware target and the connection profile using the newtmgr tool\n\n\nUse the newtmgr tool to communicate with the targets\n\n\n\n\nThe following instructions will walk you through the update of the larva nest and the installation of newtmgr as well.\n\n\nCreating local repository\n\n\nMake sure Mynewt's default nest \nlarva\n is up to date by downloading the latest from the Apache mynewt reposit
 ory (\nhttps://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva\n).\n\n\n        $ pwd\n        /Users/\nuser\n/dev/larva\n        $ ls -al\n        total 72\n        drwxr-xr-x  18 \nuser\n  staff    612 Feb  3 15:47 .\n        drwxr-xr-x   5 \nuser\n  staff    170 Feb  3 13:32 ..\n        drwxr-xr-x  13 \nuser\n  staff    442 Feb  3 13:32 .git\n        -rw-r--r--   1 \nuser\n  staff     66 Feb  3 13:32 .gitignore\n        -rw-r--r--   1 \nuser\n  staff      0 Feb  3 13:32 .gitmodules\n        drwxr-xr-x   4 \nuser\n  staff    136 Feb  3 16:13 .nest\n        -rw-r--r--   1 \nuser\n  staff  11358 Feb  3 13:32 LICENSE\n        ...\n        ...\n        drwxr-xr-x   5 \nuser\n  staff    170 Feb  3 13:32 sys\n        $ git pull origin master\n\n\n\n\n\nInstalling Newtmgr\n\n\nYou will first download the source code for newt. Currently, you need to create a symbolic link for all the directory references in the go scripts to work correctly.\n\n\n        $ cd ~/dev\n        $ go get
  git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git/newt\n        $ ln -s ~/dev/go/src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git ~/dev/go/src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt\n\n        $ pwd\n       /Users/\nuser\n/dev/go\n        $ ls\n         bin    pkg    src\n        $ cd src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/newt\n        $ ls\n        newt    newtmgr    newtvm   util\n        $ cd newtmgr\n        $ go build\n        $ \n\n\n\n\n\nNote: If the \ngo build\n command results in errors indicating some package cannot be found, do a \ngo get\n to download all the third-party files needed from github.com and then run \ngo build\n again. \n\n\nBuilding Targets\n\n\nYou will create a total of 4 targets. The first one is a simulation target and the second a hardware target (for STM32-E407 Olimex development board). In order to run an image from the flash on the Olimex board, a bootloader is required. You will build two ad
 ditional targets (bootloader and bin2img) as explained in Project Blinky under \nUsing flash to make LED blink\n and as shown below.\n\n\nHere;'s how to create the target for simulation.\n\n\n        $ newt target create slinky_sim\n        Creating target slinky_sim\n        Target slinky_sim sucessfully created!\n        $ newt target set slinky_sim arch=sim\n        Target slinky_sim successfully set arch to sim\n        $ newt target set slinky_sim compiler=sim\n        Target slinky_sim successfully set compiler to sim\n        $ newt target set slinky_sim project=slinky\n        Target slinky_sim successfully set project to slinky\n        $ newt target set slinky_sim compiler_def=debug\n        Target slinky_sim successfully set compiler_def to debug\n        $ newt target set slinky_sim bsp=hw/bsp/native\n        Target slinky_sim successfully set bsp to hw/bsp/native\n        $ newt target show slinky_sim\n        slinky_sim\n            arch: sim\n            bsp: hw/bsp/n
 ative\n            compiler: sim\n            compiler_def: debug\n            name: slinky_sim\n            project: slinky     \n\n\n\n\n\nRepeat the above steps using the attribute information for each target from the target output shown below to create the remaining three targets. The four target definitions are:\n\n\n        $ newt target show\n        bin2img\n            arch: sim\n            bsp: hw/bsp/native\n            compiler: sim\n            compiler_def: debug\n            name: bin2img\n            project: bin2img\n        boot_olimex\n            arch: cortex_m4\n            bsp: hw/bsp/olimex_stm32-e407_devboard\n            compiler: arm-none-eabi-m4\n            compiler_def: optimized\n            name: boot_olimex\n            project: boot\n        slinky1\n            arch: cortex_m4\n            bsp: hw/bsp/olimex_stm32-e407_devboard\n            compiler: arm-none-eabi-m4\n            compiler_def: debug\n            name: slinky1\n            project: 
 slinky\n        slinky_sim\n            arch: sim\n            bsp: hw/bsp/native\n            compiler: sim\n            compiler_def: debug\n            name: slinky_sim\n            project: slinky\n\n\n\n\n\nGo ahead and build all the targets. The build command for slinky_sim is shown below.\n\n\n        $ newt target build slinky_sim\n        Building target slinky_sim (project = slinky)\n        Compiling base64.c\n        Compiling cbmem.c\n        ...\n        Archiving libnative.a\n        Compiling main.c\n        Building project slinky\n        Linking slinky.elf\n        Successfully run!\n\n\n\n\n\nNow run the \nnewt target build\n command for the remaining three targets.\n\n\nUsing newtmgr with a sim target\n\n\n\n\nRun 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.\n\n\n\n\n        $ pwd\n        /Users/\nuser\n/dev/larva/project/slinky\n        $ ./bin/slinky_sim/sl
 inky.elf\n        uart0 at /dev/ttys007\n\n\n\n\n\n\n\nYou will now set up a connection profile using \nnewtmgr\n for the serial port connection and start communicating with the simulated remote device.\n\n\n\n\n        $ newtmgr conn add sim1 type=serial connstring=/dev/ttys007\n        Connection profile sim1 successfully added\n        $ newtmgr conn show\n        Connection profiles: \n          sim1: type=serial, connstring=\n/dev/ttys007\n\n        $ newtmgr -c sim1 taskstats\n        Return Code = 0\n          uart_poller (prio=0 tid=3 runtime=0 cswcnt=43810 stksize=1024 stkusage=325 last_checkin=0 next_checkin=0)\n          newtmgr (prio=4 tid=4 runtime=0 cswcnt=6 stksize=1024 stkusage=585 last_checkin=0 next_checkin=0)\n          task1 (prio=1 tid=5 runtime=0 cswcnt=551 stksize=1024 stkusage=83 last_checkin=0 next_checkin=0)\n          task2 (prio=2 tid=6 runtime=0 cswcnt=551 stksize=1024 stkusage=85 last_checkin=0 next_checkin=0)\n          idle (prio=255 tid=0 runtime=552
 525 cswcnt=44005 stksize=1024 stkusage=529 last_checkin=0 next_checkin=0)\n          os_sanity (prio=254 tid=1 runtime=0 cswcnt=551 stksize=1024 stkusage=82 last_checkin=0 next_checkin=0)\n          shell (prio=3 tid=2 runtime=0 cswcnt=20 stksize=1024 stkusage=142 last_checkin=0 next_checkin=0)\n        $ newtmgr -c sim1 stat stat\n        Return Code = 0\n        Stats Name: stat\n          s0: 1\n\n\n\n\n\nUsing newtmgr with a remote target\n\n\n\n\n\n\nFirst make sure the USB A-B type cable is connected to the ARM-USB-TINY-H debugger connector on the Olimex board. \n\n\nNext go the to project directory and download the slinky project image to the flash of the Olimex board. You will see the executables in the \nslinky1\n directory created for the Olimex target to run the slinky project.\n\n\n\n\n\n\n        $ pwd\n        /Users/\nuser\n/dev/larva/project/slinky\n        $ ls\n        bin     egg.yml     slinky.yml  src\n        $ ls bin\n        slinky1     slinky_sim\n        $ 
 ls bin/slinky1\n        slinky.elf  slinky.elf.bin  slinky.elf.cmd    slinky.elf.img    slinky.elf.lst    slinky.elf.map\n        $ newt target download boot_olimex\n        Downloading with /Users/\nuser\n/dev/larva/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh\n        $ newt target download slinky1\n        Downloading with /Users/\nuser\n/dev/larva/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh\n\n\n\n\n\nYou can now disconnect the debugging cable from the board. You should see the green LED blinking. If not, try powercycling the board.\n\n\n\n\n\n\nNow you have to set up the serial connection from your computer to the Olimex board. Locate the PC6/USART6_TX (pin#3), PC7/USART6_RX (pin#4), and GND (pin#2) of the UEXT connector on the Olimex board. More information on the UEXT connector can be found at \nhttps://www.olimex.com/Products/Modules/UEXT/\n. The schematic of the board can be found at \nhttps://www.olimex.com/Products/
 ARM/ST/STM32-E407/resources/STM32-E407_sch.pdf\n for reference.\n\n\n\n\n\n\nConnect the female RX pin of the USB-TTL serial cable to the TX of the UEXT connector on the board. \n\n\nConnect the female TX pin of the USB-TTL serial cable to the RX of the UEXT connector on the board. \n\n\nConnect the GND pin of the USB-TTL serial cable to the GND of the UEXT connector on the board.\n\n\n\n\n\n\n\n\nLocate the serial connection established in the /dev directory of your computer. It should be of the type \ntty.usbserial-\nsome identifier\n.\n\n\n\n\n\n\n        $ ls /dev/tty.usbserial-AJ03HAQQ \n        /dev/tty.usbserial-AJ03HAQQ\n\n\n\n\n\n\n\nYou now have to define a connection profile using newtmgr. You can give it any name you want. The example below shows the connection profile being named as the very imaginative \nolimex01\n.\n\n\n\n\n        $ pwd\n        /Users/\nuser\n/dev/larva/project/slinky\n        $ newtmgr conn add olimex01 type=serial connstring=/dev/tty.usbserial-AJ0
 3HAQQ \n        Connection profile olimex01 successfully added\n        $ newtmgr conn show\n        Connection profiles: \n          sim1: type=serial, connstring=\n/dev/ttys007\n\n          olimex01: type=serial, connstring=\n/dev/tty.usbserial-AJ03HAQQ\n\n\n\n\n\n\n\n\nNow go ahead and query the Olimex board to get responses back. The simplest command is the \necho\n command to ask it to respond with the text you send it. \n\n\n\n\n        $ newtmgr echo -c olimex01 hello\n        {\nr\n: \nhello\n}\n        $ newtmgr image -c olimex01 list\n        Images:\n            0 : 11.22.33.44\n        $ newtmgr -c olimex01 taskstats\n        Return Code = 0\n          shell (prio=3 tid=1 runtime=0 cswcnt=5 stksize=1024 stkusage=60 last_checkin=0 next_checkin=0)\n          newtmgr (prio=4 tid=2 runtime=0 cswcnt=4 stksize=1024 stkusage=256 last_checkin=0 next_checkin=0)\n          task1 (prio=1 tid=3 runtime=0 cswcnt=23 stksize=1024 stkusage=32 last_checkin=0 next_checkin=0)\n          ta
 sk2 (prio=2 tid=4 runtime=0 cswcnt=24 stksize=1024 stkusage=33 last_checkin=0 next_checkin=0)\n          idle (prio=255 tid=0 runtime=23121 cswcnt=26 stksize=32 stkusage=16 last_checkin=0 next_checkin=0)", 
-            "title": "Project Slinky"
+            "text": "Project Sim Slinky\n\n\nObjective\n\n\nThe goal of the project is to enable and demonstrate remote communications with the Mynewt OS via newt manager (newtmgr). We will do this through building a project with Mynewt called Slinky that runs via the native platform. \n\n\nWhat you need\n\n\n1.Personal Computer\n\n\nThe instructions assume the user is using a Bourne-compatible shell (e.g. bash or zsh) on your computer. The given instructions have been tested with the following releases of operating systems:\n\n\n\n\nMac: OS X Yosemite Version 10.10.5\n\n\n\n\nOverview of steps\n\n\n\n\nInstall dependencies\n\n\nDefine a target using the newt tool\n\n\nBuild executables for the targets using the newt tool\n\n\nSet up serial connection with the targets \n\n\nCreate a connection profile using the newtmgr tool\n\n\nUse the newtmgr tool to communicate with the targets\n\n\n\n\nInstalling newt\n\n\nIf you have not already installed \nnewt\n see the \n\nnewt installation 
 instructions\n and ensure newt is installed an in your path.\n\n\nInstalling newtmgr\n\n\nIf you have not already installed \nnewtmgr\n see the \n\nnewtmgr installation instructions\n and ensure newtmgr is installed an in your path.\n\n\nCreating a new project\n\n\nInstructions for creating a project are located in the \nGetting Started\n section of the \nMynewt OS Manual\n\n\nWe will list only the steps here for brevity.  We will name the project\n\nslinky\n.\n\n\n    $ newt new slinky\n    Downloading project skeleton from apache/incubator-mynewt-blinky...\n    ...\n    Installing skeleton in slink...\n    Project slink successfully created\n    $ cd slinky\n    $ newt install -v\n    Downloading repository description for apache-mynewt-core... success!\n    ...\n    Repos successfully installed\n\n\n\n\n\nSetting up your target build\n\n\nCreate a target for \nslinky\n using the native bsp.  See \n\nHow to Define a Target\n for a detailed\ndescription.  We will list only the step
 s and suppress the tool output \nhere for brevity.\n\n\n    $ newt target create sim_slinky\n    $ newt target set sim_slinky bsp=@apache-mynewt-core/hw/bsp/native\n    $ newt target set sim_slinky build_profile=debug\n    $ newt target set sim_slinky app=@apache-mynewt-core/apps/slinky\n\n\n\n\n\nBuilding Your target\n\n\nTo build your target, use \nnewt build\n.  When complete, an executable file\nis created.\n\n\n    $ newt build sim_slinky \n    Compiling main.c\n    ...\n    Linking slinky.elf\n    App successfully built: ~/dev/slinky/bin/sim_slinky/apps/slinky/slinky.elf\n\n\n\n\n\nRun the target\n\n\nRun 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\nwhen mynewt slinky starts.\n\n\n    $ ~/dev/slinky/bin/sim_slinky/apps/slinky/slinky.elf\n    uart0 at /dev/ttys005\n\n\n\n\n\n\n\nIn this example, the slinky app opened up a com port \n/dev/ttys005\n\nfor communications with new
 tmgr. \n\n\nNOTE:\n This application will block. You will need to open a new console (or execute this in another console) to continue the tutorial.*\n\n\n\n\nSetting up a connection profile\n\n\nYou will now set up a connection profile using \nnewtmgr\n for the serial port connection and start communicating with the simulated remote device.\n\n\n    $ newtmgr conn add sim1 type=serial connstring=/dev/ttys005\n    Connection profile sim1 successfully added\n    $ newtmgr conn show\n    Connection profiles: \n      sim1: type=serial, connstring=\n/dev/ttys007\n\n\n\n\n\n\nExecuting newtmgr commands with the target\n\n\nYou can now use connection profile \nsim1\n to talk to the running sim_blinky.\nAs an example, we will query the running mynewt OS for the usage of its \nmemory pools.  \n\n\n    $ newtmgr -c sim1 mpstats\n    Return Code = 0\n      nffs_cache_inode_pool (blksize=36 nblocks=4 nfree=4)\n      nffs_cache_block_pool (blksize=32 nblocks=64 nfree=64)\n      nffs_dir_pool (bl
 ksize=8 nblocks=4 nfree=4)\n      default_mbuf_data (blksize=256 nblocks=10 nfree=8)\n      nffs_file_pool (blksize=12 nblocks=4 nfree=4)\n      nffs_inode_entry_pool (blksize=24 nblocks=100 nfree=98)\n      nffs_block_entry_pool (blksize=12 nblocks=100 nfree=100)\n\n\n\n\n\nAs a test command, you can send an arbitrary string to the target and it\nwill echo that string back in a response to newtmgr.\n\n\n    $ newtmgr -c sim1 echo \nHello Mynewt\n\n    {\nr\n: \nHello Mynewt\n}\n\n\n\n\n\nThe response comes back as a json string.\n\n\nIn addition to these, you can also examine running tasks, statistics, \nlogs, image status (not on sim), and configuration.", 
+            "title": "Sim Slinky"
         }, 
         {
-            "location": "/newtmgr/project-slinky/#project-slinky", 
+            "location": "/newtmgr/project-slinky/#project-sim-slinky", 
             "text": "", 
-            "title": "Project Slinky"
+            "title": "Project Sim Slinky"
         }, 
         {
             "location": "/newtmgr/project-slinky/#objective", 
-            "text": "The goal of the project is to enable and demonstate remote communications with a device or target via newt manager (newtmgr). We will first build the project image for a simulated device and then build an image for a hardware target. Next, the tool newtmgr has to be installed and a connection established with the target. Finally, various available commands in newtmgr will be used to query the target, upgrade image, and collect data from the endpoint.", 
+            "text": "The goal of the project is to enable and demonstrate remote communications with the Mynewt OS via newt manager (newtmgr). We will do this through building a project with Mynewt called Slinky that runs via the native platform.", 
             "title": "Objective"
         }, 
         {
             "location": "/newtmgr/project-slinky/#what-you-need", 
-            "text": "STM32-E407 development board from Olimex. You can order it from  http://www.mouser.com ,  http://www.digikey.com , and other places.  ARM-USB-TINY-H connector with JTAG interface for debugging ARM microcontrollers (comes with the ribbon cable to hook up to the board)  USB A-B type cable to connect the debugger to your personal computer  A USB to TTL Serial Cable with female wiring harness. An example is  http://www.amazon.com/JBtek\u00ae-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pc ie=UTF8 qid=1454631303 sr=1-9  Personal Computer   The instructions assume the user is using a Bourne-compatible shell (e.g. bash or zsh) on your computer. The given instructions have been tested with the following releases of operating systems:   Mac: OS X Yosemite Version 10.10.5", 
+            "text": "1.Personal Computer  The instructions assume the user is using a Bourne-compatible shell (e.g. bash or zsh) on your computer. The given instructions have been tested with the following releases of operating systems:   Mac: OS X Yosemite Version 10.10.5", 
             "title": "What you need"
         }, 
         {
             "location": "/newtmgr/project-slinky/#overview-of-steps", 
-            "text": "Define targets using the newt tool  Build executables for the targets using the newt tool  Set up serial connection with the targets - both the physical connection with a hardware target and the connection profile using the newtmgr tool  Use the newtmgr tool to communicate with the targets   The following instructions will walk you through the update of the larva nest and the installation of newtmgr as well.", 
+            "text": "Install dependencies  Define a target using the newt tool  Build executables for the targets using the newt tool  Set up serial connection with the targets   Create a connection profile using the newtmgr tool  Use the newtmgr tool to communicate with the targets", 
             "title": "Overview of steps"
         }, 
         {
-            "location": "/newtmgr/project-slinky/#creating-local-repository", 
-            "text": "Make sure Mynewt's default nest  larva  is up to date by downloading the latest from the Apache mynewt repository ( https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva ).          $ pwd\n        /Users/ user /dev/larva\n        $ ls -al\n        total 72\n        drwxr-xr-x  18  user   staff    612 Feb  3 15:47 .\n        drwxr-xr-x   5  user   staff    170 Feb  3 13:32 ..\n        drwxr-xr-x  13  user   staff    442 Feb  3 13:32 .git\n        -rw-r--r--   1  user   staff     66 Feb  3 13:32 .gitignore\n        -rw-r--r--   1  user   staff      0 Feb  3 13:32 .gitmodules\n        drwxr-xr-x   4  user   staff    136 Feb  3 16:13 .nest\n        -rw-r--r--   1  user   staff  11358 Feb  3 13:32 LICENSE\n        ...\n        ...\n        drwxr-xr-x   5  user   staff    170 Feb  3 13:32 sys\n        $ git pull origin master", 
-            "title": "Creating local repository"
+            "location": "/newtmgr/project-slinky/#installing-newt", 
+            "text": "If you have not already installed  newt  see the  newt installation instructions  and ensure newt is installed an in your path.", 
+            "title": "Installing newt"
         }, 
         {
             "location": "/newtmgr/project-slinky/#installing-newtmgr", 
-            "text": "You will first download the source code for newt. Currently, you need to create a symbolic link for all the directory references in the go scripts to work correctly.          $ cd ~/dev\n        $ go get git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git/newt\n        $ ln -s ~/dev/go/src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt.git ~/dev/go/src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt\n\n        $ pwd\n       /Users/ user /dev/go\n        $ ls\n         bin    pkg    src\n        $ cd src/git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/newt\n        $ ls\n        newt    newtmgr    newtvm   util\n        $ cd newtmgr\n        $ go build\n        $   Note: If the  go build  command results in errors indicating some package cannot be found, do a  go get  to download all the third-party files needed from github.com and then run  go build  again.", 
-            "title": "Installing Newtmgr"
+            "text": "If you have not already installed  newtmgr  see the  newtmgr installation instructions  and ensure newtmgr is installed an in your path.", 
+            "title": "Installing newtmgr"
+        }, 
+        {
+            "location": "/newtmgr/project-slinky/#creating-a-new-project", 
+            "text": "Instructions for creating a project are located in the  Getting Started  section of the  Mynewt OS Manual  We will list only the steps here for brevity.  We will name the project slinky .      $ newt new slinky\n    Downloading project skeleton from apache/incubator-mynewt-blinky...\n    ...\n    Installing skeleton in slink...\n    Project slink successfully created\n    $ cd slinky\n    $ newt install -v\n    Downloading repository description for apache-mynewt-core... success!\n    ...\n    Repos successfully installed", 
+            "title": "Creating a new project"
+        }, 
+        {
+            "location": "/newtmgr/project-slinky/#setting-up-your-target-build", 
+            "text": "Create a target for  slinky  using the native bsp.  See  How to Define a Target  for a detailed\ndescription.  We will list only the steps and suppress the tool output \nhere for brevity.      $ newt target create sim_slinky\n    $ newt target set sim_slinky bsp=@apache-mynewt-core/hw/bsp/native\n    $ newt target set sim_slinky build_profile=debug\n    $ newt target set sim_slinky app=@apache-mynewt-core/apps/slinky", 
+            "title": "Setting up your target build"
+        }, 
+        {
+            "location": "/newtmgr/project-slinky/#building-your-target", 
+            "text": "To build your target, use  newt build .  When complete, an executable file\nis created.      $ newt build sim_slinky \n    Compiling main.c\n    ...\n    Linking slinky.elf\n    App successfully built: ~/dev/slinky/bin/sim_slinky/apps/slinky/slinky.elf", 
+            "title": "Building Your target"
+        }, 
+        {
+            "location": "/newtmgr/project-slinky/#run-the-target", 
+            "text": "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\nwhen mynewt slinky starts.      $ ~/dev/slinky/bin/sim_slinky/apps/slinky/slinky.elf\n    uart0 at /dev/ttys005   In this example, the slinky app opened up a com port  /dev/ttys005 \nfor communications with newtmgr.   NOTE:  This application will block. You will need to open a new console (or execute this in another console) to continue the tutorial.*", 
+            "title": "Run the target"
+        }, 
+        {
+            "location": "/newtmgr/project-slinky/#setting-up-a-connection-profile", 
+            "text": "You will now set up a connection profile using  newtmgr  for the serial port connection and start communicating with the simulated remote device.      $ newtmgr conn add sim1 type=serial connstring=/dev/ttys005\n    Connection profile sim1 successfully added\n    $ newtmgr conn show\n    Connection profiles: \n      sim1: type=serial, connstring= /dev/ttys007", 
+            "title": "Setting up a connection profile"
+        }, 
+        {
+            "location": "/newtmgr/project-slinky/#executing-newtmgr-commands-with-the-target", 
+            "text": "You can now use connection profile  sim1  to talk to the running sim_blinky.\nAs an example, we will query the running mynewt OS for the usage of its \nmemory pools.        $ newtmgr -c sim1 mpstats\n    Return Code = 0\n      nffs_cache_inode_pool (blksize=36 nblocks=4 nfree=4)\n      nffs_cache_block_pool (blksize=32 nblocks=64 nfree=64)\n      nffs_dir_pool (blksize=8 nblocks=4 nfree=4)\n      default_mbuf_data (blksize=256 nblocks=10 nfree=8)\n      nffs_file_pool (blksize=12 nblocks=4 nfree=4)\n      nffs_inode_entry_pool (blksize=24 nblocks=100 nfree=98)\n      nffs_block_entry_pool (blksize=12 nblocks=100 nfree=100)  As a test command, you can send an arbitrary string to the target and it\nwill echo that string back in a response to newtmgr.      $ newtmgr -c sim1 echo  Hello Mynewt \n    { r :  Hello Mynewt }  The response comes back as a json string.  In addition to these, you can also examine running tasks, statistics, \nlogs, image status (not on sim)
 , and configuration.", 
+            "title": "Executing newtmgr commands with the target"
+        }, 
+        {
+            "location": "/newtmgr/project-target-slinky/", 
+            "text": "Project Slinky\n\n\nObjective\n\n\nThe goal of the project is to enable and demonstrate remote communications with the Mynewt OS via newt manager (newtmgr). We will do this through a project with Mynewt called Slinky that runs on the STM32-E407 board.\n\n\nWhat you need\n\n\n\n\nSTM32-E407 development board from Olimex. You can order it from \nhttp://www.mouser.com\n, \nhttp://www.digikey.com\n, and other places.\n\n\nARM-USB-TINY-H connector with JTAG interface for debugging ARM microcontrollers (comes with the ribbon cable to hook up to the board)\n\n\nUSB A-B type cable to connect the debugger to your personal computer\n\n\nA USB to TTL Serial Cable with female wiring harness. An example is \nhttp://www.amazon.com/JBtek\u00ae-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pc\nie=UTF8\nqid=1454631303\nsr=1-9\n\n\nPersonal Computer\n\n\n\n\nThe instructions assume the user is using a Bourne-compatible shell (e.g. bash or zsh) on your 
 computer. The given instructions have been tested with the following releases of operating systems:\n\n\n\n\nMac: OS X Yosemite Version 10.10.5\n\n\n\n\nOverview of steps\n\n\n\n\nInstall dependencies\n\n\nDefine a target using the newt tool\n\n\nBuild executables for the targets using the newt tool\n\n\nSet up serial connection with the targets \n\n\nCreate a connection profile using the newtmgr tool\n\n\nUse the newtmgr tool to communicate with the targets\n\n\n\n\nInstall newt\n\n\nIf you have not already installed \nnewt\n, see the \n\nnewt installation instructions\n and ensure newt is installed an in your path.\n\n\nInstall newtmgr\n\n\nIf you have not already installed \nnewtmgr\n, see the \n\nnewtmgr installation instructions\n and ensure newtmgr is installed an in your path.\n\n\nCreate a new project\n\n\nInstructions for creating a project are located in the \nGetting Started\n section of the \nMynewt OS Manual\n.\n\n\nIf you already completed \nsim slinky\n you can skip t
 his step.\n\n\nWe will list only the steps here for brevity.  We will name the project\n\nslinky\n.\n\n\n$ \nnewt new slinky\nDownloading project skeleton from apache/incubator-mynewt-blinky...\n...\nInstalling skeleton in slink...\nProject slink successfully created\n\n$ \ncd \nslinky\n\n$newt\n install -v\nDownloading repository description \nfor\n apache-mynewt-core... success!\n...\nRepos successfully installed\n\n\n\n\n\n\n\nSet up your target builds\n\n\nCreate a target for \nstm32_slinky\n using the native bsp.  See \n\nHow to Define a Target\n for a detailed\ndescription.  The tool output is suppressed below for brevity.\n\n\n$ \nnewt target create stm32_slinky\n\n$ \nnewt target \nset \nstm32_slinky \nbsp=\n@apache-mynewt-core/hw/bsp/olimex_stm32-e407_devboard\n\n$ \nnewt target \nset \nstm32_slinky \nbuild_profile=\ndebug\n\n$ \nnewt target \nset \nstm32_slinky \napp=\n@apache-mynewt-core/apps/slinky\n\n\n\n\n\nCreate a second target for \nstm32_bootloader\n to build a boo
 tloader to boot\nthe \nstm32_slinky\n image.  The tool output is suppressed below for brevity.\n\n\n$ \nnewt target create stm32_bootloader\n\n$ \nnewt target \nset \nstm32_bootloader \nbsp=\n@apache-mynewt-core/hw/bsp/olimex_stm32-e407_devboard\n\n$ \nnewt target \nset \nstm32_bootloader \nbuild_profile=\noptimized\n\n$ \nnewt target \nset \nstm32_bootloader target.app\n=\n@apache-mynewt-core/apps/boot\n\n\n\n\n\n\n\nBuild Targets\n\n\n$ \nnewt build stm32_slinky\nCompiling main.c\n...\nLinking slinky.elf\nApp successfully built: ~/dev/slinky/bin/stm32_slinky/apps/slinky/slinky.elf\n\n\n\n\n\nnewt build stm32_bootloader\nCompiling crc16.c\n...\nLinking boot.elf\nApp successfully built: ~/slinky/bin/stm32_bootloader/apps/boot/boot.elf\n\n\n\n\n\nFor the main image, you need to create an image using newt create-image.\nGive this image some arbitrary version number \"1.2.3\".\n\n\n$ \nnewt create-image stm32_slinky 1.2.3\nApp image succesfully generated: /Users/paulfdietrich/dev/slink
 y/bin/stm32_slinky/apps/slinky/slinky.img\nBuild manifest: /Users/paulfdietrich/dev/slinky/bin/stm32_slinky/apps/slinky/manifest.json\n\n\n\n\n\n\n\nUsing newtmgr with a remote target\n\n\n\n\n\n\nFirst make sure the USB A-B type cable is connected to the ARM-USB-TINY-H debugger connector on the Olimex board. \n\n\nNext go the to project directory and download the slinky project image to the flash of the Olimex board. \n\n\n\n\n\n\n$ \nnewt load stm32_bootloader\n\n$ \nnewt load stm32_slinky\n\n\n\n\n\nYou can now disconnect the debugging cable from the board. You should see the green LED blinking. If not, try powercycling the board.\n\n\n\n\n\n\n\n\nNow you have to set up the serial connection from your computer to the Olimex board. Locate the PC6/USART6_TX (pin#3), PC7/USART6_RX (pin#4), and GND (pin#2) of the UEXT connector on the Olimex board. More information on the UEXT connector can be found at \nhttps://www.olimex.com/Products/Modules/UEXT/\n. The schematic of the board can 
 be found at \nhttps://www.olimex.com/Products/ARM/ST/STM32-E407/resources/STM32-E407_sch.pdf\n for reference.\n\n\n\n\n\n\nConnect the female RX pin of the USB-TTL serial cable to the TX of the UEXT connector on the board. \n\n\nConnect the female TX pin of the USB-TTL serial cable to the RX of the UEXT connector on the board. \n\n\nConnect the GND pin of the USB-TTL serial cable to the GND of the UEXT connector on the board.\n\n\n\n\n\n\n\n\n\n\n\n\nLocate the serial connection established in the /dev directory of your computer. It should be of the type \ntty.usbserial-\nsome identifier\n.\n\n\n\n\n        $ ls /dev/tty.usbserial-AJ03HAQQ \n        /dev/tty.usbserial-AJ03HAQQ\n\n\n\n\n\n\n\n\n\nYou now have to define a connection profile using newtmgr. You can give it any name you want. The example below shows the connection profile being named as the very imaginative \nolimex01\n.\n\n\n\n\n        $ pwd\n        /Users/\nuser\n/dev/larva/project/slinky\n        $ newtmgr conn add 
 olimex01 type=serial connstring=/dev/tty.usbserial-AJ03HAQQ \n        Connection profile olimex01 successfully added\n        $ newtmgr conn show\n        Connection profiles: \n          sim1: type=serial, connstring=\n/dev/ttys007\n\n          olimex01: type=serial, connstring=\n/dev/tty.usbserial-AJ03HAQQ\n\n\n\n\n\n\n\n\n\n\nNow go ahead and query the Olimex board to get responses back. The simplest command is the \necho\n command to ask it to respond with the text you send it. \n\n\n\n\n    $ newtmgr echo -c olimex01 hello\n    {\nr\n: \nhello\n}\n    $ newtmgr image -c olimex01 list\n    Images:\n        0 : 1.2.3\n    $ newtmgr -c olimex01 taskstats\n    Return Code = 0\n      newtmgr (prio=4 tid=2 runtime=0 cswcnt=12 stksize=512 stkusage=255 last_checkin=0 next_checkin=0)\n      task1 (prio=1 tid=3 runtime=0 cswcnt=299 stksize=128 stkusage=33 last_checkin=0 next_checkin=0)\n      task2 (prio=2 tid=4 runtime=0 cswcnt=300 stksize=128 stkusage=31 last_checkin=0 next_checkin=0)\
 n      idle (prio=255 tid=0 runtime=299916 cswcnt=313 stksize=32 stkusage=18 last_checkin=0 next_checkin=0)\n      shell (prio=3 tid=1 runtime=1 cswcnt=20 stksize=384 stkusage=60 last_checkin=0 next_checkin=0)", 
+            "title": "Target Slinky"
+        }, 
+        {
+            "location": "/newtmgr/project-target-slinky/#project-slinky", 
+            "text": "", 
+            "title": "Project Slinky"
+        }, 
+        {
+            "location": "/newtmgr/project-target-slinky/#objective", 
+            "text": "The goal of the project is to enable and demonstrate remote communications with the Mynewt OS via newt manager (newtmgr). We will do this through a project with Mynewt called Slinky that runs on the STM32-E407 board.", 
+            "title": "Objective"
+        }, 
+        {
+            "location": "/newtmgr/project-target-slinky/#what-you-need", 
+            "text": "STM32-E407 development board from Olimex. You can order it from  http://www.mouser.com ,  http://www.digikey.com , and other places.  ARM-USB-TINY-H connector with JTAG interface for debugging ARM microcontrollers (comes with the ribbon cable to hook up to the board)  USB A-B type cable to connect the debugger to your personal computer  A USB to TTL Serial Cable with female wiring harness. An example is  http://www.amazon.com/JBtek\u00ae-WINDOWS-Supported-Raspberry-Programming/dp/B00QT7LQ88/ref=lp_464404_1_9?s=pc ie=UTF8 qid=1454631303 sr=1-9  Personal Computer   The instructions assume the user is using a Bourne-compatible shell (e.g. bash or zsh) on your computer. The given instructions have been tested with the following releases of operating systems:   Mac: OS X Yosemite Version 10.10.5", 
+            "title": "What you need"
+        }, 
+        {
+            "location": "/newtmgr/project-target-slinky/#overview-of-steps", 
+            "text": "Install dependencies  Define a target using the newt tool  Build executables for the targets using the newt tool  Set up serial connection with the targets   Create a connection profile using the newtmgr tool  Use the newtmgr tool to communicate with the targets", 
+            "title": "Overview of steps"
+        }, 
+        {
+            "location": "/newtmgr/project-target-slinky/#install-newt", 
+            "text": "If you have not already installed  newt , see the  newt installation instructions  and ensure newt is installed an in your path.", 
+            "title": "Install newt"
+        }, 
+        {
+            "location": "/newtmgr/project-target-slinky/#install-newtmgr", 
+            "text": "If you have not already installed  newtmgr , see the  newtmgr installation instructions  and ensure newtmgr is installed an in your path.", 
+            "title": "Install newtmgr"
+        }, 
+        {
+            "location": "/newtmgr/project-target-slinky/#create-a-new-project", 
+            "text": "Instructions for creating a project are located in the  Getting Started  section of the  Mynewt OS Manual .  If you already completed  sim slinky  you can skip this step.  We will list only the steps here for brevity.  We will name the project slinky .  $  newt new slinky\nDownloading project skeleton from apache/incubator-mynewt-blinky...\n...\nInstalling skeleton in slink...\nProject slink successfully created $  cd  slinky $newt  install -v\nDownloading repository description  for  apache-mynewt-core... success!\n...\nRepos successfully installed", 
+            "title": "Create a new project"
         }, 
         {
-            "location": "/newtmgr/project-slinky/#building-targets", 
-            "text": "You will create a total of 4 targets. The first one is a simulation target and the second a hardware target (for STM32-E407 Olimex development board). In order to run an image from the flash on the Olimex board, a bootloader is required. You will build two additional targets (bootloader and bin2img) as explained in Project Blinky under  Using flash to make LED blink  and as shown below.  Here;'s how to create the target for simulation.          $ newt target create slinky_sim\n        Creating target slinky_sim\n        Target slinky_sim sucessfully created!\n        $ newt target set slinky_sim arch=sim\n        Target slinky_sim successfully set arch to sim\n        $ newt target set slinky_sim compiler=sim\n        Target slinky_sim successfully set compiler to sim\n        $ newt target set slinky_sim project=slinky\n        Target slinky_sim successfully set project to slinky\n        $ newt target set slinky_sim compiler_def=debug\n        Target slinky_si
 m successfully set compiler_def to debug\n        $ newt target set slinky_sim bsp=hw/bsp/native\n        Target slinky_sim successfully set bsp to hw/bsp/native\n        $ newt target show slinky_sim\n        slinky_sim\n            arch: sim\n            bsp: hw/bsp/native\n            compiler: sim\n            compiler_def: debug\n            name: slinky_sim\n            project: slinky       Repeat the above steps using the attribute information for each target from the target output shown below to create the remaining three targets. The four target definitions are:          $ newt target show\n        bin2img\n            arch: sim\n            bsp: hw/bsp/native\n            compiler: sim\n            compiler_def: debug\n            name: bin2img\n            project: bin2img\n        boot_olimex\n            arch: cortex_m4\n            bsp: hw/bsp/olimex_stm32-e407_devboard\n            compiler: arm-none-eabi-m4\n            compiler_def: optimized\n            name: boo
 t_olimex\n            project: boot\n        slinky1\n            arch: cortex_m4\n            bsp: hw/bsp/olimex_stm32-e407_devboard\n            compiler: arm-none-eabi-m4\n            compiler_def: debug\n            name: slinky1\n            project: slinky\n        slinky_sim\n            arch: sim\n            bsp: hw/bsp/native\n            compiler: sim\n            compiler_def: debug\n            name: slinky_sim\n            project: slinky  Go ahead and build all the targets. The build command for slinky_sim is shown below.          $ newt target build slinky_sim\n        Building target slinky_sim (project = slinky)\n        Compiling base64.c\n        Compiling cbmem.c\n        ...\n        Archiving libnative.a\n        Compiling main.c\n        Building project slinky\n        Linking slinky.elf\n        Successfully run!  Now run the  newt target build  command for the remaining three targets.", 
-            "title": "Building Targets"
+            "location": "/newtmgr/project-target-slinky/#set-up-your-target-builds", 
+            "text": "Create a target for  stm32_slinky  using the native bsp.  See  How to Define a Target  for a detailed\ndescription.  The tool output is suppressed below for brevity.  $  newt target create stm32_slinky $  newt target  set  stm32_slinky  bsp= @apache-mynewt-core/hw/bsp/olimex_stm32-e407_devboard $  newt target  set  stm32_slinky  build_profile= debug $  newt target  set  stm32_slinky  app= @apache-mynewt-core/apps/slinky  Create a second target for  stm32_bootloader  to build a bootloader to boot\nthe  stm32_slinky  image.  The tool output is suppressed below for brevity.  $  newt target create stm32_bootloader $  newt target  set  stm32_bootloader  bsp= @apache-mynewt-core/hw/bsp/olimex_stm32-e407_devboard $  newt target  set  stm32_bootloader  build_profile= optimized $  newt target  set  stm32_bootloader target.app = @apache-mynewt-core/apps/boot", 
+            "title": "Set up your target builds"
         }, 
         {
-            "location": "/newtmgr/project-slinky/#using-newtmgr-with-a-sim-target", 
-            "text": "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.           $ pwd\n        /Users/ user /dev/larva/project/slinky\n        $ ./bin/slinky_sim/slinky.elf\n        uart0 at /dev/ttys007   You will now set up a connection profile using  newtmgr  for the serial port connection and start communicating with the simulated remote device.           $ newtmgr conn add sim1 type=serial connstring=/dev/ttys007\n        Connection profile sim1 successfully added\n        $ newtmgr conn show\n        Connection profiles: \n          sim1: type=serial, connstring= /dev/ttys007 \n        $ newtmgr -c sim1 taskstats\n        Return Code = 0\n          uart_poller (prio=0 tid=3 runtime=0 cswcnt=43810 stksize=1024 stkusage=325 last_checkin=0 next_checkin=0)\n          newtmgr (prio=4 tid=4 runtime=0 cswcnt=6 stksize=1024 stkusage=585 last_checkin=0 next_checkin=0)\n          task
 1 (prio=1 tid=5 runtime=0 cswcnt=551 stksize=1024 stkusage=83 last_checkin=0 next_checkin=0)\n          task2 (prio=2 tid=6 runtime=0 cswcnt=551 stksize=1024 stkusage=85 last_checkin=0 next_checkin=0)\n          idle (prio=255 tid=0 runtime=552525 cswcnt=44005 stksize=1024 stkusage=529 last_checkin=0 next_checkin=0)\n          os_sanity (prio=254 tid=1 runtime=0 cswcnt=551 stksize=1024 stkusage=82 last_checkin=0 next_checkin=0)\n          shell (prio=3 tid=2 runtime=0 cswcnt=20 stksize=1024 stkusage=142 last_checkin=0 next_checkin=0)\n        $ newtmgr -c sim1 stat stat\n        Return Code = 0\n        Stats Name: stat\n          s0: 1", 
-            "title": "Using newtmgr with a sim target"
+            "location": "/newtmgr/project-target-slinky/#build-targets", 
+            "text": "$  newt build stm32_slinky\nCompiling main.c\n...\nLinking slinky.elf\nApp successfully built: ~/dev/slinky/bin/stm32_slinky/apps/slinky/slinky.elf  newt build stm32_bootloader\nCompiling crc16.c\n...\nLinking boot.elf\nApp successfully built: ~/slinky/bin/stm32_bootloader/apps/boot/boot.elf  For the main image, you need to create an image using newt create-image.\nGive this image some arbitrary version number \"1.2.3\".  $  newt create-image stm32_slinky 1.2.3\nApp image succesfully generated: /Users/paulfdietrich/dev/slinky/bin/stm32_slinky/apps/slinky/slinky.img\nBuild manifest: /Users/paulfdietrich/dev/slinky/bin/stm32_slinky/apps/slinky/manifest.json", 
+            "title": "Build Targets"
         }, 
         {
-            "location": "/newtmgr/project-slinky/#using-newtmgr-with-a-remote-target", 
-            "text": "First make sure the USB A-B type cable is connected to the ARM-USB-TINY-H debugger connector on the Olimex board.   Next go the to project directory and download the slinky project image to the flash of the Olimex board. You will see the executables in the  slinky1  directory created for the Olimex target to run the slinky project.            $ pwd\n        /Users/ user /dev/larva/project/slinky\n        $ ls\n        bin     egg.yml     slinky.yml  src\n        $ ls bin\n        slinky1     slinky_sim\n        $ ls bin/slinky1\n        slinky.elf  slinky.elf.bin  slinky.elf.cmd    slinky.elf.img    slinky.elf.lst    slinky.elf.map\n        $ newt target download boot_olimex\n        Downloading with /Users/ user /dev/larva/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh\n        $ newt target download slinky1\n        Downloading with /Users/ user /dev/larva/hw/bsp/olimex_stm32-e407_devboard/olimex_stm32-e407_devboard_download.sh  You c
 an now disconnect the debugging cable from the board. You should see the green LED blinking. If not, try powercycling the board.    Now you have to set up the serial connection from your computer to the Olimex board. Locate the PC6/USART6_TX (pin#3), PC7/USART6_RX (pin#4), and GND (pin#2) of the UEXT connector on the Olimex board. More information on the UEXT connector can be found at  https://www.olimex.com/Products/Modules/UEXT/ . The schematic of the board can be found at  https://www.olimex.com/Products/ARM/ST/STM32-E407/resources/STM32-E407_sch.pdf  for reference.    Connect the female RX pin of the USB-TTL serial cable to the TX of the UEXT connector on the board.   Connect the female TX pin of the USB-TTL serial cable to the RX of the UEXT connector on the board.   Connect the GND pin of the USB-TTL serial cable to the GND of the UEXT connector on the board.     Locate the serial connection established in the /dev directory of your computer. It should be of the type  tty.usbs
 erial- some identifier .            $ ls /dev/tty.usbserial-AJ03HAQQ \n        /dev/tty.usbserial-AJ03HAQQ   You now have to define a connection profile using newtmgr. You can give it any name you want. The example below shows the connection profile being named as the very imaginative  olimex01 .           $ pwd\n        /Users/ user /dev/larva/project/slinky\n        $ newtmgr conn add olimex01 type=serial connstring=/dev/tty.usbserial-AJ03HAQQ \n        Connection profile olimex01 successfully added\n        $ newtmgr conn show\n        Connection profiles: \n          sim1: type=serial, connstring= /dev/ttys007 \n          olimex01: type=serial, connstring= /dev/tty.usbserial-AJ03HAQQ    Now go ahead and query the Olimex board to get responses back. The simplest command is the  echo  command to ask it to respond with the text you send it.            $ newtmgr echo -c olimex01 hello\n        { r :  hello }\n        $ newtmgr image -c olimex01 list\n        Images:\n            0 :
  11.22.33.44\n        $ newtmgr -c olimex01 taskstats\n        Return Code = 0\n          shell (prio=3 tid=1 runtime=0 cswcnt=5 stksize=1024 stkusage=60 last_checkin=0 next_checkin=0)\n          newtmgr (prio=4 tid=2 runtime=0 cswcnt=4 stksize=1024 stkusage=256 last_checkin=0 next_checkin=0)\n          task1 (prio=1 tid=3 runtime=0 cswcnt=23 stksize=1024 stkusage=32 last_checkin=0 next_checkin=0)\n          task2 (prio=2 tid=4 runtime=0 cswcnt=24 stksize=1024 stkusage=33 last_checkin=0 next_checkin=0)\n          idle (prio=255 tid=0 runtime=23121 cswcnt=26 stksize=32 stkusage=16 last_checkin=0 next_checkin=0)", 
+            "location": "/newtmgr/project-target-slinky/#using-newtmgr-with-a-remote-target", 
+            "text": "First make sure the USB A-B type cable is connected to the ARM-USB-TINY-H debugger connector on the Olimex board.   Next go the to project directory and download the slinky project image to the flash of the Olimex board.     $  newt load stm32_bootloader $  newt load stm32_slinky  You can now disconnect the debugging cable from the board. You should see the green LED blinking. If not, try powercycling the board.     Now you have to set up the serial connection from your computer to the Olimex board. Locate the PC6/USART6_TX (pin#3), PC7/USART6_RX (pin#4), and GND (pin#2) of the UEXT connector on the Olimex board. More information on the UEXT connector can be found at  https://www.olimex.com/Products/Modules/UEXT/ . The schematic of the board can be found at  https://www.olimex.com/Products/ARM/ST/STM32-E407/resources/STM32-E407_sch.pdf  for reference.    Connect the female RX pin of the USB-TTL serial cable to the TX of the UEXT connector on the board.   Connect
  the female TX pin of the USB-TTL serial cable to the RX of the UEXT connector on the board.   Connect the GND pin of the USB-TTL serial cable to the GND of the UEXT connector on the board.       Locate the serial connection established in the /dev directory of your computer. It should be of the type  tty.usbserial- some identifier .           $ ls /dev/tty.usbserial-AJ03HAQQ \n        /dev/tty.usbserial-AJ03HAQQ    You now have to define a connection profile using newtmgr. You can give it any name you want. The example below shows the connection profile being named as the very imaginative  olimex01 .           $ pwd\n        /Users/ user /dev/larva/project/slinky\n        $ newtmgr conn add olimex01 type=serial connstring=/dev/tty.usbserial-AJ03HAQQ \n        Connection profile olimex01 successfully added\n        $ newtmgr conn show\n        Connection profiles: \n          sim1: type=serial, connstring= /dev/ttys007 \n          olimex01: type=serial, connstring= /dev/tty.usbseria
 l-AJ03HAQQ     Now go ahead and query the Olimex board to get responses back. The simplest command is the  echo  command to ask it to respond with the text you send it.        $ newtmgr echo -c olimex01 hello\n    { r :  hello }\n    $ newtmgr image -c olimex01 list\n    Images:\n        0 : 1.2.3\n    $ newtmgr -c olimex01 taskstats\n    Return Code = 0\n      newtmgr (prio=4 tid=2 runtime=0 cswcnt=12 stksize=512 stkusage=255 last_checkin=0 next_checkin=0)\n      task1 (prio=1 tid=3 runtime=0 cswcnt=299 stksize=128 stkusage=33 last_checkin=0 next_checkin=0)\n      task2 (prio=2 tid=4 runtime=0 cswcnt=300 stksize=128 stkusage=31 last_checkin=0 next_checkin=0)\n      idle (prio=255 tid=0 runtime=299916 cswcnt=313 stksize=32 stkusage=18 last_checkin=0 next_checkin=0)\n      shell (prio=3 tid=1 runtime=1 cswcnt=20 stksize=384 stkusage=60 last_checkin=0 next_checkin=0)", 
             "title": "Using newtmgr with a remote target"
         }, 
         {

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/2af796a3/newtmgr/installing/index.html
----------------------------------------------------------------------
diff --git a/newtmgr/installing/index.html b/newtmgr/installing/index.html
new file mode 100644
index 0000000..fbf3d36
--- /dev/null
+++ b/newtmgr/installing/index.html
@@ -0,0 +1,444 @@
+<!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">
+        
+        
+        <link rel="canonical" href="http://mynewt.apache.org/newtmgr/installing/">
+        <link rel="shortcut icon" href="../../img/favicon.ico">
+
+	<title>Installing - Apache Mynewt</title>
+
+        <link href="../../css/bootstrap-3.0.3.min.css" rel="stylesheet">
+        <link href="../../css/font-awesome-4.0.3.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='https://fonts.googleapis.com/css?family=Roboto:400,500,700,900,300,100' rel='stylesheet' type='text/css'>
+        <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', 'mynewt.incubator.apache.org');
+                ga('send', 'pageview');
+            </script>
+        
+    </head>
+
+
+    <body class="Installing">
+
+
+        <div id="navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
+    <div class="logo-container">
+        <img src="/img/logo.svg">
+    </div>
+    <div class="container-fluid">
+        <!-- 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="/">Home</a>
+                </li>
+                <li>
+                    <a href="/about/">About</a>
+                </li>
+                <li class="dropdown">
+                    <a href="/documentation/" class="dropdown-toggle" data-toggle="dropdown">Docs <b class="caret"></b></a>
+                    <ul class="dropdown-menu">
+                        
+                        
+                        
+                        
+                        
+                        
+                        <li >
+                            <a href="../../documentation/">
+                                Overview
+                            </a>
+                        </li>
+                        
+                        
+                        
+                        
+                        
+                        
+                        
+                        
+                        
+                        <li >
+                            <a href="../../os/get_started/introduction/">
+                                Mynewt OS Manual
+                            </a>
+                        </li>
+                        
+                        
+                        
+                        <li >
+                            <a href="../../newt/newt_intro/">
+                                Newt Tool Manual
+                            </a>
+                        </li>
+                        
+                        
+                        
+                        <li class="active">
+                            <a href="../overview/">
+                                Newt Manager Manual
+                            </a>
+                        </li>
+                        
+                        
+                        
+                        <li >
+                            <a href="../../faq/answers/">
+                                Appendix
+                            </a>
+                        </li>
+                        
+                        
+                    </ul>
+                </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>
+</div>
+
+        
+
+        <div class="container-fluid">
+            
+                <div class="row sm-extra-padding">
+                    <div id="docSidebar" class="col-md-3 bg-grey sidebar-container"><div class="bs-sidebar hidden-print" role="complementary">
+    <div class="sidebar-top">
+        <img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg" alt="MyNewt" title="MyNewt">
+        <div class="small" role="search">
+            <form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
+                <div class="form-group">
+                    <input type="text" name="q" placeholder="Search documentation" />
+                    <button class="search-button" type="submit"><i class="fa fa-search"></i></button>
+                </div>
+            </form>
+        </div>
+    </div>
+    <ul class="nav bs-sidenav">
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../../os/get_started/introduction/
+">Mynewt OS Manual</a>
+  
+    
+  </li>
+
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../../newt/newt_intro/
+">Newt Tool Manual</a>
+  
+    
+  </li>
+
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../overview/
+">Newt Manager Manual</a>
+  
+    
+      <ul class="current-toc">
+          
+              
+                
+  
+    <li>
+      <a href="../overview/">Introduction</a>
+    </li>
+  
+
+              
+          
+              
+                
+  
+    <li class="active">
+      Installing
+    </li>
+  
+
+              
+          
+              
+                
+  
+  
+    <li><a href="
+  ../project-slinky/
+">Tutorials</a>
+  
+    
+  </li>
+
+              
+          
+              
+                
+  
+  
+    <li><a href="
+  ../protocol/
+">Manual</a>
+  
+    
+  </li>
+
+              
+          
+      </ul>
+    
+  </li>
+
+        
+      
+        
+          
+  
+  
+    <li><a href="
+  ../../faq/answers/
+">Appendix</a>
+  
+    
+  </li>
+
+        
+      
+    </ul>
+</div></div>
+
+                    <div class="show-sidebar-container">
+                        <button class="show-sidebar">Docs Menu</button>
+                    </div>
+
+                    <div class="col-md-offset-3 col-md-9 documentation-viewer" role="main">
+                        <div class="row doc-header">
+                            <div class="col-sm-6">
+                                
+<ul class="nav nav-pills">
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    <li  role="presentation"><a href="../../os/get_started/introduction/">Mynewt OS</a></li>
+    
+    
+    
+    <li  role="presentation"><a href="../../newt/newt_intro/">Newt Tool</a></li>
+    
+    
+    
+    <li class="active" role="presentation"><a href="../overview/">Newt Mgr</a></li>
+    
+    
+    
+    
+</ul>
+                            </div>
+                            <div class="col-sm-6">
+                                <div role="navigation" aria-label="breadcrumbs navigation">
+  <ul class="wy-breadcrumbs">
+    <li><a href="/documentation/">Docs</a></li>
+    
+    
+        
+          <li>&raquo; <a href="../overview/">Newt Manager Manual</a></li>
+        
+      
+      
+        <li>&raquo; Installing</li>
+      
+    
+    
+  </ul>
+</div>
+                            </div>
+                        </div>
+                        
+                            <h1 id="installing-newtmgr">Installing Newtmgr<a class="headerlink" href="#installing-newtmgr" title="Permanent link">&para;</a></h1>
+<p>This page shows you how to install newtmgr from source code.</p>
+<h3 id="install-go-golang">Install Go (golang)<a class="headerlink" href="#install-go-golang" title="Permanent link">&para;</a></h3>
+<p>If you have not already done so, install Go for your platform.  </p>
+<p>The easiest way on a MAC is to use <code>brew</code>.  </p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">brew install go
+==&gt; Downloading https://homebrew.bintray.com/bottles/go-1.5.3.mavericks.bottle.t
+...
+==&gt; Summary
+🍺  /usr/local/Cellar/go/1.5.3: 5,336 files, 259.6M
+</pre></div>
+
+
+<p><br></p>
+<p>Alternatively, you can download binaries from 
+<a href="https://golang.org/doc/install">the golang.org site</a>
+To test your Go implementation, you can query Go for its version information</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">$ </span>go version
+go version go1.5.3 darwin/amd64
+</pre></div>
+
+
+<p><br></p>
+<p>To use go, you must set a <code>$GOPATH</code> variable in your environment.  This tells
+go where to put all the packages it downloads, builds and runs.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%"><span style="color: #000000">$ </span>mkdir <span style="color: #000000">$HOME</span>/dev
+<span style="color: #000000">$ </span><span style="color: #A90D91">export </span><span style="color: #000000">GOPATH=$HOME</span>/dev/Go
+</pre></div>
+
+
+<p><br></p>
+<p>Its best to add this to your <code>.profile</code> so its set automatically for your 
+environment. </p>
+<p><br></p>
+<h3 id="download-the-newtmgr-source">Download the newtmgr source<a class="headerlink" href="#download-the-newtmgr-source" title="Permanent link">&para;</a></h3>
+<p>You will first download the source code for newt.</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">    go get mynewt.apache.org/newt/...
+        (wait a few minutes please, this sits without any indications of working)
+</pre></div>
+
+
+<p><br></p>
+<h3 id="building-newtmgr">Building newtmgr<a class="headerlink" href="#building-newtmgr" title="Permanent link">&para;</a></h3>
+<p>Change into the directory where the newmgr tool was downloaded and 
+install the newtmgr tool</p>
+<div class="codehilite" style="background: #ffffff"><pre style="line-height: 125%">    cd $<span style="color: #000000">GOPATH</span>/src/mynewt.apache.org/newt/newtmgr
+    go install
+    $ ls $<span style="color: #000000">GOPATH</span>/bin
+    ... newtmgr ...
+</pre></div>
+
+
+<p><br></p>
+<p><strong>Note:</strong> If the <code>go install</code> command results in errors indicating some package 
+cannot be found, do a <code>go get</code> to download all the third-party files needed 
+from github.com and then run <code>go install</code> again. </p>
+<h3 id="add-to-your-path">Add to your Path<a class="headerlink" href="#add-to-your-path" title="Permanent link">&para;</a></h3>
+<p>Add your <code>$GOPATH/bin</code> directory to your path.</p>
+                        
+                        <div class="row">
+                            <footer>
+    <div class="row">
+        <div class="col-md-12">
+            
+                <p class="copyright">Copyright &copy; 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0 Apache and the Apache feather logo are trademarks of The Apache Software Foundation.<br>The Apache Software Foundation Apache Incubator</p>
+            
+        </div>
+    </div>
+    <div class="copyright-logos">
+        <div class="row">
+            <div class="col-xs-6 text-right">
+                <img src="/img/apache-feather.png" alt="Apache" title="Apache">
+            </div>
+            <div class="col-xs-6 text-left">
+                <img src="/img/apache-logo.png" alt="Apache Incubator" title="Apache Incubator">
+            </div>
+        </div>
+    </div>
+    <div class="row">
+        <div class="col-md-12">
+            <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>
+        </div>
+    </div>
+</footer>
+                        </div>
+                    </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/2af796a3/newtmgr/overview/index.html
----------------------------------------------------------------------
diff --git a/newtmgr/overview/index.html b/newtmgr/overview/index.html
index 44365b1..1fc6b6c 100644
--- a/newtmgr/overview/index.html
+++ b/newtmgr/overview/index.html
@@ -226,6 +226,16 @@
               
                 
   
+    <li>
+      <a href="../installing/">Installing</a>
+    </li>
+  
+
+              
+          
+              
+                
+  
   
     <li><a href="
   ../project-slinky/