<?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>Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/129030/custom-board-swd-programming-with-nrf52-dk</link><description>Hi everyone, 
 I am trying to use a PCA10040 (nRF52 DK) as an external debugger to program a custom nRF52832 target board, but I keep running into J-Link backend errors ( -256 and -102 ). 
 Interestingly, my board&amp;#39;s interface/debugger chip is an onboard</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Aug 2026 11:41:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/129030/custom-board-swd-programming-with-nrf52-dk" /><item><title>RE: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570622?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2026 11:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccbef4af-d2db-4964-ae89-77ea29bf00de</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="krf"]any update?[/quote]
&lt;p&gt;It does not help to bump a thread less than 16 hours since your last update.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: Do you have any other nRF DK&amp;#39;s to use as a programmer?&lt;/p&gt;
&lt;p&gt;Q2: If no; You have one of these cables, correct?&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/pastedimage1787744374903v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you connect this on your nRF52-DK, from P19 (Debug out) to P18 (Debug in), to verify that the DK itself switches the debug port correctly?&lt;/p&gt;
&lt;p&gt;If you are then able to flash/erase/connect to the&amp;nbsp;&lt;strong&gt;on-board nRF52832&lt;/strong&gt; device, then that has been verified.&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: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570611?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2026 08:26:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e046a3-8c78-44cb-911e-259014b68cf3</guid><dc:creator>krf</dc:creator><description>&lt;p&gt;any update?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570595?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 16:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e414f1eb-d0c0-4e00-ab71-a6324122763d</guid><dc:creator>krf</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp; After new board (same custom pcb but just newly swd header wires soldered), i examined swd lines with oscilloscope and find out pulses at swdio but nothing in swclk. Even if i plug out custom board from dk&amp;#39;s P20( but keeping VTG to 3V) behavior is same. As i know host(DK) must sent clock pulses before swdio line communication start but it doesn&amp;#39;t even try it.&lt;/p&gt;
&lt;p&gt;And i tried it with VTG unplugged, so i can observe on-board nrf52832 swd communcaition and yes swclk starts very early (almost 50+ cycles) as expected.&lt;/p&gt;
&lt;p&gt;So do you have any suggest?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570576?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 10:59:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37666494-5453-4b68-a7e8-10a18a0a9d70</guid><dc:creator>krf</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp; I supplied my custom board with external supply and connect that supply also to VTG. I used it as input already and also i supplied custom board from dk itself with VTG is connected to DK&amp;#39;s VDD but let me try other boards too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570574?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 10:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe2e12ec-213c-46e6-b1ca-a7b734f7ae29</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;VTG shall be connected to your custom boards VDD. VTG is an input, seen from the programmer, to select the correct debug port (P20 in your case).&lt;/p&gt;
&lt;p&gt;You should power your custom board from the nRF52-DK, ie. with 3.0V.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="krf"]&lt;p&gt;Q2: I didn&amp;#39;t yet try it with another board but i will try it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also i want to mention it P19 select pin is at 3V when i left it float. Is it problem?&lt;/p&gt;[/quote]
&lt;p&gt;Please see here on how to connect on P20:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/r/bundle/ug_nrf52832_dk/page/ug/dk/ext_programming_support_p20.html"&gt;https://docs.nordicsemi.com/r/bundle/ug_nrf52832_dk/page/ug/dk/ext_programming_support_p20.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And here on P19:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/r/bundle/ug_nrf52832_dk/page/ug/dk/ext_programming_support_p19.html"&gt;https://docs.nordicsemi.com/r/bundle/ug_nrf52832_dk/page/ug/dk/ext_programming_support_p19.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;SWD0_SELECT must be grounded.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="krf"]I didn&amp;#39;t yet try it with another board but i will try it.[/quote]
&lt;p&gt;Yes, please test with more than one custom board to see if the behaviour changes.&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: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570573?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 10:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fe30ebe-e623-48de-b919-f207212c1bf6</guid><dc:creator>krf</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: When i supplied my custom board with 3V, i connect this pins to P20 of DK. I didn&amp;#39;t want to send picture because i don&amp;#39;t believe it would be observable (bunch of jumpers there are...). Here is the pins of custom board programming header: Vsupply, GND, SWO, N_RESET, SWCLK, SWDIO. Do not&amp;nbsp; be stuck on for MCU_2V5_L label whole mcu supply seperated by headers and those whole tests made with seperated supply line!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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/nrf52832_5F00_custom.png" /&gt;&lt;/p&gt;
&lt;p&gt;Q2: I didn&amp;#39;t yet try it with another board but i will try it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also i want to mention it P19 select pin is at 3V when i left it float. Is it problem?&lt;/p&gt;
&lt;p&gt;Note: With this board there was 1uF cap on reset line which makes reset line unstable with first tryings ( It was stall at different voltages like 1.25V, 0.78V etc.) . After removing cap now reset line is stable at 3V but i suspect it if somehow it might be broke chip. Is it possible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570572?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 10:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9042fe65-f695-4cda-811f-6b0ee7f36c1d</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;The errors you are seeing points towards a incorrect connection to the external board.&lt;/p&gt;
[quote user="krf"]&lt;p&gt;DEC3 pin is at 3V&lt;/p&gt;
&lt;p&gt;DEC2 is at 1.26V&lt;/p&gt;
&lt;p&gt;DEC4 is at 1.26V&lt;/p&gt;
&lt;p&gt;DEC1 is at 1.09V&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;These are all within the expected area, assuming VDD=3.0V.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: Can you please share a picture on how you&amp;#39;ve setup the connection from DK to custom board?&lt;/p&gt;
&lt;p&gt;Q2: Does this occur on more than one board?&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: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570571?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 10:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef0b72cb-3778-413e-bcc7-dce3b38d7ed6</guid><dc:creator>krf</dc:creator><description>&lt;p&gt;İ verified that if i left VTG unconnected onboard nrf52832 flashed otherwise P19 or P20 selected. I left unconnected p19 and suspect about it. Somehow P19 can be selected? I use P20 connector&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570570?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 10:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0bfab47-f8e9-400b-b560-7d7f1faa85b1</guid><dc:creator>krf</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/paka"&gt;PaKa&lt;/a&gt;&amp;nbsp;Yes i did and specified it in my question. VTG, SWDIO, SWCLK, RESET, GND , VDD. Also i tried both - external supply for custom board and supply from nrf52 dk VDD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570567?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 09:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd28d44d-ce1e-4772-8669-cc9df66d9aac</guid><dc:creator>PaKa</dc:creator><description>&lt;p&gt;There are several more lines needed to program external targets, have you added all these? You can see which ones in the DK HW user guide. All lines listed are required, not only the 2 SWD lines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board SWD programming with nrf52-dk</title><link>https://devzone.nordicsemi.com/thread/570565?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2026 09:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a96b3ba-682a-4dc3-9a96-73bd0eb7864c</guid><dc:creator>krf</dc:creator><description>&lt;p&gt;Also :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;DEC3 pin is at 3V&lt;/p&gt;
&lt;p&gt;DEC2 is at 1.26V&lt;/p&gt;
&lt;p&gt;DEC4 is at 1.26V&lt;/p&gt;
&lt;p&gt;DEC1 is at 1.09V&amp;nbsp;&lt;/p&gt;
&lt;p&gt;when i supply VDD pins with 3V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>