<?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>nrf52840 DK for nrf52811 development</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115264/nrf52840-dk-for-nrf52811-development</link><description>Hi, I am actually newbie to embedded system. 
 My question is how can I upload my code to MCU. 
 
 There are very good tutorial about developing with development kit. 
 So I successfully testing Bluetooth communication, gpio things. 
 
 My next question</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Oct 2024 00:07:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115264/nrf52840-dk-for-nrf52811-development" /><item><title>RE: nrf52840 DK for nrf52811 development</title><link>https://devzone.nordicsemi.com/thread/505257?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 00:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28f3bbc9-7324-4b4f-b8e1-4a97e0fc2c2c</guid><dc:creator>nordicDK</dc:creator><description>&lt;p&gt;Thanks for your wonderful advice!&lt;br /&gt;Currently I am designing PCB using nrf52811 soc, I hope it work well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK for nrf52811 development</title><link>https://devzone.nordicsemi.com/thread/505204?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2024 13:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1205457-44bf-447c-b4ee-82d2908fc10e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The nRF52840 DK has two methods of programming external targets. One is the 10 pin DEBUG OUT port (P19) in the upper left corner. This is useful if your custom board has a 10 pin connector, which it sounds like your custom board doesn&amp;#39;t have. The other way is to use P20, which is the long strip of GPIOs:&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/pastedimage1728307229771v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;which does more or less the same thing.&lt;/p&gt;
&lt;p&gt;So the way that both of these work is that when you connect your debugger on the DK to your computer, it will check if an external device is connected to either P19 or P20. If it detects anything, it will use that port instead of programming the nRF52840 on the DK. This goes for both debugging and programming. So in your case, it sounds like you should use P20. Depending on what version of the DK you have (it should say on the large white sticker, in addition to the serial number of the debugger), the name of the pins on P20 may be a little different. The thing is that you don&amp;#39;t power the custom board via P20.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the newer versions of the DK, this is described here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/hw_debug_out.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/hw_debug_out.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But the same documentation for the nRF5340DK has an image, that is handy as well:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf5340_dk/page/UG/dk/ext_programming_support_P20.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf5340_dk/page/UG/dk/ext_programming_support_P20.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The debug out part is the same on both the nRF52840DK and the nRF5340DK.&lt;/p&gt;
&lt;p&gt;So basically, you need to connect:&lt;/p&gt;
&lt;p&gt;DK -&amp;gt; Custom board&lt;/p&gt;
&lt;p&gt;SWDIO -&amp;gt; SWDIO&lt;/p&gt;
&lt;p&gt;SWDCLK -&amp;gt;&amp;nbsp; SWDCLK&lt;/p&gt;
&lt;p&gt;&amp;quot;GND Detect&amp;quot; (may not be named on the PCB, but same position) -&amp;gt; GND&lt;/p&gt;
&lt;p&gt;SWD_Sel / VTG -&amp;gt; VDD&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that SWD_Sel and GND detect does not power the external board, so you need to either power it externally (if so, make sure they have common ground, by shorting GND on DK to GND on custom board), or you can power it from VDD and GND on your DK (outside P20).&lt;/p&gt;
&lt;p&gt;Let me know if it doesn&amp;#39;t work.&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>