[GitHub] ccollins476ad opened a new pull request #141: Initialize and update submodules after checkout.

2018-03-05 Thread GitBox
ccollins476ad opened a new pull request #141: Initialize and update submodules 
after checkout.
URL: https://github.com/apache/mynewt-newt/pull/141
 
 
   Always initialize and update submodules on checkout.  This is necessary for 
repos that contain submodules.  Without this change, such repos can be left in 
a modified "(new commits)" state immediately after switching branches.  If the 
submodules have already been updated, this does not generate any network 
activity.
   
   For example, before this commit, when I try to install version 1.1.0 of 
mcuboot with `newt upgrade`,
   
   ```
   [ccollins@ccollins-mac:~/tmp/myproj3/repos/mcuboot]$ git status
   On branch v1.1.0
   Changes not staged for commit:
 (use "git add ..." to update what will be committed)
 (use "git checkout -- ..." to discard changes in working directory)
   
   modified:   sim/mcuboot-sys/mbedtls (new commits)
   
   no changes added to commit (use "git add" and/or "git commit -a")
   ```
   
   Subsequent update operations will fail due to the local modifications.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] jacobrosenthal closed pull request #838: bsp: puckjs

2018-03-05 Thread GitBox
jacobrosenthal closed pull request #838: bsp: puckjs
URL: https://github.com/apache/mynewt-core/pull/838
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/hw/bsp/puckjs/boot-nrf52xxaa.ld b/hw/bsp/puckjs/boot-nrf52xxaa.ld
new file mode 100755
index 0..d1f1b9978
--- /dev/null
+++ b/hw/bsp/puckjs/boot-nrf52xxaa.ld
@@ -0,0 +1,25 @@
+/* Linker script for Nordic Semiconductor nRF5 devices
+ *
+ * Version: Sourcery G++ 4.5-1
+ * Support: https://support.codesourcery.com/GNUToolchain/
+ *
+ * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions.  No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+MEMORY
+{
+  FLASH (rx) : ORIGIN = 0x, LENGTH = 0x4000
+  RAM (rwx) : ORIGIN = 0x2000, LENGTH = 0x1
+}
+
+/* The bootloader does not contain an image header */
+_imghdr_size = 0x0;
diff --git a/hw/bsp/puckjs/bsp.yml b/hw/bsp/puckjs/bsp.yml
new file mode 100644
index 0..a312fbc77
--- /dev/null
+++ b/hw/bsp/puckjs/bsp.yml
@@ -0,0 +1,64 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+bsp.arch: cortex_m4
+bsp.compiler: compiler/arm-none-eabi-m4
+bsp.linkerscript:
+- "hw/bsp/puckjs/nrf52xxaa.ld"
+- "hw/mcu/nordic/nrf52xxx/nrf52.ld"
+bsp.linkerscript.BOOT_LOADER.OVERWRITE:
+- "hw/bsp/puckjs/boot-nrf52xxaa.ld"
+- "hw/mcu/nordic/nrf52xxx/nrf52.ld"
+bsp.part2linkerscript: "hw/bsp/puckjs/split_puckjs.ld"
+bsp.downloadscript: "hw/bsp/puckjs/puckjs_download.sh"
+bsp.debugscript: "hw/bsp/puckjs/puckjs_debug.sh"
+bsp.downloadscript.WINDOWS.OVERWRITE: "hw/bsp/puckjs/puckjs_download.cmd"
+bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/puckjs/puckjs_debug.cmd"
+
+bsp.flash_map:
+areas:
+# System areas.
+FLASH_AREA_BOOTLOADER:
+device: 0
+offset: 0x
+size: 16kB
+FLASH_AREA_IMAGE_0:
+device: 0
+offset: 0x8000
+size: 232kB
+FLASH_AREA_IMAGE_1:
+device: 0
+offset: 0x00042000
+size: 232kB
+FLASH_AREA_IMAGE_SCRATCH:
+device: 0
+offset: 0x0007c000
+size: 4kB
+
+# User areas.
+FLASH_AREA_REBOOT_LOG:
+user_id: 0
+device: 0
+offset: 0x4000
+size: 16kB
+FLASH_AREA_NFFS:
+user_id: 1
+device: 0
+offset: 0x0007d000
+size: 12kB
diff --git a/hw/bsp/puckjs/include/bsp/boards.h 
b/hw/bsp/puckjs/include/bsp/boards.h
new file mode 100644
index 0..560c31fcc
--- /dev/null
+++ b/hw/bsp/puckjs/include/bsp/boards.h
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+

[GitHub] jacobrosenthal commented on issue #838: bsp: puckjs

2018-03-05 Thread GitBox
jacobrosenthal commented on issue #838: bsp: puckjs
URL: https://github.com/apache/mynewt-core/pull/838#issuecomment-370634681
 
 
   Ah. that snuck in here, Ill pull it out and send that separately. 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-site] branch asf-site updated (7e85b47 -> d1cf80f)

2018-03-05 Thread aditi
This is an automated email from the ASF dual-hosted git repository.

aditi pushed a change to branch asf-site
in repository https://gitbox.apache.org/repos/asf/mynewt-site.git.


from 7e85b47  Merge pull request #407 from runtime-bot/asf-site
 add 7d79dbf  asf-site update Tue Mar  6 01:57:08 UTC 2018
 new d1cf80f  Merge pull request #408 from runtime-bot/asf-site

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 develop/_sources/os/tutorials/segger_rtt.rst.txt   | 109 --
 .../_sources/os/tutorials/segger_sysview.rst.txt   |  96 -
 develop/objects.inv| Bin 17340 -> 17319 bytes
 develop/os/tutorials/segger_rtt.html   | 410 -
 develop/os/tutorials/segger_sysview.html   | 397 
 develop/searchindex.js |   2 +-
 master/sitemap.xml |  38 +-
 sitemap.xml|  38 +-
 v0_9_0/sitemap.xml |  22 +-
 v1_0_0/sitemap.xml |  30 +-
 v1_1_0/sitemap.xml |  32 +-
 v1_2_0/sitemap.xml |  36 +-
 12 files changed, 99 insertions(+),  deletions(-)
 delete mode 100644 develop/_sources/os/tutorials/segger_rtt.rst.txt
 delete mode 100644 develop/_sources/os/tutorials/segger_sysview.rst.txt
 delete mode 100644 develop/os/tutorials/segger_rtt.html
 delete mode 100644 develop/os/tutorials/segger_sysview.html

-- 
To stop receiving notification emails like this one, please contact
ad...@apache.org.


[mynewt-site] 01/01: Merge pull request #408 from runtime-bot/asf-site

2018-03-05 Thread aditi
This is an automated email from the ASF dual-hosted git repository.

aditi pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/mynewt-site.git

commit d1cf80f96737b53d6ea41f2703149248586a133d
Merge: 7e85b47 7d79dbf
Author: aditihilbert 
AuthorDate: Mon Mar 5 17:58:55 2018 -0800

Merge pull request #408 from runtime-bot/asf-site

automated asf-site build

 develop/_sources/os/tutorials/segger_rtt.rst.txt   | 109 --
 .../_sources/os/tutorials/segger_sysview.rst.txt   |  96 -
 develop/objects.inv| Bin 17340 -> 17319 bytes
 develop/os/tutorials/segger_rtt.html   | 410 -
 develop/os/tutorials/segger_sysview.html   | 397 
 develop/searchindex.js |   2 +-
 master/sitemap.xml |  38 +-
 sitemap.xml|  38 +-
 v0_9_0/sitemap.xml |  22 +-
 v1_0_0/sitemap.xml |  30 +-
 v1_1_0/sitemap.xml |  32 +-
 v1_2_0/sitemap.xml |  36 +-
 12 files changed, 99 insertions(+),  deletions(-)

-- 
To stop receiving notification emails like this one, please contact
ad...@apache.org.


[GitHub] aditihilbert closed pull request #825: Deleting Tooling Tutorials from mynewt-core

2018-03-05 Thread GitBox
aditihilbert closed pull request #825: Deleting Tooling Tutorials from 
mynewt-core
URL: https://github.com/apache/mynewt-core/pull/825
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/os/tutorials/segger_rtt.rst b/docs/os/tutorials/segger_rtt.rst
deleted file mode 100644
index 53840dcf3..0
--- a/docs/os/tutorials/segger_rtt.rst
+++ /dev/null
@@ -1,109 +0,0 @@
-SEGGER RTT Console
---
-
-Objective
-~
-
-Sometimes you dont have UART on your board, or you want to use it for
-something else while still having newt logs/shell capability. With
-`SEGGER's RTT `__ capability you
-can swap UART for RTT, which is a very high-speed memory-mapped I/O.
-
-Hardware needed
-~~~
-
-You'll need a SEGGER J-Link programmer in order to use this advanced
-functionality. You might have an external J-Link programmer you're
-already using, or maybe your board has a dedicated J-Link onboard as
-some development kits do. Another possibilty is J-Link OB firmware
-available for some devices like the micro:bit.
-
-Setup the target
-
-
-We'll assume you have an existing project with some kind of
-console/shell like `Blinky with console and shell `__
-that we're switching over to RTT from UART.
-
-**Note:** We have tested RTT with J-Link version V6.14h. We recommend
-that you upgrade your J-Link if you have an earlier version of J-Link
-installed. Earlier versions of J-Link use the BUFFER\_SIZE\_DOWN value
-defined in hw/drivers/rtt/include/rtt/SEGGER\_RTT\_Conf.h for the
-maximum number of input characters. If an input line exceeds the
-BUFFER\_SIZE\_DOWN number of characters, RTT ignores the extra
-characters. The default value is 16 characters. For example, this limit
-causes shell commands with more than 16 characters of input to fail. You
-may set the Mynewt ``RTT_BUFFER_SIZE_DOWN`` syscfg setting in your
-target to increase this value if you do not upgrade your J-Link version.
-
-We can disable uart and enable rtt with the newt target command:
-
-::
-
-newt target amend nrf52_blinky syscfg=CONSOLE_UART=0
-newt target amend nrf52_blinky syscfg=CONSOLE_RTT=1
-
-Run the target executables
-~~
-
-Now 'run' the newt target as you'll need an active debugger process to
-attach to:
-
-::
-
-$ newt run nrf52_blinky 0
-App image succesfully generated: 
~/Downloads/myapp1/bin/targets/nrf52_blinky/app/apps/blinky/blinky.img
-Loading app image into slot 1
-
[~Downloads/myapp1/repos/apache-mynewt-core/hw/bsp/nrf52-thingy/nrf52-thingy_debug.sh
 ~/Downloads/myapp1/repos/apache-mynewt-core/hw/bsp/nrf52-thingy 
~/Downloads/myapp1/bin/targets/nrf52_blinky/app/apps/blinky/blinky]
-Debugging 
~/Downloads/myapp1/bin/targets/nrf52_blinky/app/apps/blinky/blinky.elf
-GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.0.20150604-cvs
-Copyright (C) 2014 Free Software Foundation, Inc.
-License GPLv3+: GNU GPL version 3 or later 

-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".
-Type "show configuration" for configuration details.
-For bug reporting instructions, please see:
-.
-Find the GDB manual and other documentation resources online at:
-.
-For help, type "help".
-Type "apropos word" to search for commands related to "word"...
-Reading symbols from 
~/Downloads/myapp1/bin/targets/nrf52_blinky/app/apps/blinky/blinky.elf...done.
-0x00d8 in ?? ()
-Resetting target
-0x00dc in ?? ()
-(gdb) 
-
-Connect to console
-~~
-
-In a seperate terminal window ``telnet localhost 19021`` and when you
-continue your gdb session you should see your output. If you're not
-familiar with telnet, when you're ready to exit you may by using the
-hotkey ctrl+] then typing quit
-
-::
-
-$ telnet localhost 19021
-Trying ::1...
-telnet: connect to address ::1: Connection refused
-Trying fe80::1...
-telnet: connect to address fe80::1: Connection refused
-Trying 127.0.0.1...
-Connected to localhost.
-Escape character is '^]'.
-SEGGER J-Link V6.14e - Real time terminal output
-SEGGER J-Link EDU V8.0, SN=268006294
-Process: JLinkGDBServer
-
-Then you can interact with the device:
-
-::
-
-stat
-stat
-000262 Must specify a statistic name to dump, possible names are:
-000262  stat
-000262 compat> 
diff --git 

[mynewt-core] 01/01: Merge pull request #825 from ritikakapade/tooling-tutorial

2018-03-05 Thread aditi
This is an automated email from the ASF dual-hosted git repository.

aditi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit b1675821e57b4f5eb73201956cca9c37006a7991
Merge: e587dd4 aa11865
Author: aditihilbert 
AuthorDate: Mon Mar 5 17:42:08 2018 -0800

Merge pull request #825 from ritikakapade/tooling-tutorial

Deleting Tooling Tutorials from mynewt-core

 docs/os/tutorials/segger_rtt.rst | 109 ---
 docs/os/tutorials/segger_sysview.rst |  96 --
 2 files changed, 205 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
ad...@apache.org.


[mynewt-core] branch master updated (e587dd4 -> b167582)

2018-03-05 Thread aditi
This is an automated email from the ASF dual-hosted git repository.

aditi pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from e587dd4  Merge pull request #869 from sdalu/master
 add aa11865  Deleting Tooling Tutorials from mynewt-core
 new b167582  Merge pull request #825 from ritikakapade/tooling-tutorial

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/os/tutorials/segger_rtt.rst | 109 ---
 docs/os/tutorials/segger_sysview.rst |  96 --
 2 files changed, 205 deletions(-)
 delete mode 100644 docs/os/tutorials/segger_rtt.rst
 delete mode 100644 docs/os/tutorials/segger_sysview.rst

-- 
To stop receiving notification emails like this one, please contact
ad...@apache.org.


[mynewt-core] branch master updated (52acffc -> e587dd4)

2018-03-05 Thread wes3
This is an automated email from the ASF dual-hosted git repository.

wes3 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git.


from 52acffc  blecent and blesplit remove set g_dev_addr (#860)
 add b1fd0ae  adding DWM1001-DEV board
 new e587dd4  Merge pull request #869 from sdalu/master

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 hw/bsp/{vbluno52 => dwm1001-dev}/boot-nrf52xxaa.ld |  0
 hw/bsp/{nrf52dk => dwm1001-dev}/bsp.yml| 14 ++--
 .../dwm1001-dev_debug.cmd} |  0
 .../dwm1001-dev_debug.sh}  |  0
 .../dwm1001-dev_download.cmd}  |  0
 .../dwm1001-dev_download.sh}   |  0
 .../dwm1001-dev_no_boot.ld}|  0
 .../{nrf52dk => dwm1001-dev}/include/bsp/boards.h  |  0
 hw/bsp/dwm1001-dev/include/bsp/bsp.h   | 96 ++
 .../include/bsp/cmsis_nvic.h   |  0
 hw/bsp/{vbluno52 => dwm1001-dev}/nrf52xxaa.ld  |  0
 hw/bsp/{rb-nano2 => dwm1001-dev}/pkg.yml   |  7 +-
 .../split-dwm1001-dev.ld}  |  0
 .../src/arch/cortex_m4/gcc_startup_nrf52.s |  0
 .../src/arch/cortex_m4/gcc_startup_nrf52_split.s   |  0
 hw/bsp/{nrf52dk => dwm1001-dev}/src/hal_bsp.c  | 33 ++--
 hw/bsp/{vbluno52 => dwm1001-dev}/src/sbrk.c|  0
 hw/bsp/{ruuvi_tag_revb2 => dwm1001-dev}/syscfg.yml | 62 +++---
 18 files changed, 163 insertions(+), 49 deletions(-)
 copy hw/bsp/{vbluno52 => dwm1001-dev}/boot-nrf52xxaa.ld (100%)
 copy hw/bsp/{nrf52dk => dwm1001-dev}/bsp.yml (79%)
 copy hw/bsp/{vbluno52/vbluno52_download.cmd => 
dwm1001-dev/dwm1001-dev_debug.cmd} (100%)
 copy hw/bsp/{telee02/telee02_debug.sh => dwm1001-dev/dwm1001-dev_debug.sh} 
(100%)
 copy hw/bsp/{vbluno52/vbluno52_download.cmd => 
dwm1001-dev/dwm1001-dev_download.cmd} (100%)
 copy hw/bsp/{telee02/telee02_download.sh => 
dwm1001-dev/dwm1001-dev_download.sh} (100%)
 copy hw/bsp/{vbluno52/vbluno52_no_boot.ld => 
dwm1001-dev/dwm1001-dev_no_boot.ld} (100%)
 copy hw/bsp/{nrf52dk => dwm1001-dev}/include/bsp/boards.h (100%)
 create mode 100644 hw/bsp/dwm1001-dev/include/bsp/bsp.h
 copy hw/bsp/{vbluno52 => dwm1001-dev}/include/bsp/cmsis_nvic.h (100%)
 copy hw/bsp/{vbluno52 => dwm1001-dev}/nrf52xxaa.ld (100%)
 copy hw/bsp/{rb-nano2 => dwm1001-dev}/pkg.yml (97%)
 copy hw/bsp/{vbluno52/split-vbluno52.ld => dwm1001-dev/split-dwm1001-dev.ld} 
(100%)
 copy hw/bsp/{vbluno52 => dwm1001-dev}/src/arch/cortex_m4/gcc_startup_nrf52.s 
(100%)
 copy hw/bsp/{vbluno52 => 
dwm1001-dev}/src/arch/cortex_m4/gcc_startup_nrf52_split.s (100%)
 copy hw/bsp/{nrf52dk => dwm1001-dev}/src/hal_bsp.c (89%)
 copy hw/bsp/{vbluno52 => dwm1001-dev}/src/sbrk.c (100%)
 copy hw/bsp/{ruuvi_tag_revb2 => dwm1001-dev}/syscfg.yml (77%)

-- 
To stop receiving notification emails like this one, please contact
w...@apache.org.


[GitHub] wes3 closed pull request #869: hw/bsp: DWM1001-DEV board

2018-03-05 Thread GitBox
wes3 closed pull request #869: hw/bsp: DWM1001-DEV board
URL: https://github.com/apache/mynewt-core/pull/869
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/hw/bsp/dwm1001-dev/boot-nrf52xxaa.ld 
b/hw/bsp/dwm1001-dev/boot-nrf52xxaa.ld
new file mode 100755
index 0..d1f1b9978
--- /dev/null
+++ b/hw/bsp/dwm1001-dev/boot-nrf52xxaa.ld
@@ -0,0 +1,25 @@
+/* Linker script for Nordic Semiconductor nRF5 devices
+ *
+ * Version: Sourcery G++ 4.5-1
+ * Support: https://support.codesourcery.com/GNUToolchain/
+ *
+ * Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions.  No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+MEMORY
+{
+  FLASH (rx) : ORIGIN = 0x, LENGTH = 0x4000
+  RAM (rwx) : ORIGIN = 0x2000, LENGTH = 0x1
+}
+
+/* The bootloader does not contain an image header */
+_imghdr_size = 0x0;
diff --git a/hw/bsp/dwm1001-dev/bsp.yml b/hw/bsp/dwm1001-dev/bsp.yml
new file mode 100644
index 0..989f0df8a
--- /dev/null
+++ b/hw/bsp/dwm1001-dev/bsp.yml
@@ -0,0 +1,64 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+bsp.arch: cortex_m4
+bsp.compiler: compiler/arm-none-eabi-m4
+bsp.linkerscript:
+- "hw/bsp/dwm1001-dev/nrf52xxaa.ld"
+- "hw/mcu/nordic/nrf52xxx/nrf52.ld"
+bsp.linkerscript.BOOT_LOADER.OVERWRITE:
+- "hw/bsp/dwm1001-dev/boot-nrf52xxaa.ld"
+- "hw/mcu/nordic/nrf52xxx/nrf52.ld"
+bsp.part2linkerscript: "hw/bsp/dwm1001-dev/split-dwm1001-dev.ld"
+bsp.downloadscript: "hw/bsp/dwm1001-dev/dwm1001-dev_download.sh"
+bsp.debugscript: "hw/bsp/dwm1001-dev/dwm1001-dev_debug.sh"
+bsp.downloadscript.WINDOWS.OVERWRITE: 
"hw/bsp/dwm1001-dev/dwm1001-dev_download.cmd"
+bsp.debugscript.WINDOWS.OVERWRITE: "hw/bsp/dwm1001-dev/dwm1001-dev_debug.cmd"
+
+bsp.flash_map:
+areas:
+# System areas.
+FLASH_AREA_BOOTLOADER:
+device: 0
+offset: 0x
+size: 16kB
+FLASH_AREA_IMAGE_0:
+device: 0
+offset: 0x8000
+size: 232kB
+FLASH_AREA_IMAGE_1:
+device: 0
+offset: 0x00042000
+size: 232kB
+FLASH_AREA_IMAGE_SCRATCH:
+device: 0
+offset: 0x0007c000
+size: 4kB
+
+# User areas.
+FLASH_AREA_REBOOT_LOG:
+user_id: 0
+device: 0
+offset: 0x4000
+size: 16kB
+FLASH_AREA_NFFS:
+user_id: 1
+device: 0
+offset: 0x0007d000
+size: 12kB
diff --git a/hw/bsp/dwm1001-dev/dwm1001-dev_debug.cmd 
b/hw/bsp/dwm1001-dev/dwm1001-dev_debug.cmd
new file mode 100755
index 0..96f0b2605
--- /dev/null
+++ b/hw/bsp/dwm1001-dev/dwm1001-dev_debug.cmd
@@ -0,0 +1,22 @@
+@rem
+@rem Licensed to the Apache Software Foundation (ASF) under one
+@rem or more contributor license agreements.  See the NOTICE file
+@rem distributed with this work for additional information
+@rem regarding copyright ownership.  The ASF licenses this file
+@rem to you under the Apache License, Version 2.0 (the
+@rem "License"); you may not use this file except in compliance
+@rem with the License.  You may obtain a copy of the License at
+@rem
+@rem  http://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing,
+@rem software distributed under the License is distributed on an
+@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@rem KIND, 

[mynewt-core] 01/01: Merge pull request #869 from sdalu/master

2018-03-05 Thread wes3
This is an automated email from the ASF dual-hosted git repository.

wes3 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit e587dd458afe63aa5dbdc80215a905d487cb64a7
Merge: 52acffc b1fd0ae
Author: wes3 
AuthorDate: Mon Mar 5 15:44:34 2018 -0800

Merge pull request #869 from sdalu/master

hw/bsp: DWM1001-DEV board

 hw/bsp/dwm1001-dev/boot-nrf52xxaa.ld   |  25 ++
 hw/bsp/dwm1001-dev/bsp.yml |  64 
 hw/bsp/dwm1001-dev/dwm1001-dev_debug.cmd   |  22 ++
 hw/bsp/dwm1001-dev/dwm1001-dev_debug.sh|  46 +++
 hw/bsp/dwm1001-dev/dwm1001-dev_download.cmd|  22 ++
 hw/bsp/dwm1001-dev/dwm1001-dev_download.sh |  40 +++
 hw/bsp/dwm1001-dev/dwm1001-dev_no_boot.ld  | 191 
 hw/bsp/dwm1001-dev/include/bsp/boards.h|  19 ++
 hw/bsp/dwm1001-dev/include/bsp/bsp.h   |  96 ++
 hw/bsp/dwm1001-dev/include/bsp/cmsis_nvic.h|  29 ++
 hw/bsp/dwm1001-dev/nrf52xxaa.ld|  25 ++
 hw/bsp/dwm1001-dev/pkg.yml | 133 +
 hw/bsp/dwm1001-dev/split-dwm1001-dev.ld| 208 +
 .../src/arch/cortex_m4/gcc_startup_nrf52.s | 301 +++
 .../src/arch/cortex_m4/gcc_startup_nrf52_split.s   | 166 +++
 hw/bsp/dwm1001-dev/src/hal_bsp.c   | 324 +
 hw/bsp/dwm1001-dev/src/sbrk.c  |  59 
 hw/bsp/dwm1001-dev/syscfg.yml  | 132 +
 18 files changed, 1902 insertions(+)

-- 
To stop receiving notification emails like this one, please contact
w...@apache.org.


[GitHub] jacobrosenthal closed issue #827: blecent and blesplit still use 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a and BLE_OWN_ADDR_PUBLIC

2018-03-05 Thread GitBox
jacobrosenthal closed issue #827: blecent and blesplit still use 0x0a, 0x0a, 
0x0a, 0x0a, 0x0a, 0x0a and BLE_OWN_ADDR_PUBLIC
URL: https://github.com/apache/mynewt-core/issues/827
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] jacobrosenthal closed pull request #860: blecent and blesplit remove set g_dev_addr

2018-03-05 Thread GitBox
jacobrosenthal closed pull request #860: blecent and blesplit remove set 
g_dev_addr
URL: https://github.com/apache/mynewt-core/pull/860
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/apps/blecent/pkg.yml b/apps/blecent/pkg.yml
index 7a7f3cc36..29dae6394 100644
--- a/apps/blecent/pkg.yml
+++ b/apps/blecent/pkg.yml
@@ -26,6 +26,7 @@ pkg.deps:
 - kernel/os 
 - net/nimble/controller
 - net/nimble/host
+- net/nimble/host/util
 - net/nimble/host/services/gap
 - net/nimble/host/services/gatt
 - net/nimble/host/store/ram
diff --git a/apps/blecent/src/main.c b/apps/blecent/src/main.c
index 18849bee8..0516de416 100755
--- a/apps/blecent/src/main.c
+++ b/apps/blecent/src/main.c
@@ -28,6 +28,7 @@
 #include "nimble/ble.h"
 #include "controller/ble_ll.h"
 #include "host/ble_hs.h"
+#include "host/util/util.h"
 
 /* RAM HCI transport. */
 #include "transport/ram/ble_hci_ram.h"
@@ -223,9 +224,17 @@ blecent_on_disc_complete(const struct peer *peer, int 
status, void *arg)
 static void
 blecent_scan(void)
 {
+uint8_t own_addr_type;
 struct ble_gap_disc_params disc_params;
 int rc;
 
+/* Figure out address to use while advertising (no privacy for now) */
+rc = ble_hs_id_infer_auto(0, _addr_type);
+if (rc != 0) {
+BLECENT_LOG(ERROR, "error determining address type; rc=%d\n", rc);
+return;
+}
+
 /* Tell the controller to filter duplicates; we don't want to process
  * repeated advertisements from the same device.
  */
@@ -243,7 +252,7 @@ blecent_scan(void)
 disc_params.filter_policy = 0;
 disc_params.limited = 0;
 
-rc = ble_gap_disc(BLE_OWN_ADDR_PUBLIC, BLE_HS_FOREVER, _params,
+rc = ble_gap_disc(own_addr_type, BLE_HS_FOREVER, _params,
   blecent_gap_event, NULL);
 if (rc != 0) {
 BLECENT_LOG(ERROR, "Error initiating GAP discovery procedure; rc=%d\n",
@@ -470,6 +479,12 @@ blecent_on_reset(int reason)
 static void
 blecent_on_sync(void)
 {
+int rc;
+
+/* Make sure we have proper identity address set (public preferred) */
+rc = ble_hs_util_ensure_addr(0);
+assert(rc == 0);
+
 /* Begin scanning for a peripheral to connect to. */
 blecent_scan();
 }
@@ -486,9 +501,6 @@ main(void)
 {
 int rc;
 
-/* Set initial BLE device address. */
-memcpy(g_dev_addr, (uint8_t[6]){0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a}, 6);
-
 /* Initialize OS */
 sysinit();
 
diff --git a/apps/blesplit/pkg.yml b/apps/blesplit/pkg.yml
index c72f443fc..f82c59f99 100644
--- a/apps/blesplit/pkg.yml
+++ b/apps/blesplit/pkg.yml
@@ -32,6 +32,7 @@ pkg.deps:
 - mgmt/newtmgr
 - mgmt/newtmgr/transport/ble
 - net/nimble/host
+- net/nimble/host/util
 - net/nimble/host/services/ans
 - net/nimble/host/services/gap
 - net/nimble/host/services/gatt
diff --git a/apps/blesplit/src/main.c b/apps/blesplit/src/main.c
index b757c55fc..ce0500b23 100755
--- a/apps/blesplit/src/main.c
+++ b/apps/blesplit/src/main.c
@@ -34,6 +34,7 @@
 /* BLE */
 #include "nimble/ble.h"
 #include "host/ble_hs.h"
+#include "host/util/util.h"
 #include "services/gap/ble_svc_gap.h"
 
 /* Application-specified header. */
@@ -79,11 +80,19 @@ blesplit_print_conn_desc(struct ble_gap_conn_desc *desc)
 static void
 blesplit_advertise(void)
 {
+uint8_t own_addr_type;
 struct ble_gap_adv_params adv_params;
 struct ble_hs_adv_fields fields;
 const char *name;
 int rc;
 
+/* Figure out address to use while advertising (no privacy for now) */
+rc = ble_hs_id_infer_auto(0, _addr_type);
+if (rc != 0) {
+BLESPLIT_LOG(ERROR, "error determining address type; rc=%d\n", rc);
+return;
+}
+
 /**
  *  Set the advertisement data included in our advertisements:
  * o Flags (indicates advertisement type and other general info).
@@ -129,7 +138,7 @@ blesplit_advertise(void)
 memset(_params, 0, sizeof adv_params);
 adv_params.conn_mode = BLE_GAP_CONN_MODE_UND;
 adv_params.disc_mode = BLE_GAP_DISC_MODE_GEN;
-rc = ble_gap_adv_start(BLE_OWN_ADDR_PUBLIC, NULL, BLE_HS_FOREVER,
+rc = ble_gap_adv_start(own_addr_type, NULL, BLE_HS_FOREVER,
_params, blesplit_gap_event, NULL);
 if (rc != 0) {
 BLESPLIT_LOG(ERROR, "error enabling advertisement; rc=%d\n", rc);
@@ -261,6 +270,12 @@ blesplit_on_reset(int reason)
 static void
 blesplit_on_sync(void)
 {
+int rc;
+
+/* Make sure we have proper identity address set (public preferred) */
+rc = ble_hs_util_ensure_addr(0);
+assert(rc == 0);
+
 /* Begin advertising. */
 blesplit_advertise();
 }
@@ -281,9 +296,6 @@ main(void)
 /* Initialize OS */
 sysinit();
 
-/* Set initial BLE device address. */
-

[mynewt-newtmgr] 01/01: Merge pull request #70 from ccollins476ad/dbl-shutdown

2018-03-05 Thread ccollins
This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git

commit 32fc865bdf4c3230a933e311754f7fa6c9bffce4
Merge: f24b145 083b2fc
Author: ccollins476ad 
AuthorDate: Mon Mar 5 11:42:33 2018 -0800

Merge pull request #70 from ccollins476ad/dbl-shutdown

BLE - Fix "Attempt to use closed session" error

 nmxact/nmble/naked_sesn.go | 27 ---
 1 file changed, 16 insertions(+), 11 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
ccoll...@apache.org.


[GitHub] ccollins476ad closed pull request #70: BLE - Fix "Attempt to use closed session" error

2018-03-05 Thread GitBox
ccollins476ad closed pull request #70: BLE - Fix "Attempt to use closed 
session" error
URL: https://github.com/apache/mynewt-newtmgr/pull/70
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/nmxact/nmble/naked_sesn.go b/nmxact/nmble/naked_sesn.go
index 0391ce6..a134f0cd 100644
--- a/nmxact/nmble/naked_sesn.go
+++ b/nmxact/nmble/naked_sesn.go
@@ -43,6 +43,8 @@ const (
 
// Open in progress.
NS_STATE_OPENING_ACTIVE
+
+   // After a failed open; additional retries remain.
NS_STATE_OPENING_IDLE
 
// Open complete.
@@ -126,7 +128,7 @@ func (s *NakedSesn) shutdown(cause error) error {
s.mtx.Lock()
defer s.mtx.Unlock()
 
-   if s.shuttingDown || s.state == NS_STATE_CLOSED {
+   if s.shuttingDown || s.state == NS_STATE_CLOSED || s.state == 
NS_STATE_OPENING_IDLE {
return nmxutil.NewSesnClosedError(
"Attempt to close an already-closed session")
}
@@ -166,13 +168,15 @@ func (s *NakedSesn) shutdown(cause error) error {
 
// Call the on-close callback if the session was fully open.
s.mtx.Lock()
-   opening := s.state == NS_STATE_OPENING_ACTIVE || s.state == 
NS_STATE_OPENING_IDLE
-   if !opening {
+   fullyOpen := s.state == NS_STATE_OPEN
+   if fullyOpen {
s.state = NS_STATE_CLOSED
+   } else {
+   s.state = NS_STATE_OPENING_IDLE
}
s.mtx.Unlock()
 
-   if !opening && s.cfg.OnCloseCb != nil {
+   if fullyOpen && s.cfg.OnCloseCb != nil {
s.cfg.OnCloseCb(s, cause)
}
 
@@ -204,19 +208,13 @@ func (s *NakedSesn) Open() error {
"Attempt to open an already-open BLE session")
}
 
-   s.state = NS_STATE_OPENING_IDLE
+   s.state = NS_STATE_OPENING_ACTIVE
return nil
}
 
if err := initiate(); err != nil {
return err
}
-   defer func() {
-   s.mtx.Lock()
-   defer s.mtx.Unlock()
-
-   s.state = NS_STATE_CLOSED
-   }()
 
var err error
for i := 0; i < s.cfg.Ble.Central.ConnTries; i++ {
@@ -233,6 +231,9 @@ func (s *NakedSesn) Open() error {
}
 
if err != nil {
+   s.mtx.Lock()
+   s.state = NS_STATE_CLOSED
+   s.mtx.Unlock()
return err
}
 
@@ -503,6 +504,10 @@ func (s *NakedSesn) SetOobKey(key []byte) {
 }
 
 func (s *NakedSesn) openOnce() (bool, error) {
+   s.mtx.Lock()
+   s.state = NS_STATE_OPENING_ACTIVE
+   s.mtx.Unlock()
+
if err := s.init(); err != nil {
return false, err
}


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[mynewt-newtmgr] branch master updated (f24b145 -> 32fc865)

2018-03-05 Thread ccollins
This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git.


from f24b145  Merge pull request #68 from ccollins476ad/rm-newtmgr-string
 add 083b2fc  BLE - Fix "Attempt to use closed session" error
 new 32fc865  Merge pull request #70 from ccollins476ad/dbl-shutdown

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 nmxact/nmble/naked_sesn.go | 27 ---
 1 file changed, 16 insertions(+), 11 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
ccoll...@apache.org.