<?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 on nrf52840 dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39046/thread-on-nrf52840-dongle</link><description>I would like to know if I can run Thread examples on nRF52840 USB dongle? Could someone provide instruction how to do this in a Windows environment? 
 
 Also, is there external debugging possibility for nrf52840 dongle?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Oct 2018 12:06:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39046/thread-on-nrf52840-dongle" /><item><title>RE: Thread on nrf52840 dongle</title><link>https://devzone.nordicsemi.com/thread/152682?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 12:06:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acf23388-beea-418b-a4a9-dd3d7bc158af</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;My guess would be that one of the following things are causing issues:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The examples initialize the Thread CLI module. The CLI module use UART port to communicate with external devices. The &lt;a href="https://github.com/openthread/openthread/blob/master/examples/platforms/nrf52840/platform-config.h#L154"&gt;default UART ports&lt;/a&gt; used are P0.05-P0.08. These pins are used for other purposes on the Dongle, or they are not used and are left floating. Floating pins on UART peripheral can generate error codes and leaving the firmware in the error handler. Changing the pins will require rebuilding of the OpenThread libraries. You can also remove use of the CLI module, but note that you should then&amp;nbsp;add&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/32966/how-to-call-thread_coap_clound_data_update-function/131997#131997"&gt;this section&lt;/a&gt; into your code.&lt;/li&gt;
&lt;li&gt;The Dongle have different pinouts for Button and LED compared to the DK. If you do not change the preprocessor&amp;nbsp;symbol that&amp;nbsp;indicates which board is used, the example will initialize BSP with the LED and Button pins used on the nRF52840-DK. Changing the symbol from BOARD_PCA10056 to BOARD_PCA10059 could help with this issue.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you look in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52840_dongle/hw_button_led.html?cp=2_0_4_5_3"&gt;dongle documentation&lt;/a&gt;, you can see that two of the colors of the LEDs are &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52840_pdk/vir_com_port.html?cp=2_0_3_6_1"&gt;using the same GPIOs as UART peripheral on the DK&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Connecting a debugger to the dongle will help you with debugging&amp;nbsp;what is causing this issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread on nrf52840 dongle</title><link>https://devzone.nordicsemi.com/thread/152674?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 11:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71feb24a-5128-48be-84ac-ceaa3dddcc4c</guid><dc:creator>Mike Wazowski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;NCP example runs perfect on Dongle after changing section placement and board header file, however the same does not apply to coap server and client examples. They compile just fine, but program does not seem to be running on dongle. Any tips to make it compatible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread on nrf52840 dongle</title><link>https://devzone.nordicsemi.com/thread/151987?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 08:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d65bc57-41ff-4ccf-b92f-f084c4766d2a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The message in nRF Connect is normal when you flash an example that implements USB on the nRF IC. I was referring to the project settings in NCP example in Segger Embedded Studio. Changing the linker file used by GCC should give similar results. Which example did you build using GCC?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Yes, the dongle use our serial DFU solution over USB to flash the IC. It will not allow you to overwrite MBR/Bootloader.&lt;/li&gt;
&lt;li&gt;Sorry, I meant to write MBR and not Bootloader. Bootloader is, as you correctly mention, placed close to top of flash.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread on nrf52840 dongle</title><link>https://devzone.nordicsemi.com/thread/151891?ContentTypeID=1</link><pubDate>Sat, 06 Oct 2018 09:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc95ffc0-4f19-4532-bd3e-5b281f83c766</guid><dc:creator>Gregory1992</dc:creator><description>&lt;p&gt;Thank for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I flashed a dongle with Connect app using NCP for border router example hex from SDK:&lt;/p&gt;
&lt;p&gt;nRF5_SDK_for_Thread_and_Zigbee_2.0.0_29775ac\examples\thread\ncp\usb_bootloader\hex&lt;/p&gt;
&lt;p&gt;It seems that software is flashed, but I just want to know if this behavior is normal (photo attached).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To understand better I would like to ask: when you talk about &amp;quot;&lt;span&gt;SES project settings&amp;quot; you mean some given environment?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I was just building *.hex using GNU make and importing it in&amp;nbsp;Connect Programmer app. Is it a good way to do that? Where can I apply&amp;nbsp;memory mapping&amp;nbsp;changes that you mentioned doing it this way? I tried to make changes in linker script but don&amp;#39;t see any difference after opening rebuilt hex in Proggramer app for now.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;For example I changed linker script &amp;quot;openthread_nrf52840.ld&amp;quot; like that:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;MEMORY&lt;br /&gt;{&lt;br /&gt; FLASH (rx) : ORIGIN = 0x1000, LENGTH = 0xfb000&lt;br /&gt; RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 0x3fff8&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please help me understand the problem with bootloader?&lt;/p&gt;
&lt;p&gt;1. Are bootloader&amp;nbsp;and MBR protected or is there risk of owerwriting them by a program? I mean if I load some hex that is mapped from memory start.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;You said bootloader is placed flash from 0x0 to 0x1000, but on the Programmer screen I see MBR at the beginning (0x0 to 0x1000), then application and bootloader at the end of memory. Where is really bootloader placed in memory?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3124.2.JPG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread on nrf52840 dongle</title><link>https://devzone.nordicsemi.com/thread/150961?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 12:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03557200-b902-4749-8bc4-fd12d2ccb33f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, it is possible to run Thread examples on the nRF52840 Dongle. The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.thread_zigbee.v2.0.0/thread_ncp_example.html?cp=4_2_0_1_2_10"&gt;NCP USB Bootloader exampl&lt;/a&gt;e in &lt;a title="nRF5 SDK for Thread and Zigbee v2.0.0" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk/keydef/PLUGINS_ROOT/com.nordic.infocenter.thread_zigbee.v2.0.0/index.html?cp=4_2_0"&gt;SDK for Thread and Zigbee v2.0.0&lt;/a&gt;&amp;nbsp;works on the dongle out-of-the-box. Other examples should also work, but you need to move the application in Flash and RAM for it to not overlap with the USB Bootloader, located from 0x0 to 0x1000 in Flash and 0x20000000 to 0x020000008 in RAM. The following settings are used in SES project settings (Section Placement Macros):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH_START=0x1000
FLASH_SIZE=0xfb000
RAM_START=0x20000008
RAM_SIZE=0x3fff8&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The dongle can be debugged through the SWD interface, see the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52840_dongle/hw_swd_if.html?cp=2_0_4_5_6"&gt;documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>