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/06/27 22:01:28 UTC

[1/3] incubator-mynewt-site git commit: Added missing steps

Repository: incubator-mynewt-site
Updated Branches:
  refs/heads/master e6ed6b9a1 -> f1303f5ba


Added missing steps

Updated the tutorial with missing steps and added some clarity.


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

Branch: refs/heads/master
Commit: 0724d0333c8f2c297093d76ec70f58f8c8842720
Parents: 01ae150
Author: David G. Simmons <sa...@mac.com>
Authored: Mon Jun 27 16:35:12 2016 -0400
Committer: David G. Simmons <sa...@mac.com>
Committed: Mon Jun 27 16:35:12 2016 -0400

----------------------------------------------------------------------
 docs/os/tutorials/bletiny_project.md | 56 +++++++++++++++++++++++++++++--
 1 file changed, 53 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/0724d033/docs/os/tutorials/bletiny_project.md
----------------------------------------------------------------------
diff --git a/docs/os/tutorials/bletiny_project.md b/docs/os/tutorials/bletiny_project.md
index 98ea84d..495a8b3 100644
--- a/docs/os/tutorials/bletiny_project.md
+++ b/docs/os/tutorials/bletiny_project.md
@@ -13,6 +13,7 @@ newt command is in your system path.
 * You must have Internet connectivity to fetch remote Mynewt components.
 * You must [install the compiler tools](../get_started/native_tools.md) to 
 support native compiling to build the project this tutorial creates.  
+* You must install the [Segger JLINK package]( https://www.segger.com/jlink-software.html) to load your project on the board.
 * You have a board with BLE radio that is supported by Mynewt. We will use an nRF52 Dev board in this tutorial.
 * Cable to establish a serial USB connection between the board and the laptop
 
@@ -58,7 +59,7 @@ targets/nrf52_boot
 
 <br>
 
-Define the targets further. Note that you are using the example app `bletiny` for the application target. Set the bsp correctly (nrf52pdk or nrf52dk depending on whether the board is the preview kit or the dev kit, respectively). 
+Define the targets further. Note that you are using the example app `bletiny` for the application target. Set the bsp correctly (nrf52pdk or nrf52dk depending on whether the board is the preview kit or the dev kit, respectively. Look on the top of your board, if you see PCA100040, use the nrf52dk version, otherwide use the nrf52pdk version). 
 
 ```
 $ newt target set myble bsp=@apache-mynewt-core/hw/bsp/nrf52pdk
@@ -71,7 +72,7 @@ $ newt target set myble cflags=-DSTATS_NAME_ENABLE
 Target targets/myble successfully set pkg.cflags to DSTATS_NAME_ENABLE
 ```
 
-Use the same `newt target set` command to set the following definition for the bootloader target.
+Use the same `newt target set` command to set the following definition for the bootloader target -- again, make sure you use the correct value for the bsp based on which version of the board you have..
 
 ```
 targets/nrf52_boot
@@ -79,6 +80,7 @@ targets/nrf52_boot
     bsp=@apache-mynewt-core/hw/bsp/nrf52pdk
     build_profile=optimized
 ```
+
 You should have the following targets by the end of this step.
 
 ```
@@ -133,6 +135,7 @@ Build manifest: ./bin/makerbeacon/apps/bletiny/manifest.json
 Make sure the USB connector is in place and the power LED on the board is lit. Use the Power ON/OFF switch to reset the board after loading the image.
 
 ```
+$ newt load nrf52_boot
 $ newt load myble
 ```
 
@@ -140,7 +143,7 @@ $ newt load myble
 
 ### Establish serial connection
 
-You will now look for some BLE related stats over a serial connection and see the radio is actually working. The picture below shows a serial connector set up.
+You will now look for some BLE related stats over a serial connection and see the radio is actually working. The picture below shows a serial connector set up. Pin PA.08 is RX and pin PA.06 is TX. Make sure TX from the NRF52 goes to RX on your Serial board, and that RX on the NRF52 goes to TX on your Serial Board.
 
 ![nRF52](pics/nrf52.JPG "nRF52 Dev Board with a Serial Connection set up")
 
@@ -232,3 +235,50 @@ GAP procedure initiated: discovery; disc_mode=2 filter_policyLE advertising repo
 5301327:[ts=5301327ssb, mod=64 level=2]     svc_data_uuid16=
 <snip>
 ```
+
+<br>
+
+If you're still not seeing any output from the device, try running the debugger and see if you are seeing the program execute properly. 
+
+<br>
+
+```
+$ newt debug myble
+Debugging ./bin/myble/apps/bletiny/bletiny.elf
+GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140731-cvs
+Copyright (C) 2013 Free Software Foundation, Inc.
+
+License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
+and "show warranty" for details.
+This GDB was configured as "--host=x86_64-apple-darwin10 --target=arm-none-eabi".
+For bug reporting instructions, please see:
+<http://www.gnu.org/software/gdb/bugs/>...
+Reading symbols from ./bin/myble/apps/bletiny/bletiny.elf...done.
+0x00002f08 in ?? ()
+(gdb) monitor reset
+Resetting target
+(gdb) c
+Continuing.
+^C
+Program received signal SIGTRAP, Trace/breakpoint trap.
+os_tick_idle (ticks=1000) at hal_os_tick.c:117
+117	    if (ticks > 0) {
+(gdb) p g_os_time
+$1 = 37991
+(gdb) c
+Continuing.
+^C
+Program received signal SIGTRAP, Trace/breakpoint trap.
+os_tick_idle (ticks=1000) at hal_os_tick.c:117
+117	    if (ticks > 0) {
+(gdb) p g_os_time
+$2 = 51888
+(gdb) c
+Continuing.
+```
+
+<br>
+
+You should see the g_os_time advancing as above, as each os time tick is 1ms. If the system ticks aren't advancing, then nothing's actually running.
\ No newline at end of file


[3/3] incubator-mynewt-site git commit: Merge branch 'master' of https://github.com/davidgs/incubator-mynewt-site

Posted by ad...@apache.org.
Merge branch 'master' of https://github.com/davidgs/incubator-mynewt-site

Added missing steps for uploading bootloader and debugging bletiny and air-quality sensor tutorials. Pull request #96"


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

Branch: refs/heads/master
Commit: f1303f5baa5b3112bce43e0ba6aed625f3408fa6
Parents: e6ed6b9 5cbd258
Author: aditihilbert <ad...@runtime.io>
Authored: Mon Jun 27 14:59:36 2016 -0700
Committer: aditihilbert <ad...@runtime.io>
Committed: Mon Jun 27 14:59:36 2016 -0700

----------------------------------------------------------------------
 docs/os/tutorials/air_quality_sensor.md |  5 ++-
 docs/os/tutorials/bletiny_project.md    | 56 ++++++++++++++++++++++++++--
 2 files changed, 57 insertions(+), 4 deletions(-)
----------------------------------------------------------------------



[2/3] incubator-mynewt-site git commit: Additions and fixes

Posted by ad...@apache.org.
Additions and fixes

Cleared up a few things, like pin #s and such.


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

Branch: refs/heads/master
Commit: 5cbd258a0f96a82fd8f7396cdbb49896fddf122e
Parents: 0724d03
Author: David G. Simmons <sa...@mac.com>
Authored: Mon Jun 27 16:44:01 2016 -0400
Committer: David G. Simmons <sa...@mac.com>
Committed: Mon Jun 27 16:44:01 2016 -0400

----------------------------------------------------------------------
 docs/os/tutorials/air_quality_sensor.md | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/5cbd258a/docs/os/tutorials/air_quality_sensor.md
----------------------------------------------------------------------
diff --git a/docs/os/tutorials/air_quality_sensor.md b/docs/os/tutorials/air_quality_sensor.md
index 655be7a..e68ecd0 100644
--- a/docs/os/tutorials/air_quality_sensor.md
+++ b/docs/os/tutorials/air_quality_sensor.md
@@ -95,7 +95,8 @@ newt build boot_f3
 ....
 Linking boot.elf
 App successfully built: /Users/user/src/air_quality/bin/boot_f3/apps/boot/boot.elf
-[user@IsMyLaptop:~/src/air_quality]$ newt load boot_f3
+[user@IsMyLaptop:~/src/air_quality]
+$ newt load boot_f3
 ```
 
 Next you must download the targets to board, and see that the LED actually blinks. You plug in the STM32F3 discovery board to your laptop, and say:
@@ -382,6 +383,8 @@ senseair_shell_func(int argc, char **argv)
 
 Then you build this, download to target, and start minicom on your console port.
 
+You'll need to wire up your Board to a Serial converter first. On the STM32F3-Discovery Board pin PA9 is TX and pin PA10 is RX so wire PA9 to RX on your serial board, and PA10 to TX on your serial board.
+
 ```no-highlight
     [user@IsMyLaptop:~]$ minicom -D /dev/tty.usbserial-AH02MIE2