Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/develop 6a0dc6300 -> ff8a7ac47


Clarified newt run command and calling the binary directly in Create Your First 
Mynewt Project tutorial
MYNEWT-548


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/ff8a7ac4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/ff8a7ac4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/ff8a7ac4

Branch: refs/heads/develop
Commit: ff8a7ac4769322833afa7b54ef6f575d157d9420
Parents: 6a0dc63
Author: aditihilbert <[email protected]>
Authored: Mon Feb 27 00:46:52 2017 -0800
Committer: aditihilbert <[email protected]>
Committed: Mon Feb 27 00:47:11 2017 -0800

----------------------------------------------------------------------
 docs/os/get_started/project_create.md | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/ff8a7ac4/docs/os/get_started/project_create.md
----------------------------------------------------------------------
diff --git a/docs/os/get_started/project_create.md 
b/docs/os/get_started/project_create.md
index 1c51cd2..d79a6a6 100644
--- a/docs/os/get_started/project_create.md
+++ b/docs/os/get_started/project_create.md
@@ -279,7 +279,7 @@ Archiving native.a
 Compiling flash_map.c
 <snip>
 Linking blinky.elf
-App successfully built: 
/Users/dsimmons/myproj/bin/my_blinky_sim/apps/blinky/blinky.elf
+App successfully built: 
~/myproj/bin/targets/my_blinky_sim/app/apps/blinky/blinky.elf
 ```
 
 <br>
@@ -287,10 +287,22 @@ App successfully built: 
/Users/dsimmons/myproj/bin/my_blinky_sim/apps/blinky/bli
 ### Run the Project
 
 You can run the simulated version of your project and see the simulated LED
-blink.
+blink. If you are using newt docker on Mac OS X, use `newt run` to run the 
simulated binary.
 
 ```
-$ ./bin/my_blinky_sim/apps/blinky/blinky.elf
+$ newt run my_blinky_sim
+No download script for BSP hw/bsp/native
+Debugging /workspace/bin/my_blinky_sim/apps/blinky/blinky.elf
+<snip>
+Reading symbols from 
/bin/targets/my_blinky_sim/app/apps/blinky/blinky.elf...done.
+(gdb)
+```
+Type `r` at the `(gdb)` prompt to run the project. You will see an output 
indicating that the hal_gpio pin is toggling between 1 and 0 in a simulated 
blink.
+
+If you natively install the toolchain, you can either use `newt run` or call 
the binary directly. `newt run` is the expected way to call things.
+
+```
+$ ./bin/targets/my_blinky_sim/app/apps/blinky/blinky.elf
 hal_gpio set pin  1 to 0
 ```
 

Reply via email to