<?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 with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32661/external-programming-with-nrf5-dk-p20</link><description>Hello everyone, 
 i know that there are many similiar questions on the DevZone but i am not able to get it work and i dont uderstand it yet. I want to flash a custom board. 
 I connect the nRF5-DK to the custom board as the following: 
 
 Custom Board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 27 Mar 2022 10:26:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32661/external-programming-with-nrf5-dk-p20" /><item><title>RE: External Programming with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/360121?ContentTypeID=1</link><pubDate>Sun, 27 Mar 2022 10:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dac53ce-710c-49bf-b67a-b206e23bbb98</guid><dc:creator>Santosh Kumar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have this exact setting for a nRF52810 custom board programmed from nRF52840 DK.&lt;/p&gt;
&lt;p&gt;But every time, Keil programs the chip in the DK and doesn&amp;#39;t recognize the custom board.&lt;/p&gt;
&lt;p&gt;Any hints on this?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Santosh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Programming with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/214092?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 09:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55b2a79c-7489-4fe9-b690-83b948b7b31e</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;Ah, never mind! It&amp;#39;s just the same when nothing has been changed. I see now in Figure 7. Power supply circuitry. It&amp;#39;s meant to be able to current measurements by adding R6 and cutting SB9 as described in 6.9.1 and 6.9.2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Programming with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/214088?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 09:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bc88956-9875-428f-a4dd-da94cc66d3b6</guid><dc:creator>Anne van Rossum</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hakon"&gt;Hakon&lt;/a&gt; What&amp;#39;s actually the difference between the first setup and the second? In other words, between VDD nRF (pin 1) and VDD (pin 2). Does the former provide more power to an external board? I couldn&amp;#39;t find it in &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.2.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.2.pdf&lt;/a&gt; where actually pin 2 is labelled RESET in section 6.1. Hardware Drawings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Programming with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/140374?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 11:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f59e369d-214f-412f-a22e-dfe4fc8a804d</guid><dc:creator>DanKA</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can confirm that this schematic works &lt;br /&gt;(physically wired&amp;nbsp;P20:GND Detect --&amp;gt; P1:GND and then&amp;nbsp;P1:GND --&amp;gt;Custom Board:GND)&amp;nbsp;:&lt;/p&gt;
&lt;div class="image-viewer-inner"&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0777.pastedimage1531825435460v1.png" alt=" " /&gt;&lt;/div&gt;
&lt;div class="image-viewer-inner"&gt;&lt;span lang="en"&gt;Unfortunately&lt;/span&gt;, I have no further details to add. As I mentioned in my post, there was soldering issue. I was able to use&amp;nbsp;all functions of the device after resoldering.&lt;/div&gt;
&lt;div class="image-viewer-inner"&gt;&lt;/div&gt;
&lt;div class="image-viewer-inner"&gt;Have you tried&amp;nbsp;nrfjprog and J-Link commander?&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Programming with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/140306?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 01:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c465b1d-6423-4546-b8f4-d5bdc3525a3e</guid><dc:creator>Duncan Xu</dc:creator><description>&lt;p&gt;I set up the wire according to your schematic on the right,&amp;nbsp;and had the same issue in nrfgo&amp;nbsp;studio, no device detected. Can you tell me how you make it work with a little bit more details?&lt;/p&gt;
&lt;p&gt;Appreciate it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Programming with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/125582?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 11:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab93558-0899-4ba8-adb3-6d413bebcd46</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Good to hear that you found the source of the issue!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&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 with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/125581?ContentTypeID=1</link><pubDate>Thu, 22 Mar 2018 07:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68fcc74b-5454-4ea9-a9e9-28ed7eef91a3</guid><dc:creator>DanKA</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;Hakon,&lt;/p&gt;
&lt;p&gt;i captured a screenshot from nRFgo Studio which i attached&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9bfe9ae852254c36a0a5dfc7ee79324f/pastedimage1521702589267v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;As i said, the nRF-DK seems to reset. So the Output disappears. Using nrfjprog --program&amp;nbsp;is basically the same message:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;ERROR: Cannot connect to any nRF device. Please make sure the device is &lt;br /&gt;ERROR: connected to the debugger and supplied.&lt;/p&gt;
&lt;p&gt;Using nrfjprog --recover, it takes a while and then this is displayed:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Recovering device. This operation might take 30s.&lt;br /&gt;ERROR: Cannot connect to any nRF device. Please make sure a device is&lt;br /&gt;ERROR: connected to the debugger and supplied.&lt;/p&gt;
&lt;p&gt;In Addition, the Dialog from J-Link commander. I tried with different Speed.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Type &amp;quot;connect&amp;quot; to establish a target connection, &amp;#39;?&amp;#39; for help&lt;br /&gt;J-Link&amp;gt;connect&lt;br /&gt;Please specify device / core. &amp;lt;Default&amp;gt;: NRF51822_XXAA&lt;br /&gt;Type &amp;#39;?&amp;#39; for selection dialog&lt;br /&gt;Device&amp;gt;?&lt;br /&gt;Please specify target interface:&lt;br /&gt;&amp;nbsp; J) JTAG (Default)&lt;br /&gt;&amp;nbsp; S) SWD&lt;br /&gt;TIF&amp;gt;S&lt;br /&gt;Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz&lt;br /&gt;Speed&amp;gt;100&lt;br /&gt;Device &amp;quot;NRF52832_XXAA&amp;quot; selected.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;****** Error: Communication timed out: Requested 20 bytes, received 0 bytes !&lt;br /&gt;Could not read hardware status!&lt;br /&gt;Can not connect to target.&lt;/p&gt;
&lt;p&gt;I tried with different DKs and multiple custom boards. I measure 2.85V on VDD_nRF of custom board, P20.2 and&amp;nbsp; P20.3.&amp;nbsp;I tried with these wirings, with and without external supply.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9bfe9ae852254c36a0a5dfc7ee79324f/wiring1.PNG" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9bfe9ae852254c36a0a5dfc7ee79324f/wiring2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I made&amp;nbsp;one board,&amp;nbsp;for nRF51822 and another for nRF52810/52832. Schematics and Layout are close to the ref layout. SWDCLK is not pulled down:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9bfe9ae852254c36a0a5dfc7ee79324f/nRF51822_5F00_Pi_5F00_Meander.sch-_2800_1_2900_.pdf"&gt;devzone.nordicsemi.com/.../nRF51822_5F00_Pi_5F00_Meander.sch-_2800_1_2900_.pdf&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-9bfe9ae852254c36a0a5dfc7ee79324f/nRF52810_5F00_Pi_5F00_Meander.sch.pdf"&gt;devzone.nordicsemi.com/.../nRF52810_5F00_Pi_5F00_Meander.sch.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Any help how to debug this is appreciated.&lt;/p&gt;
&lt;p&gt;Thank you and kind regards&lt;/p&gt;
&lt;p&gt;DanKa&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span style="font-size:18pt;"&gt;Update: &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10pt;"&gt;It seems that there was a soldering problem. I am able to program the blinky Project. Further testing in Progress.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10pt;"&gt;The wiring of the second picture worked for me - no battery connected.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Programming with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/125580?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 14:08:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03161c9c-77c0-4515-9406-aa673119b735</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;That is strange.&lt;/p&gt;
&lt;p&gt;Have you tried using nrfjprog (from cmd, &amp;quot;nrfjprog --program &amp;lt;hex&amp;gt; --sectorerase&amp;quot;), or using J-Link Commander from the segger utils?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&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 with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/125579?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 10:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a715758-5671-438d-9a5e-f0fbaa0a4dfc</guid><dc:creator>DanKA</dc:creator><description>&lt;p&gt;I am not sure if i understand you correctly:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:12pt;"&gt;P20 Pin&amp;nbsp;2 VDD and Pin 3&lt;/span&gt;&amp;nbsp;to VDD of custom board &lt;span style="font-size:12pt;"&gt;OR just shorting Pin 2 and Pin &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:12pt;"&gt;I understand you as:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Custom Board powered by VDD_NRF (P20, pin 1), no battery.&lt;/li&gt;
&lt;li&gt;P20 Pin&amp;nbsp;2 VDD&amp;nbsp;and Pin 3 VTG shorted, no Connection to custom board&lt;/li&gt;
&lt;li&gt;P20 Pin 4 SWDIO to SWDIO of custom board&lt;/li&gt;
&lt;li&gt;P20 Pin 5 SWD CLK to SWD CLK of custom board&lt;/li&gt;
&lt;li&gt;P20 Pin 8 GND DETECT shorted with GND (to supply) to GND of custom board.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is that correct?&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:14pt;"&gt;Edit:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I did it as i mentioned above. With this setup i do not detect the inernal nRF5 anymore (as wanted), but if click on the SEGGER&amp;nbsp;in nRFgo Studio, the nRF-DK resets. nRfgo Studio seems to Output a report or something but it disappears immediately.&amp;nbsp;Something with no device detection...Is there a log or something? i can&amp;#39;t read it&amp;nbsp;in nRFgo Studio directly.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External Programming with nRF5-DK P20</title><link>https://devzone.nordicsemi.com/thread/125578?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 09:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81baa7d2-3acd-408e-93e4-bb9e57f447e9</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;
&lt;p&gt;You&amp;#39;ll need to apply voltage to the &amp;quot;VTG&amp;quot; pin on header P20 (pin 3).&lt;/p&gt;
&lt;p&gt;You can do this by shorting P20, pin 2 and 3, as this will force the segger IC to externally program on P20.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can then power your external board from &amp;quot;VDD_NRF&amp;quot; (P20, pin 1), just remember to remove the battery first.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try this and see if you have any luck?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best 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>