<?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>External programming using NRF52-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108963/external-programming-using-nrf52-dk</link><description>Hello , 
 I am trying top program external nrf52dk through another nrf52dk via SWD interface to check if external programming method works. The connections between two devices are below. when Using segger embedded studio, I get a pop-up saying &amp;quot;Failed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Mar 2024 09:56:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108963/external-programming-using-nrf52-dk" /><item><title>RE: External programming using NRF52-DK</title><link>https://devzone.nordicsemi.com/thread/472407?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 09:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc8de58b-e3b4-4db9-a975-46ae5c61d903</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="pashan"]I want to flash a custom board later which has nrf52832 soc. Before that I was trying to use the same connection between two nrf52dk just to make sure that method works. just to clarify, you are saying that to connect two nrf52dk, I need to use dbg out and dbg in. [/quote]
&lt;p&gt;Yes, I understand, but if you are now testing the connection, you cannot&amp;nbsp;connect an output to an output.&lt;/p&gt;
&lt;p&gt;For the DK-scenario, you are correct. dbg out -&amp;gt; dbg in.&lt;/p&gt;
[quote user="pashan"]I tired to flash the custom board also It shows the same error &amp;quot;failed to connect to target&amp;quot;.&amp;nbsp;[/quote]
&lt;p&gt;Try to run a &amp;quot;nrfjprog --recover&amp;quot; first, and if it still fails, add &amp;quot;--log&amp;quot; and share the .log file here.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External programming using NRF52-DK</title><link>https://devzone.nordicsemi.com/thread/472392?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 09:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccd8d0a3-b3d5-41f1-bcdf-0a58d2c91261</guid><dc:creator>pashan</dc:creator><description>&lt;p&gt;I want to flash a custom board later which has nrf52832 soc. Before that I was trying to use the same connection between two nrf52dk just to make sure that method works. just to clarify, you are saying that to connect two nrf52dk, I need to use dbg out and dbg in. But my custom board doesn&amp;#39;t have any debug pins socket, only SWD interface is available. Also, I tired to flash the custom board also It shows the same error &amp;quot;failed to connect to target&amp;quot;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External programming using NRF52-DK</title><link>https://devzone.nordicsemi.com/thread/472391?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2024 09:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af2ff4c-2af6-4778-aa6a-f17dfa1eb181</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I am trying top program external nrf52dk through another nrf52dk via SWD interface to check if external programming method works. [/quote]
&lt;p&gt;If you are connecting two nRF52-DK&amp;#39;s together, to program then; you cannot connect SWD outputs to SWD ouputs.&lt;/p&gt;
&lt;p&gt;You need to connect one of them to the &amp;quot;DEBUG IN&amp;quot;:&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/pastedimage1709717007540v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The easiest way is to use a 10-pin SWD cable from the &amp;quot;DEBUG OUT&amp;quot; from one kit to the &amp;quot;DEBUG IN&amp;quot; on the other.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>