<?xml version="1.0" encoding="UTF-8" ?>
<?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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40790/thread-initialization-error-on-pca10059-using-multi-protocol-support-for-ble-and-thread-works-with-no-problem-in-pca10056</link><description>Hi, 
 I have a nrf52840 DK (pca10056) and a nrf52840 Dongle (pca10059). 
 I am using the following SDK versions: 
 nRF5_SDK_15.2.0_9412b96 
 nRF5_SDK_for_Thread_and_Zigbee_2 
 And the s140_nrf52_6.1.0_softdevice.hex 
 
 I am working with the multiprotocol</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Dec 2018 07:05:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40790/thread-initialization-error-on-pca10059-using-multi-protocol-support-for-ble-and-thread-works-with-no-problem-in-pca10056" /><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/161336?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 07:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc985563-4089-48ec-8009-14bea7c95f21</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;This worked for me! Now no failure with &lt;span&gt;otInstanceInitSingle() call.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/161016?ContentTypeID=1</link><pubDate>Mon, 10 Dec 2018 14:08:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb0d09a-2cc7-406d-adf9-bbd2df0bcde0</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;In the last release of our SDK we haven’t provided any example that shows how to run multiprotocol example on the PCA10059.&lt;/p&gt;
&lt;p&gt;The problem you have experienced is due to incorrect linker configuration.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;em&gt;ble_thread_dyn_proximity&lt;/em&gt;&amp;nbsp;uses linker script which does not assume that bootloader is already flashed. The end result is that bootloader and its settings overlap with Thread non-volatile memory section (which is placed also at the end of the FLASH memory).&lt;/p&gt;
&lt;p&gt;Because of that, MPU (Memory Protection Unit) triggers fault state (invalid memory access). For more details about bootloader solution please refer to the following page:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/en/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_bootloader"&gt;https://www.nordicsemi.com/en/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_bootloader&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have prepared a short tutorial on how to modify example to be run on PCA10059 dongle. All in all you need to modify just a few lines.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download nRF5 SDK for Thread and Zigbee 2.0.0&lt;/li&gt;
&lt;li&gt;Download&amp;nbsp;&lt;em&gt;openthread_nrf52840_multiprotocol_pca10059.ld&amp;nbsp;&lt;/em&gt;linker script (attached) and copy it to the following folder:&amp;nbsp;&lt;em&gt;\external\openthread\linker_scripts\openthread_nrf52840_multiprotocol_pca10059.ld&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Here you can see the diff between the default linker script: (as you see flash length has to be shortened to reserve place for Bootloader).&lt;br /&gt;&lt;br /&gt;$ diff --color openthread_nrf52840_multiprotocol.ld openthread_nrf52840_multiprotocol_pca10059.ld&lt;br /&gt;&amp;lt;&amp;nbsp;&amp;nbsp; FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0xda000&lt;br /&gt;---&lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0xba000&lt;br /&gt;9a10,14&lt;br /&gt;&amp;gt; &lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4&lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; bootloader_settings_page (r) : ORIGIN = 0x000FF000, LENGTH = 0x1000&lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4&lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; mbr_params_page (r) : ORIGIN = 0x000FE000, LENGTH = 0x1000&lt;/li&gt;
&lt;li&gt;Make following changes in the example Makefile (e.g.&amp;nbsp;&lt;em&gt;examples\multiprotocol\ble_thread\ble_thread_dyn_proximity\uart\pca10056\s140\armgcc&lt;/em&gt;)&amp;nbsp; (or usb variant)&lt;br /&gt;&lt;br /&gt;$ diff --color Makefile.old Makefile&lt;br /&gt;1c1&lt;br /&gt;&amp;lt; PROJECT_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; := ble_thread_dyn_proximity_uart_pca10056_s140&lt;br /&gt;---&lt;br /&gt;&amp;gt; PROJECT_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; := ble_thread_dyn_proximity_uart_pca10059_s140&lt;br /&gt;9c9&lt;br /&gt;&amp;lt;&amp;nbsp;&amp;nbsp; LINKER_SCRIPT&amp;nbsp; := $(SDK_ROOT)/external/openthread/linker_scripts/openthread_nrf52840_multiprotocol.ld&lt;br /&gt;---&lt;br /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; LINKER_SCRIPT&amp;nbsp; := $(SDK_ROOT)/external/openthread/linker_scripts/openthread_nrf52840_multiprotocol_pca10059.ld&lt;br /&gt;252c252&lt;br /&gt;&amp;lt; CFLAGS += -DBOARD_PCA10056&lt;br /&gt;---&lt;br /&gt;&amp;gt; CFLAGS += -DBOARD_PCA10059&lt;br /&gt;280c280&lt;br /&gt;&amp;lt; ASMFLAGS += -DBOARD_PCA10056&lt;br /&gt;---&lt;br /&gt;&amp;gt; ASMFLAGS += -DBOARD_PCA10059&lt;/li&gt;
&lt;li&gt;Run&amp;nbsp;&lt;em&gt;make&amp;nbsp;&lt;/em&gt;in the&amp;nbsp;&lt;em&gt;armgcc&lt;/em&gt;&amp;nbsp;folder.&lt;/li&gt;
&lt;li&gt;Open nRF Connect with Programmer application. (&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;(note that the same you could achieve with nrfutil)&lt;/li&gt;
&lt;li&gt;Use&amp;nbsp;&lt;em&gt;Add HEX file&amp;nbsp;&lt;/em&gt;to add two files&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;&lt;ol&gt;
&lt;li&gt;Softdevice:&amp;nbsp;&lt;em&gt;components\softdevice\s140\hex\s140_nrf52_6.1.0_softdevice.hex&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Application: examples\multiprotocol\ble_thread\ble_thread_dyn_proximity\uart\pca10056\s140\armgcc\_build\nrf52840_xxaa.hex&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;Note that assumption here is that you have dongle with Bootloader and MBR already flashed (stock version). Else if you mess with flash memory then you need to flash Bootloader using JLink programmer.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7. Click the&amp;nbsp;&lt;em&gt;Write&amp;nbsp;&lt;/em&gt;button. After couple of seconds, your device is flashed and operational.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;You should see similar memory map as presented below.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/720x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-df4c7511a5924c68b8f27eba3fc5e7a2/memory.png" /&gt;&lt;/p&gt;
&lt;p&gt;Red Color – Bootloader&lt;/p&gt;
&lt;p&gt;Yellow Color – Application (with OpenThread)&lt;/p&gt;
&lt;p&gt;Blue Color – SoftDevice&lt;/p&gt;
&lt;p&gt;Orange – MBR (which is incorporated in the SoftDevice)&lt;/p&gt;
&lt;p&gt;Gray – Unused memory&lt;/p&gt;
&lt;p&gt;&amp;nbsp;8.Testing:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;ol&gt;
&lt;li&gt;Verify that device sends Thread messages by:&lt;br /&gt;i ) using sniffer e.g. from here (&lt;a href="https://github.com/NordicPlayground/nRF-802.15.4-sniffer"&gt;https://github.com/NordicPlayground/nRF-802.15.4-sniffer&lt;/a&gt;)&lt;br /&gt;ii) or connecting Thread Simple CoAP Client&lt;/li&gt;
&lt;li&gt;Use nRF Toolbox application (&lt;a href="https://itunes.apple.com/us/app/nrf-toolbox/id820906058?mt=8"&gt;https://itunes.apple.com/us/app/nrf-toolbox/id820906058?mt=8&lt;/a&gt;) (&lt;a href="https://play.google.com/store/apps/details?id=no.nordicsemi.android.nrftoolbox&amp;amp;hl=en"&gt;https://play.google.com/store/apps/details?id=no.nordicsemi.android.nrftoolbox&amp;amp;hl=en&lt;/a&gt;)&lt;br /&gt;Click to Proximity application and connect to Thread Proximity device. Then push button on the dongle to trigger sound alarm on your mobile phone, or push localization button in the mobile application to toggle LED on dongle.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Linker script:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-df4c7511a5924c68b8f27eba3fc5e7a2/openthread_5F00_nrf52840_5F00_multiprotocol_5F00_pca10059.ld"&gt;devzone.nordicsemi.com/.../openthread_5F00_nrf52840_5F00_multiprotocol_5F00_pca10059.ld&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/160347?ContentTypeID=1</link><pubDate>Wed, 05 Dec 2018 11:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df76c597-4fc1-4f11-b752-e4ebcdd57ef2</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Hello Manuel,&lt;/p&gt;
&lt;p&gt;Thank you for the reply!&lt;/p&gt;
&lt;p&gt;I am still not able to understand, how you came to the conclusion that&amp;nbsp;&lt;span&gt;otInstanceInitSingle() fails?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Rajendra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/159849?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2018 01:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b80eeed9-c3cc-4dfc-9ee2-7b8bbe106ea9</guid><dc:creator>mrc74</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No, unfortunately I did not try to debug the code. I simply flashed it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Manuel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/159576?ContentTypeID=1</link><pubDate>Thu, 29 Nov 2018 13:32:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b3929c9-995d-4000-8fca-ddbad345fffd</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I think you guys need to check out this tutorial:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;https://devzone.nordicsemi.com/tutorials/b/getting-started/posts/nrf52840-dongle-programming-tutorial&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/159337?ContentTypeID=1</link><pubDate>Wed, 28 Nov 2018 04:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07d0178f-7b20-4520-8a1b-cabdece3a709</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Manuel,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I wonder how you were able to debug the thread application&amp;nbsp;for PCA10059 on USB dongle. Currently,&amp;nbsp;I am using LEDs with different color combinations for debugging.&amp;nbsp;I was not able to debug using the DK board, I have explained this on the forum. The link is:&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40701/debugging-on-nrf52840-dongle"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40701/debugging-on-nrf52840-dongle&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please have a look at the post and let me know what is missing from the setup?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Rajendra&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/159336?ContentTypeID=1</link><pubDate>Wed, 28 Nov 2018 04:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7c49ddd-d0ca-4383-a52e-41889f084b35</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;I used hex file on USB dongle,&amp;nbsp;code was compiled for PCA10059. I could debug the code using different colors of LED till &lt;span&gt;otInstanceInitSingle()&lt;/span&gt;.&amp;nbsp;then it stopped. I am using &amp;#39;nRF5_SDK_for_Thread_and_Zigbee_2.0.0_29775ac\examples\thread\simple_coap_client&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/159229?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 13:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f74a64ab-2b8d-40b9-b3ce-8f5aef86e59f</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;@Rajendra:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Did you use the same hex for both devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/159227?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 12:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b3effc2-6504-45b7-afaf-4144a9dc009f</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You can use the nRF Connect v2.6.1&amp;#39;s Programmer application to read the flash memory and save it as a hex file. You can use the DK to connect to the dongle. Either solder directly to SWDCLK/SWDIO or use debug connectors on the bottom side.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also does your PCA10056 project use any GPIOs?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/158950?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 06:58:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b026f497-eba1-4682-b0b9-ab11c1e8a600</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;I am also facing the&amp;nbsp;same problem. Here is the hex file I used for downloading into the device.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5672.nrf52840_5F00_xxaa.hex"&gt;devzone.nordicsemi.com/.../5672.nrf52840_5F00_xxaa.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/158688?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 14:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f18e503-54cf-43fa-ab59-acb53bc70e52</guid><dc:creator>mrc74</dc:creator><description>&lt;p&gt;I am new to your dev tools. Would you mind posting instructions on how to read out the flash contents for both pca10056 and pca10059?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread initialization error on pca10059 using multi protocol support  for BLE and Thread (works with no problem in pca10056)</title><link>https://devzone.nordicsemi.com/thread/158552?ContentTypeID=1</link><pubDate>Thu, 22 Nov 2018 08:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de0ba43c-5e76-41d7-8725-de14db0a29de</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Do you mind reading the content of flash of the two devices as hex files, and post them? There should only be minute discrepancies between them.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>