<?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>Debugging on NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40701/debugging-on-nrf52840-dongle</link><description>Hi Forum, 
 
 I have just purchased nRF52840 Dongle and trying out “Blinky” application from source SDK “nRF5_SDK_for_Thread_and_Zigbee_2.0.0_29775ac\examples\peripheral\blinky” 
 After compiling and building the program under Eclipse IDE, used “nRF Connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Mar 2019 13:56:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40701/debugging-on-nrf52840-dongle" /><item><title>RE: Debugging on NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/175965?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 13:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad1c2b24-2dac-4df4-857f-613ad2b0179b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&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;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging on NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/175946?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 13:25:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c504a86-4123-428b-8835-cd6507cb9f21</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp; I would like to see this&amp;nbsp; guide/blog when you finish it since I had similar issues.&lt;/p&gt;
&lt;p&gt;I managed to find a solution though, with the help of SB47 next to debug-out connector.&lt;/p&gt;
&lt;p&gt;When I couple SB47 the SWD cable I use takes Voltage and the nRF Dongle has power from the cable.&lt;/p&gt;
&lt;p&gt;So USB of the dongle is not needed to power the dongle. So you can program the bootloader again in the dongle and thus enabling the USB power of it . Then you can use the nRF connect as before.&lt;/p&gt;
&lt;p&gt;Please when you complete the guide send a reply in this post with the link so we can be notified.&lt;/p&gt;
&lt;p&gt;Thank you for your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging on NRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/158233?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 15:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e918960a-771a-4f49-9deb-6e062e490d4e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Rajendra,&lt;/p&gt;
&lt;p&gt;I believe that you haven&amp;#39;t removed the bootloader on the dongle, is that correct?&lt;/p&gt;
&lt;p&gt;If you just program an application to the chip while still having the bootloader, the bootloader (which is always run on startup) will not recognize the app as a valid application, and it will stay in bootloader mode waiting for a valid app.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The short answer is: It is not possible to debug on the nRF52840 dongle.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The long answer is:&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t use the DK to program the dongle, because of the voltage difference between the USB (5V) and the DK (3V). If you have a proper Segger programmer with a level shifter this is possible, but the DK programmer doesn&amp;#39;t have this.&lt;/p&gt;
&lt;p&gt;That being said, you can program the device with the DK, but this is because the bootloader that is programmed on the Dongle includes a part that changes the power registers before it starts the application. The difficult part is that in order to debug your application you need to either remove or replace the bootloader. If you remove it, or replace it without the power register hack, and then reset the device, you will no longer be able to communicate with it using the DK&amp;#39;s programmer, and your dongle is bricked until you get hold of a proper segger programmer.&lt;/p&gt;
&lt;p&gt;Basically, if you do: &amp;quot;nrfjprog --eraseall &amp;amp;&amp;amp; nrfjprog --reset&amp;quot;, it is bricked.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are currently in the making of a guide/blog post that describes how you can use your dongle for developing, but it is not finished yet. I am not quite sure what the blog post will contain, and the guy writing it is out of office this week, so I can&amp;#39;t ask him.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We also state that the dongle is not a development kit. If you want to develop on the nRF52840, I really really recommend you to go with the nRF52840 DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>