<?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>nRF Connect Won&amp;#39;t Load 52840 Dongle Memory Layout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59324/nrf-connect-won-t-load-52840-dongle-memory-layout</link><description>Hi Nordic Community, 
 
 I am trying to build a network using the OpenThread protocol and the nRF52840 chip. I have several Dongles, but I can&amp;#39;t figure out how to flash the OpenThread examples (or any hex file) to the Dongle. I think my problem is with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Mar 2020 23:09:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59324/nrf-connect-won-t-load-52840-dongle-memory-layout" /><item><title>RE: nRF Connect Won't Load 52840 Dongle Memory Layout</title><link>https://devzone.nordicsemi.com/thread/242192?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 23:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2228670a-8be1-452f-838c-6af688f564e4</guid><dc:creator>sidney-carton</dc:creator><description>&lt;p&gt;Installing the nrf-udev package worked, thank you Hung!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Won't Load 52840 Dongle Memory Layout</title><link>https://devzone.nordicsemi.com/thread/242128?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 14:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2722e595-596f-43af-ada6-78abb051e845</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi again,&amp;nbsp;&lt;br /&gt;I got the suggestion from the developer, could you please try the following:&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install nrf-udev from here &lt;a href="https://github.com/NordicSemiconductor/nrf-udev/releases"&gt;https://github.com/NordicSemiconductor/nrf-udev/releases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Call the following command and reboot the PC&lt;br /&gt;&lt;em&gt;sudo usermod -a -G dialout &amp;lt;username&amp;gt;&lt;/em&gt;&lt;em&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Try to select the device again&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Won't Load 52840 Dongle Memory Layout</title><link>https://devzone.nordicsemi.com/thread/242046?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 09:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:362b3177-803e-4cfc-b5e2-894f129b5e89</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks Sidney,&amp;nbsp;&lt;br /&gt;I will forward the issue to our app team and get back to you.&amp;nbsp;&lt;br /&gt;I saw a similar report on github here and the customer mentioned that he uninstall and install the app again and it helped him. Could you try ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfconnect-programmer/issues/160"&gt;https://github.com/NordicSemiconductor/pc-nrfconnect-programmer/issues/160&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Won't Load 52840 Dongle Memory Layout</title><link>https://devzone.nordicsemi.com/thread/241961?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 19:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c55adde9-da47-4102-a8e7-a666d9a37e91</guid><dc:creator>sidney-carton</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thank you for the suggestion, I tried it running nRF Connect on Mac and I can successfully flash the Dongle. This can only be a temporary solution for me though, since my main/only computers run Linux. I would like to get nRF Connect working on Ubuntu. I think that it is hanging during &amp;quot;Using USB SDFU protocol to communicate with target&amp;quot;. Is there a library I am missing on Ubuntu to use USB SDFU?&lt;/p&gt;
&lt;p&gt;Note: I can use nRF Connect to flash the Dev Kit on Ubuntu, but it reads the memory using nrfjprog, not USB SDFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Won't Load 52840 Dongle Memory Layout</title><link>https://devzone.nordicsemi.com/thread/241740?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 08:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d90ab227-cfe0-47d2-8007-c1de1bf3b55b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sidney,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think using&amp;nbsp;arm-none-eabi-objcopy to shift the hex is a good idea. There could be a call in the code that use absolute address (for example the vector table) and shifting the hex would cause the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The way you do it is in the project setting of the source code you change the flash start address (IROM1) to 0x1000 and recompile the code. I have flashed many dongles to use as OpenThread node by doing so.&lt;/p&gt;
&lt;p&gt;nrfjprog is not capable of programming the dongle because by default it&amp;#39;s programmed by DFU process, not by using SWD programming.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It seems that it&amp;#39;s the issue with the communication between the dongle and the PC. Could you try on another PC (preferably running Windows) just to confirm that it&amp;#39;s not the dongles issue.&lt;/p&gt;
&lt;p&gt;To be able to flash the dongle directly (not using the DFU/bootloader) you would need to solder the 10 pins header on port P1 of the dongle. It&amp;#39;s the same header on the Debug In and Debug Out port on the PCA10056. If you don&amp;#39;t have one You can de-solder the header on port Debug In of the PCA10059 (most of the time not used) to solder it on the dongle P1. Then you just need the 10pin cable to program the dongle from the PCA10056. You can just program it like a normal DK. And make sure you erase the bootloader if you want it to operate like a DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5834ede4ad4945ae900fdd5cdd2a84fd/pastedimage1585212661319v1.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Won't Load 52840 Dongle Memory Layout</title><link>https://devzone.nordicsemi.com/thread/241682?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 20:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23db15bb-e511-4dde-9cfc-6c97716efb4e</guid><dc:creator>sidney-carton</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply, and sorry for taking a few days to get back to you. I can confirm that:&lt;/p&gt;
&lt;p&gt;1) I am using the PCA10059 dongle&lt;br /&gt;2) The red led is blinking at about 1Hz when it is plugged into the computer&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have three followup questions after your response:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. My understanding is that nRF Connect will account for the MBR (following this &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;guide&lt;/a&gt;) but my problem is that nRF Connect will not read the memory layout on the Dongle. The screenshot I attached in the original posting shows diagonal lines in the memory layout BUT the guide I am following, nRF Connect shows the MBR in the memory layout. I cannot get nRF Connect to achieve &amp;quot;Firmware: Bootloader found&amp;quot;. I have tried this with 3 brand new Dongles with the same problem, so I believe that my nRF Connect instance is at fault.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. You suggest flashing the dongle from the Dev Kit. Is there a guide to do this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. Can you confirm that I would only need to set the start address to 0x1000 if I were using nrfjprog to flash the Dongle, and not when using nRF Connect? And if so, would you do this when converting the binary to hex:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-objcopy -O ihex --change-start 0x1000 &amp;lt;BINARY_FILE&amp;gt; &amp;lt;OUTPUT_HEX_FILE&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To give you more context I would like to build a very simple OpenThread network as a proof of concept. I have one 52840 Dev Kit (pca10056) that I have set up as the NCP for an otbr Docker container. I have several Dongles (pca10059) that I want to run a very simple program to periodically send messages to the base station. My goal is to monitor the network topology and test OpenThread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect Won't Load 52840 Dongle Memory Layout</title><link>https://devzone.nordicsemi.com/thread/240853?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2020 12:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d819b70b-85b0-4cde-a2d5-54ab75851c14</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sidney,&amp;nbsp;&lt;br /&gt;Could you please clarify that you were testing with a PCA10059 dongle ?&amp;nbsp;&lt;br /&gt;Have you switched the dongle to bootloader mode ? (press the reset switch, there should be a red LED breathing light)&lt;br /&gt;Please be aware that the dongle is not a development platform but rather to be used as backend for other tool, such as nRF Connect BLE. If you plan to use it for development, I would strongly suggest you to solder the SWD header and then use&amp;nbsp; a DK/a programmer to program it (via the Debug out port)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The OpenThread firmware should be modified so that it start at address 0x1000 (to cope with the MBR) otherwise the bootloader will no longer work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>