<?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>Using debugger on nRF52840DK to flash code to another nRF52840DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96277/using-debugger-on-nrf52840dk-to-flash-code-to-another-nrf52840dk</link><description>Hi! 
 I&amp;#39;m a student working on my master thesis with almost no experience to the nRF52series. 
 I initially want to flash code though a nRF52840DK using the onboard debugger to a custom board with a nRF52840. 
 I&amp;#39;m not sure if there is hardware/design</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Feb 2023 14:21:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96277/using-debugger-on-nrf52840dk-to-flash-code-to-another-nrf52840dk" /><item><title>RE: Using debugger on nRF52840DK to flash code to another nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/408029?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 14:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f635adf-6a5d-4166-9523-9630fb1fdbbe</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Glad to hear that it worked out!&lt;/p&gt;
&lt;p&gt;Most of these cases, there is an issue with GND detect and VDD Detect. The 10 pin cable (or the 4 wire approach) doesn&amp;#39;t power the external board, but parts of the pins are used to detect that there is a board attached to the debug out port (GND and VDD Detect). So as long as GND detect and VDD Detect are properly connected, both boards have the same GND and VDD, then it works (most of the times) &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Have a nice weekend!&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><item><title>RE: Using debugger on nRF52840DK to flash code to another nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/408022?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 13:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9737999-8853-4f84-88c0-6994de3c4dd2</guid><dc:creator>Emanuela</dc:creator><description>&lt;p&gt;Hi Thank you for your answer!&lt;/p&gt;
&lt;p&gt;I used two cables and all 10 pins where connected at first but I read somewhere here that you only needed 4 pins to connect the debugger to another board. I guess there was some ground issues with my setup with the cables and everything worked when I connected all 10 and used them with the different &amp;quot;settings&amp;quot; on the board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also uninstalled nrf connect and only tried flashing code onto one of the nRF52840DK with another nRF52840DK. Switched the SW6 on the DK that I wanted to program from nRF ONLY to&amp;nbsp;DEFAULT and I could see that the LED I wanted to blink was blinking :)&lt;/p&gt;
&lt;p&gt;The settings I had for the DK I wanted to program:&lt;/p&gt;
&lt;p&gt;- SW8 : ON&lt;br /&gt;- SW6: nRF ONLY&lt;br /&gt;- SW9: VDD&lt;/p&gt;
&lt;p&gt;The settings I had for the DK where I used the onboard debugger remained the same as I wrote above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since the debug setup was good I just unpluged the 10pin cable from the DK(the one I wanted to program) onto my custom board and everything went great :D&lt;/p&gt;
&lt;p&gt;Everything worked and the end!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using debugger on nRF52840DK to flash code to another nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/407932?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 09:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24e7a97d-542d-47eb-ba78-4e8a0fc4356d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is not easy to say why it is not working out of the box, but we can have a look into some possible reasons.&lt;/p&gt;
&lt;p&gt;What voltage is your custom board running on?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is the version of the DK you are using? What does it say on the white sticker on the second line? It should say something like:&lt;br /&gt;PCA10056&lt;br /&gt;X.Y.Z&lt;br /&gt;...&lt;/p&gt;
&lt;p&gt;What is X, Y and Z?&lt;/p&gt;
&lt;p&gt;I understand what you are trying to do with the different computers, but it is important that the two boards have common ground (and the same VDD). If you want to make sure that you are not programming the nRF on the DK, you can cut SB40 with a sharp utility knife. Note that this requires you to short the connector on P22 to use the nRF52840 on the DK later. You can either use a jumper cable, or a jumper shunt like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1675416032542v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;Because I was unsure of design faults on my custom board I tried setting up two nRF52840DK to ensure that my debug setup was correct.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Did that work or not?&lt;/p&gt;
[quote user=""]&lt;p&gt;For both DK:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SW8 is switched to ON&lt;/li&gt;
&lt;li&gt;SW6 is switched to DEFAULT&lt;/li&gt;
&lt;li&gt;SW9 is switched to VDD&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;That looks good.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the debug in port on your custom board, can you upload some schematics saying how these pins are connected?&lt;/p&gt;
[quote user=""]&lt;p&gt;The cable I have used between the debugout and debug in are a&amp;nbsp; two 10pin flat cable that are connected together (not reversed)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Did you use two cables? or did you mean &amp;quot;two row 10 pin&amp;quot;?&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>