<?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 custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127028/unable-to-flash-custom-nrf52840-board-using-nrf52840dk---device-error-setting-the-debug-port-select-register-failed-while-powering-up-sys-and-debug-regions-unknown-error-in-the-j-link-dll-error-code--1</link><description>I am using nRF Connect SDK 3.2.1 and Toolchain 3.2.1. The hardware I am using is the nRF52840DK and a custom board with the Raytac MDBT50Q-P1MV2 - which contains the nRF52840. I created a custom board in the SDK and built a program that blinks an onboard</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2026 20:49:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127028/unable-to-flash-custom-nrf52840-board-using-nrf52840dk---device-error-setting-the-debug-port-select-register-failed-while-powering-up-sys-and-debug-regions-unknown-error-in-the-j-link-dll-error-code--1" /><item><title>RE: Unable to flash custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/thread/563912?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2026 20:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92ef051f-2a67-4acd-a258-091477388f51</guid><dc:creator>PjGlasso</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;You are gonna Kick yourself if it is what I think...:grin:&lt;/p&gt;
&lt;p&gt;The Cable is WAY TOO long. the errors are from the Jlink,&lt;/p&gt;
&lt;p&gt;I have been through this also. Took a while to figure it out. also Don&amp;#39;t use the Jlink to power the Board at ALL, only provide the same VDD as your board to the vRef.. be sure the Board config is correct in Nrf for Desktops.&lt;/p&gt;
&lt;p&gt;Try it use a 3 inch cable. and check out the pics I have on here of How I connected up SWD to nRF52 &amp;amp; nRF54 and get it to work.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;GL:-) PJ :v:&lt;/p&gt;
&lt;p&gt;I have some videos too, of it over on the Seeed Studio support forum.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://forum.seeedstudio.com/latest"&gt;https://forum.seeedstudio.com/latest&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/thread/561912?ContentTypeID=1</link><pubDate>Tue, 24 Feb 2026 08:14:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4357bc7-790b-4207-bea0-66ea45e94b98</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Lonnie&lt;/p&gt;
&lt;p&gt;If the custom board has VDDH floating, it&amp;#39;s in an unspecified state. I&amp;#39;m sorry I didn&amp;#39;t spot that until now, but when the device operates in normal VDD mode, VDDH definitely needs to be shorted to the VDD net.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/thread/561739?ContentTypeID=1</link><pubDate>Fri, 20 Feb 2026 19:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9be3774-5e29-4af0-9cc4-bda4a6d5cb53</guid><dc:creator>LonnieB</dc:creator><description>&lt;p&gt;Simon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First, thank you for your expert advise and guidance. I would like to ask once more for your help as I think I uncovered something significant, and I believe a Nordic expert is needed to answer my question.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bottom line - I believe my custom board is pulling down the output voltage of the SWDIO and SWCLK lines of the DK or J-Link)&lt;/p&gt;
&lt;p&gt;In order to confirm the signaling is correct between the DK (or J-Link) and my custom board I connected only the necessary signal lines (SWDIO, SWCLK, GND and SWO_SEL) using breakout boards and jumpers. The DK and the J-Link both continued to give the same errors (they cannot connect to the custom board). I then attached my oscilloscope and logic analyzer to the lines. The O-scope showed data and clock on the respective lines, but the voltage shown was only 2.23V. My logic analyzer was able to decode the data and clock even with this reduced voltage and I have attached a couple of screen shots of that data (I looked for SWD protocol info for Nordic and J-Link to understand what was sent but I have not been able to locate that info yet - perhaps you can analyze the signals and tell if there is comms between the custom board and DK - or if the data is only that which the DK sends out - with no response. This is my hunch). I then removed the SWDIO and SWCLK signals from the custom board and connected them only to the o-scope. I then tried to connect the JLink probe to the custom board. The o-scope showed SWDIO data at 3.1V. So it appears that the custom board is pulling the signal lines low enough (2.3V vs 3.1V) that they are below the voltage threshold for a &amp;quot;1&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Going back to my previous note, could the fact that VDDH is floating, and not tied to VDD cause this? If not what else could cause this phenomenon? On my PCB, SWDIO and SWCLK are point to point from the RAYTAC module to the connector (and a test point) - so nothing else could be pulling them low.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help,&lt;/p&gt;
&lt;p&gt;Lonnie&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&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/SWD_5F00_DK_5F00_try_5F00_to_5F00_connect_5F00_to_5F00_Custom_5F00_board_5F00_Zoom_5F00_out.png" alt=" " /&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/SWD_5F00_DK_5F00_try_5F00_to_5F00_connect_5F00_to_5F00_Custom_5F00_board_5F00_Zoom_5F00_In.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/thread/561607?ContentTypeID=1</link><pubDate>Thu, 19 Feb 2026 13:11:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7dab982-24c2-4fe8-92fa-a7657ce56c6a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The behavior here definitely sounds like a hardware issue since neither the DK or the J-Link is able to connect to it.&lt;/p&gt;
&lt;p&gt;I asked one of my colleagues with more HW expertise than me. There is nothing obviously wrong, but for possible future revisions, you can improve the grounding in general on your board.&lt;/p&gt;
&lt;p&gt;One thing to note though is that you run the J-Link on full speed. During connection issues like this you can try to lower the J-Link speed to see if that lets you connect and program the boards.&lt;/p&gt;
&lt;p&gt;You can also, just to try connect the 10 pin cable 180 degrees the other way in case that is the issue (a common one if the header isn&amp;#39;t supported with plastic to show which way it should be connected).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/thread/561531?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 18:33:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7db60f36-04af-4bbf-8163-7617d547ce62</guid><dc:creator>LonnieB</dc:creator><description>&lt;p&gt;Simon,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve not installed the nrfutil package yet - but I did try the &amp;quot;recover board&amp;quot; command from within the connected devices menu in nrf connect for VS Code. I get the same results. Here is what I have done since our last communication:&lt;/p&gt;
&lt;p&gt;1) I rang out the SWD connector signals (that I could reach) from my custom board to the DK to ensure they were as I conceived. They are as shown in the schematic.&lt;/p&gt;
&lt;p&gt;2) I powered the custom board at the VCC rail to 3.0V. I noted that the board consumed 5 mA vs 1 mA when I powered it through the regulator. So either back feeding the regulator consumed 4mA or the regulator wasn&amp;#39;t working correctly and it couldn&amp;#39;t supply 5 mA. So I connected a 270 ohm resistor to VCC and GND and powered the board through the regulator; it provided 13 mA as expected - so the regulator works well and it consumes 4 mA when back-fed - so I&amp;#39;m not entirely sure I want to power the board this way unless I have to.&lt;/p&gt;
&lt;p&gt;3) I connected the board to power and to a Segger J-Link EDU mini, just to see if it would work. I received a connection error for the J-Link as well - it is suspiciously like the nrf connect error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SEGGER J-Link Commander V9.12 (Compiled Jan 21 2026 12:09:03)&lt;br /&gt; DLL version V9.12, compiled Jan 21 2026 12:08:09&lt;br /&gt; &lt;br /&gt; Connecting to J-Link via USB...O.K.&lt;br /&gt; Firmware: J-Link EDU Mini V2 compiled Dec 10 2025 15:50:17&lt;br /&gt; Hardware version: V2.00&lt;br /&gt; J-Link uptime (since boot): 0d 00h 03m 04s&lt;br /&gt; S/N: 802003272&lt;br /&gt; License(s): FlashBP, GDB&lt;br /&gt; USB speed mode: Full speed (12 MBit/s)&lt;br /&gt; VTref=3.301V&lt;br /&gt; &lt;br /&gt; &lt;br /&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;: NRF52840_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; &amp;nbsp; T) cJTAG&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;1000&lt;br /&gt; Device &amp;quot;NRF52840_XXAA&amp;quot; selected.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; Connecting to target via SWD&lt;br /&gt; InitTarget() start&lt;br /&gt; InitTarget() end - Took 13.0ms&lt;br /&gt; InitTarget() start&lt;br /&gt; InitTarget() end - Took 6.79ms&lt;br /&gt; Error occurred: Could not connect to the target device.&lt;br /&gt; For troubleshooting steps visit: &lt;a id="" href="https://kb.segger.com/J-Link_Troubleshooting"&gt;https://kb.segger.com/J-Link_Troubleshooting&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;4) I also assembled another board - in case I did something wrong on the first one (and I also wondered if I didn&amp;#39;t give enough &amp;quot;soak&amp;quot; time in the reflow process to heat the Raytac module). The 2nd board - with more soak time - has exactly the same output on the exposed pins, and gives the same errors on nrf connect and J-link as the first board.&lt;/p&gt;
&lt;p&gt;5) I then contacted Raytac for tech support but they are celebrating the New Year in Taiwan - so tech support will have to wait with them until next week.&lt;/p&gt;
&lt;p&gt;6) Finally, I though I found a problem in my schematic - I did not connect VDDH to 3.3V. I changed the power scheme several times, and I must have forgotten to short it to VDD. However, in searching the Dev Zone I found a reply from you several years ago that says you don&amp;#39;t need to short VDD and VDDH - at least to program the board - Here is an&amp;nbsp; excerpt:&lt;/p&gt;
&lt;p&gt;***************&lt;/p&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have checked with my colleagues, and there shouldn&amp;#39;t be any problem of letting VDDH float while powering the chip in normal voltage mode while you program it. It is just not recommended to leave it floating over time, which is why the PS tells you to short them. Sorry for the confusion.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;p&gt;********************&lt;/p&gt;
&lt;p&gt;So I&amp;#39;ll try to load &amp;quot;nrfutil&amp;quot; and see if I get anything different there. So at this point I would appreciate a&amp;nbsp;&lt;span&gt;full HW review - I have included a zip file of the PCB gerbers.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks so much for your advice and&amp;nbsp; time,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Lonnie&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF52840_5F00_test_5F00_board_5F00_2025_2D00_12_2D00_08.zip"&gt;devzone.nordicsemi.com/.../nRF52840_5F00_test_5F00_board_5F00_2025_2D00_12_2D00_08.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/thread/561432?ContentTypeID=1</link><pubDate>Wed, 18 Feb 2026 08:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c834127-a4bc-4098-aeec-580419578426</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Lonnie&lt;/p&gt;
&lt;p&gt;Are you able to do other nrfutil commands with the custom board connected to your DK, like nrfutil device recover for example. If that fails it might be worth a shot to test with the 3.0V, but I think it should work with 3.3V.&lt;/p&gt;
&lt;p&gt;Other than that I don&amp;#39;t really see what else could be wrong. If you&amp;#39;d like we could do a full HW review if you share your PCB layout files (preferably gerber format).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/thread/561273?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2026 15:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d0c0a27-a5bf-4b01-8377-7a5152cb8d59</guid><dc:creator>LonnieB</dc:creator><description>&lt;p&gt;Simon,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. I copied much of the design from the nrf52840 feather, including the connectors and their pinouts, and I checked voltages while my board was connected to the DK - and they look correct - so I think the 10-pin cable is connected correctly. The schematic attached is the full schematic (it is a test board with access to I2C and some GPIO pins that I can use to test code and various sensors before I spin a production board) and J2 is the 10 pin header - it is center bottom of the schematic.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Powering my board from a 3.0V (vs 3V3) supply is probably doable (I&amp;#39;d have to&amp;nbsp;connect my power supply directly to the VCC rail of the board without going through the regulator, but if it is threshold levels that you are concerned about, I doubt that my board wouldn&amp;#39;t recognize a 3V signal. I can try if you have doubts.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Lonnie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash custom nRF52840 board using nRF52840dk - Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).</title><link>https://devzone.nordicsemi.com/thread/561268?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2026 15:24:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9fbb0c8-f66f-4ce8-a02b-879c02c76aa5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Lonnie&lt;/p&gt;
&lt;p&gt;This sounds strange. The setup looks correct here. A common mistake is that the 10-pin cable is connected the wrong way if you don&amp;#39;t have the 10 pin header with plastic to make sure it can only be mounted one way.&lt;/p&gt;
&lt;p&gt;If not, are you able to set the custom board voltage to 3.0V, since that is the DK&amp;#39;s supported voltage by default.&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/ext_programming_support_P19.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52840_dk/page/UG/dk/ext_programming_support_P19.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this the full schematics of your board? Which of the headers in the schematics is the 10 pin header?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>