<?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 Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119603/unable-to-flash-nrf52832-using-nrf52840dk-using-nrf-programmer-error-code--1-failed-to-write-debugport-register</link><description>Hello Nordic Support Team, 
 I&amp;#39;m encountering a persistent issue when I try to flash an nRF52832 board using an nRF52840DK (PCA10056, nRF52840_xxAA_REV3) with nRF Programmer v4.5.0 . The setup was working previously using the VS Code extension (as described</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Mar 2025 13:08:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119603/unable-to-flash-nrf52832-using-nrf52840dk-using-nrf-programmer-error-code--1-failed-to-write-debugport-register" /><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/527846?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 13:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71f68987-cc04-4f9d-a6b9-d7ca3a3146af</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thank you for providing the log. Not surprisingly, the log shows that communication between the debugger and the&amp;nbsp;nrf is failing. This is often an indication of a connection issue or mismatched IO voltages between the debugger and the target. Or that he target may not be properly powered.&lt;/p&gt;
&lt;p&gt;Do you have a voltmeter you can use to measure the VDD voltage on the nRF52840 DK and voltage on the&amp;nbsp;&lt;span&gt;SWDIO line from the 52832 target (when *not* connected to the debugger)?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/527275?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 21:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d092776d-3652-47ea-aa1d-1a8da7ee41a5</guid><dc:creator>xutengl</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1104.log.log"&gt;devzone.nordicsemi.com/.../1104.log.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/527243?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 16:08:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:072631ae-0157-45dc-b70e-5a2ae520ac36</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;This command should&amp;nbsp;have created&amp;nbsp;a file name log.log in your current directory (C:\Users\xl). Can you please post that file here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/527126?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 10:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0f0f249-59f6-4daf-b1f2-ed1b5cb3a315</guid><dc:creator>xutengl</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;C:\Users\xl&amp;gt;nrfjprog --recover --log
[error] [ Worker] - An unknown error.
[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 218 milliseconds with result -102
ERROR: Unable to connect to a debugger.
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/526572?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 14:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba22ea98-2178-4ccc-9c74-c8950da522fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for confirming that&amp;nbsp;&lt;span&gt;SWO_SEL is tied to ground.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]&lt;code&gt;nrfjprog --recover -f NRF52 --snr 1050264751&lt;/code&gt; resulted in error &lt;code&gt;-21&lt;/code&gt;.[/quote]
&lt;p&gt;This looks like an uncommon error code to be returned from nrfjprog.&lt;/p&gt;
&lt;p&gt;&lt;span&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/5775.pastedimage1741615614469v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe_return_codes.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe_return_codes.html&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Please run &amp;quot;nrfjprog --recover --log&amp;quot; and post the log file here.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/526470?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 05:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345629ec-166f-4f13-9124-813106b22453</guid><dc:creator>xutengl</dc:creator><description>&lt;p&gt;Hi Vidar&lt;/p&gt;
&lt;p&gt;In case&amp;nbsp;&lt;span&gt;339001, I realised that the SWO_SEL pin must be tied to GND, which is still tied to GND. The solder bridge SB19 is still connected, proving voltage reference to the DK.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;I also verified the power supply to the custom board is 3.3V, and all SWD pins are securely connected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there anywhere else I should look into?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/526469?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 05:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d09e988f-0970-441f-bc9a-b98e439fa6d5</guid><dc:creator>xutengl</dc:creator><description>&lt;p&gt;Hi, Thanks for your response, but I cannot find a current measurement header on my nrf52840DK:&amp;nbsp;&lt;a id="" href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-DK/Download"&gt;https://www.nordicsemi.com/Products/Development-hardware/nRF52840-DK/Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/526384?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 15:01:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b2780fa-3103-46fb-a22a-69b60aea143e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The errors indicate that there may be some connectivity issue between the DK and your&amp;nbsp;custom board preventing the debug probe from communicating with the target . There could also be mismatching IO voltages that causes the communication to fail. Is the SWD0_SEL pin still tied to GND?&amp;nbsp;&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/pastedimage1741359674891v19.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Flash nRF52832 Using nRF52840DK using nRF Programmer: Error Code -1 (Failed to Write DebugPort Register)</title><link>https://devzone.nordicsemi.com/thread/526307?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 09:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8451f317-5e09-42b8-8b96-d57aed78a782</guid><dc:creator>RaymondMango</dc:creator><description>&lt;p&gt;Hi, make sure&amp;nbsp;&lt;span&gt;the jumper on the nRF Current Measurement header is in place. I had the same issue thats what I did&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>