<?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>Unable to Program Custom nRF52840 Board Using SWD with nRF52840 DK v2.0.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120493/unable-to-program-custom-nrf52840-board-using-swd-with-nrf52840-dk-v2-0-1</link><description>I have designed and built a custom nRF52840 board and I’m experiencing difficulties programming it via SWD using an nRF52840 DK (version 2.0.1). When I connect my custom board to the DK, the programming tools (nrfjprog and nRF Connect for Desktop) only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Apr 2025 15:05:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120493/unable-to-program-custom-nrf52840-board-using-swd-with-nrf52840-dk-v2-0-1" /><item><title>RE: Unable to Program Custom nRF52840 Board Using SWD with nRF52840 DK v2.0.1</title><link>https://devzone.nordicsemi.com/thread/531062?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 15:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ba75c6e-dd7b-46cd-864d-e07d11a584f7</guid><dc:creator>sdfksdfhfs</dc:creator><description>&lt;p&gt;I have tried &amp;quot;nrfjprog --recover&amp;quot; before but that didn&amp;#39;t help, after adding &amp;quot;-f nrf52&amp;quot; to that command, now everything is good. Thanks a lot for help!&lt;br /&gt;&lt;br /&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Program Custom nRF52840 Board Using SWD with nRF52840 DK v2.0.1</title><link>https://devzone.nordicsemi.com/thread/530936?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 06:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:990bf811-50cb-47d2-b8d5-9f264a02a7fc</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;Can you please run &amp;quot;nrfjprog --recover -f nrf52 --log&amp;quot; and attach the .log file if this operation fails?&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: Unable to Program Custom nRF52840 Board Using SWD with nRF52840 DK v2.0.1</title><link>https://devzone.nordicsemi.com/thread/530866?ContentTypeID=1</link><pubDate>Mon, 07 Apr 2025 15:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5df60cb0-fc77-4dcf-9493-3ef54426ed80</guid><dc:creator>sdfksdfhfs</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;when I disconnected VTG pin, you can see that nrf52840dk is shown:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1744038641761v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;After I connect VTG pin to VDDnrf on DK, this is what I get(revision number not shown) :&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1744038882362v2.png" /&gt;&lt;br /&gt;&lt;br /&gt;Btw, when connecting with external board, this is what is shown on nrf programmer:&lt;br /&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/pastedimage1744045489113v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Does this help you? What else do you want me to check? Thanks.&lt;br /&gt;&lt;br /&gt;Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Program Custom nRF52840 Board Using SWD with nRF52840 DK v2.0.1</title><link>https://devzone.nordicsemi.com/thread/530858?ContentTypeID=1</link><pubDate>Mon, 07 Apr 2025 14:16:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56e3be4c-21c9-4498-95aa-a4547b6cd1ed</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=""]&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;VDD :&lt;/strong&gt; I have connected the DK’s VDD to the custom board’s VDD.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;VTG:&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;I have connected the DK’s VTG pin to the&amp;nbsp;DK&amp;#39;s VDD.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;SWDIO:&lt;/strong&gt; Connected DK’s SWDIO to the custom board’s SWDIO pin.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;SWCLK:&lt;/strong&gt; Connected DK’s SWCLK to the custom board’s SWCLK pin.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;GND:&lt;/strong&gt; Connected DK’s GND to the custom board’s GND.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;GND Detect:&lt;/strong&gt; Connected the DK’s GND_DETECT pin to GND on the custom board.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;When VTG on the DK is shorted to NRF_VDD, the on-board-debugger (ODB) will switch to the header in question for programming.&lt;/p&gt;
&lt;p&gt;Ie. if you only connect VTG -&amp;gt; VDD, the communication should fail.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will then be a test to see that the interface has been switched.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you share any logs or similar when using nrfjprog? This can be done by appending --log to the operation.&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>