<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><description>This tutorial shows you how to get started with RIOT OS on nRF52832 using IPv6
over BLE communication.
To fully understand this tutorial you will need to have minimum knowledge of
Linux environment and shell. An nRF52 Development Kit and Bluetooth</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Tue, 28 Nov 2017 11:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>mboungou</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Robert H.
Where is this file &amp;quot;Makefile.include.cortexm_common&amp;quot;?
In the RIOT directory?&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Wed, 28 Sep 2016 21:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Jeff B</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I found part of the reason why a &amp;quot;nrfjprog --family NRF52 --recover&amp;quot; is needed when switching from helloworld example to microcoap_server one:&lt;/p&gt;
&lt;p&gt;microcoap_server needs softdevice.hex to be flashed before. Softdevice.hex is checking the content of address 0x2000: if 0xFFFFFFFF is present, then it jumps to the application(microcoap_server in our case). If different, it will stay in an infinite loop at 0x438.&lt;/p&gt;
&lt;p&gt;Once helloworld example is flashed, the value at 0x2000 is different than 0xFFFFFFFF.
The flashing procedure of microcoap_server is not ensuring that the content at this address is erased.
Doing the &amp;quot;nrfjprog --family NRF52 --recover&amp;quot; ensure the value at this address is reset to 0xFFFFFFFF.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why softdevice.hex is checking this, not sure if anyone knows here.&lt;/p&gt;
&lt;p&gt;Also, I think the microcoap_server flashing should be fixed to ensure this is done.
I can do it manually but I have not found a good way of doing it cleanly yet using the JLINK_PRE_FLASH variable for instance: I need to add an erase in the burn.seg file before doing the loadfile for the softdevice.hex.&lt;/p&gt;
&lt;p&gt;Anyone having a suggestion ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Sun, 04 Sep 2016 15:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Al Bundy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;What might be wrong if after following all the steps I am not able to ping routable address but device responses to local link address pings?&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Fri, 26 Aug 2016 17:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Robert H.</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I have spent some time debugging this and trying to get it work. The issue was in the build process. In the current  RIOT-OS Top of Tree, the variable &amp;quot;LINKER_SCRIPT&amp;quot; is not being used. Here&amp;#39;s the git diff that will allow you to get the example to function:&lt;/p&gt;
&lt;pre&gt;
diff --git a/cpu/Makefile.include.cortexm_common b/cpu/Makefile.include.cortexm_common
index 74b2327..be16d02 100644
--- a/cpu/Makefile.include.cortexm_common
+++ b/cpu/Makefile.include.cortexm_common
@@ -16,7 +16,12 @@ export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
 
 export ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG)
 export LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts -L$(RIOTCPU)/cortexm_common/ldscripts
-export LINKFLAGS += -T$(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL).ld -Wl,--fatal-warnings
+ifneq (,$(LINKER_SCRIPT))
+export LINKFLAGS += -T$(LINKER_SCRIPT)
+else
+export LINKFLAGS += -T$(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL).ld 
+endif
+export LINKFLAGS += -Wl,--fatal-warnings
 export LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT) -static -lgcc -nostartfiles
 export LINKFLAGS += -Wl,--gc-sections
&lt;/pre&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Mon, 01 Aug 2016 23:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Collin Mast</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;m having a similar issue. The hello world example worked fine, but when I flash the microap_server example, it fails to print anything to terminal 1. If I use JLinkExe to halt execution and try to single step, I get J-Link&amp;gt;s 0000041C: FE E7 B #-0x04. Using the single step command again will provide the same output. It seems like it may be a hardfault.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Thu, 21 Jul 2016 14:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Al Bundy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I did like you said and I get the following error:&lt;/p&gt;
&lt;pre&gt;arm-none-eabi-gcc: error: /home/mkru/tmp/test/RIOT/examples/hello-world/bin/nrf52dk/nordic_ble_softdevice.a: No such file or directory
&lt;/pre&gt;
&lt;p&gt;What is funny I do not get this error when compiling microcoap_server example. What I have realized is that there is no USEMODULE += nordic_ble_softdevice in Makefile for microcoap_server example.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Wed, 20 Jul 2016 14:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>kaspar</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;@albundy hmm. I&amp;#39;m nearly out of ideas.&lt;/p&gt;
&lt;p&gt;You could try one more thing:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;add USEMODULE += nordic_ble_softdevice to the makefile in examples/hello-world&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;nrfjprog --family NRF52 --recover&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;run BOARD=nrf52dk PORT=/dev/ttyACM0 make term&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;try the hello-world example again: BOARD=nrf52dk PORT=/dev/ttyACM0 make clean all flash&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That would compile hello-world, but include the SoftDevice.&lt;/p&gt;
&lt;p&gt;If that still doesn&amp;#39;t work, please open a ticket at &lt;a rel="nofollow" target="_blank" href="https://github.com/RIOT-OS/RIOT."&gt;github.com/.../RIOT.&lt;/a&gt;&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Tue, 19 Jul 2016 10:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Al Bundy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Ok here is what I have done and results:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Opened terminal #1, executed BOARD=nrf52dk PORT=/dev/ttyACM0 make term. The term has opened successfully.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Opened terminal #2 executedd BOARD=nrf52dk PORT=/dev/ttyACM0 make clean all flash in hello-world example. After that, expected output has appeared on term in terminal #1&lt;/p&gt;
&lt;p&gt;2016-07-19 12:13:44,460 - INFO # main(): This is RIOT! (Version: 2016.07-devel-451-g29fd3-K53SV)
2016-07-19 12:13:44,464 - INFO # Hello World!
2016-07-19 12:13:44,466 - INFO # You are running RIOT on a(n) nrf52dk board.
2016-07-19 12:13:44,469 - INFO # This board features a(n) nrf52 MCU.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run nrfjprog --family NRF52 --recover with success.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Changed directory to microcoap_server run command BOARD=nrf52dk PORT=/dev/ttyACM0 make clean all flash -j4. Unfortunately nothing has appeared on term in terminal #1.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Tue, 19 Jul 2016 09:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>kaspar</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;@albundy Hmm.&lt;/p&gt;
&lt;p&gt;It is possible that something goes wrong before pyterm has opened the serial port.&lt;/p&gt;
&lt;p&gt;Could you try running&lt;/p&gt;
&lt;pre&gt;BOARD=nrf52dk PORT=/dev/ttyACM0 make term
&lt;/pre&gt;
&lt;p&gt;in one terminal, then, in another terminal, confirm that&lt;/p&gt;
&lt;pre&gt;BOARD=nrf52dk PORT=/dev/ttyACM0 make clean all flash
&lt;/pre&gt;
&lt;p&gt;(without term) within examples/hello-world does print the hello world output,
then run again the nrfjprog recover, then flash again the microcoap_server application?&lt;/p&gt;
&lt;p&gt;Hint: you can add, e.g., &amp;quot;-j4&amp;quot; to the make commands to speed up compilation on multi-core machines.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Tue, 19 Jul 2016 09:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Al Bundy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I have executed ./nrfjprog --family NRF52 --recover command with success. Then I have run BOARD=nrf52dk PORT=/dev/ttyACM0 make clean all flash term -j4 in microcoap_server directory but these did not change anything. The only thing I still get in pyterm is:&lt;/p&gt;
&lt;pre&gt;2016-07-19 10:14:31,760 - INFO # Connect to serial port /dev/ttyACM0 

Welcome to pyterm! 

Type &amp;#39;/exit&amp;#39; to exit.
&lt;/pre&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Mon, 18 Jul 2016 16:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>kaspar</dc:creator><slash:comments>0</slash:comments><description>&lt;blockquote&gt;
&lt;p&gt;What kind of dongle did you use?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I&amp;#39;m using the cheapest BLE dongle I could find on ebay (&amp;lt;3€). I&amp;#39;m afraid I can&amp;#39;t help with your PCA10031 dongle. Are it&amp;#39;s modules loaded?&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Mon, 18 Jul 2016 16:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>kaspar</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;@Albundy: could you try using&lt;/p&gt;
&lt;pre&gt;nrfjprog --recover
&lt;/pre&gt;
&lt;p&gt;and then re-flash?
nrfjprog is available in the nordic downloads. AFAIR it needs another parameter for the nrf52.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Mon, 18 Jul 2016 09:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Al Bundy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;OK, I have tried with current master but I have some problems. (hello-world example works)&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;After compilation examples/microcoap_server I get only&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;Welcome to pyterm!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Type &amp;#39;/exit&amp;#39; to exit.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There are no other messages like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;2016-07-12 20:12:49,151 - INFO #            Long HWaddr: 02:4c:86:ff:fe:12:d1:0f&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start="2"&gt;
&lt;li&gt;You have written:&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;Now open another terminal in order to set up the bluetooth connection.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Then make sure your bluetooth dongle has been recognized:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;What kind of dongle did you use? Do you have built-in BLE transceiver in your notebook/computer or did you use external dongle? I have dongle PCA10031 but I do not know how to configure it to make it visible in hciconfig. hciconfig sees only my old Bluetooth built-in transceiver which is not compatible with BLE 4.2.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Mon, 18 Jul 2016 08:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>Al Bundy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Linux Mint 17.3 but I have already solved the compilation issue. The secret lays here: sys/newlib/Makefile.include:50: NEWLIB_INCLUDE_DIR := $(abspath $(wildcard $(dir $(shell which $(PREFIX)gcc))../$(TARGET_ARCH)/include)). The author of the Makefile did not take into account that people may have symbolic links to toolchain programs.&lt;/p&gt;
&lt;p&gt;By the way, have you ever tried to implement more complicated application using RIOT OS on nRF52? I would like to port my software to that system but I have no idea how it would work with softdevice?&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Setting up IPv6 over BLE using nRF52 Series and RIOT OS</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/setting-up-ipv6-over-ble-using-nrf52-series-and-ri</link><pubDate>Sun, 17 Jul 2016 21:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d096f2-493e-4a35-9694-2384a59d4234</guid><dc:creator>kaspar</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;@AlBundy, what host OS / distribution are you using? The hello-world example doesn&amp;#39;t use the SoftDevice. Could you try again with current master?&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1102&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>