<?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>Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116976/programming-a-custom-external-board-using-nrf52832-dk</link><description>Hello, 
 For my project I am making a custom circuit board which is pretty much just the nRF52832 chip and the surrounding capacitors and whatnot. I&amp;#39;d like to program this circuit board using my nRFdk, but am unsure how to do it. I actually have two of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Dec 2024 23:44:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116976/programming-a-custom-external-board-using-nrf52832-dk" /><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/514821?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 23:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94dc6c49-883f-4a5a-b909-22b2d22c56a2</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Ok, ok - P20 it is. P20 was designed for a plug-in shield, which is why there is no&amp;nbsp;physical GND on P20 (pin 8 is not GND). There are 2 lines missing from the photo posted earlier, SH_VTG and SH_GND_DETECT, pins 3 and 8. These 2 sense inputs (note not outputs) should be connected to the external board as otherwise if locally shorted to VDD and GND at the DK and the external board is removed the DK will be programmed for the code intended for the external board. Use of both&amp;nbsp;&lt;span&gt;SH_VTG and SH_GND_DETECT is black magic hidden from us users, but both are required for reliable operation. Supply of VDD and GND is fine as you have them already.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;20-pin P20:
===========
1  VDD_nRF        DK 3V output to DUT (Connected to VDD by SB9)
2  VDD            DK 3V output to DUT (Connected to VDD_nRF by SB9)
3  SH_VTG         Input from DUT to detect shield VDD
4  SH_SWDIO       SWDIO to DUT
5  SH_SWCLK       SWCLK to DUT
6  SH_SWO         (not required)
7  SH_RESET       (not required)
8  SH_GND_DETECT  Input from DUT to detect shield GND
DUT= external board, aka Device Under Test&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/514816?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 21:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97b3f01a-9a23-4ac3-babf-520db7bcb1c8</guid><dc:creator>connorshannon</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand. I do not plan on using a 10-way ribbon. Are the connections that I made wrong?&amp;nbsp;I&amp;#39;m just looking for a clear explanation of what connections I need to make to program an external nRF52832 using my development kit, which I don&amp;#39;t think is a particularly unique situation. However, I keep seeing many different ways depending on which post I look through.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/514383?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 22:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3be4171e-a2b3-4f51-a831-3a112b300afc</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Have a look at my response to this post; not only does the VDD on both DK and custom board have to match (same voltage) but also the GND sense and VDD sense lines are required.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35273/programming-prototype-board-from-52-dk/136421"&gt;programming-prototype-board-from-52-dk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is what I use on target boards using modules which have both the 10-way .05&amp;quot; pitch connector (same as P19) and a Tag-Connect 6-pin connector:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;10-Pin Cortex Debug Connector to 6-Pin TC2030 Footprint
=======================================================
1 VCC Sense   1   (must connect to a power source eg P20)
3 GND         5
5 GND         5
7 NC / RTCK   -
9 GND Detect  5
2 SWDIO / TMS 2
4 SWCLK / TCK 4
6 SWO / TDO   6   (not required)
8 NC / TDI    -
10 nRESET     3   (not required)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The target boards have the connection from the 10-way header as described above (all of them, no missing Gnd for example). I use a simple 10-way ribbon between nRF52DK P19 and the target board header.&lt;/p&gt;
&lt;p&gt;The 6-pin Tag-Connect is defined as this, which also works using the 6-pin to 20-pin J-TAG adapter board:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;1 VCC          (connect to a power source from nRF DK eg P20)
2 SWDIO / TMS
3 nRESET       (not required)
4 SWCLK / TCK
5 GND          (also connected to GNDDetect)
6 SWO / TDO    (not required)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/514379?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 21:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df9b687f-56b5-4d87-bb37-63ecb343f9c8</guid><dc:creator>connorshannon</dc:creator><description>&lt;p&gt;Okay, lets completely forget about programming my other dk. All I want to do is program a custom, external board, shown here&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/pastedimage1733865353155v2.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;On this external board, which is mostly just the nRF52832 chip, I have access to Vdd, ground, swdio, and swdclk. My current connections are as follows:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRFDK&amp;nbsp; &amp;nbsp; &amp;nbsp;/&amp;nbsp; &amp;nbsp; Custom&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Gnd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt;&amp;nbsp; &amp;nbsp;Gnd&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Vdd nrF&amp;nbsp; &amp;nbsp;--&amp;gt;&amp;nbsp; &amp;nbsp;Vdd&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SWDIO&amp;nbsp; &amp;nbsp; --&amp;gt;&amp;nbsp; &amp;nbsp;SWDIO&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SWDCLK --&amp;gt;&amp;nbsp; &amp;nbsp;SWDCLK&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Also, I have connected Vdd to Vtg on the nrfdk debug out pins. The schematic should match the one shown here, which seemed to work for someone else.&lt;/p&gt;
&lt;p&gt;&lt;img style="height:291px;" height="931" src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5123.Untitled.png" width="480" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;My custom board is not powered, and the dk I am using as a programmer is connected via the USBC to my laptop and is getting power through that. When I go to flash my code in VSCODE, I get the following error:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[error] [ Client] - Encountered error -102: Command read_device_info executed for 139 milliseconds with result -102&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;[error] [ Client] - Encountered error -102: Command read_memory_descriptors executed for 28 milliseconds with result -102&lt;br /&gt;Failed to read device memories.&lt;/p&gt;
&lt;p&gt;I currently don&amp;#39;t have access to the reset pin on my custom board, because I didn&amp;#39;t think it was needed to program it. However, the image in this discussion post &lt;a id="" href="https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/UG/dk/ext_programming_support_P20.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/UG/dk/ext_programming_support_P20.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;seems to show that the reset pin is required.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the schematic in the link the correct way to connect an external board and program it, or is my issue somewhere else? Any clarification would be greatly appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/513773?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 08:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38cfa95c-c08a-4cbf-8aaf-9c016ee592e4</guid><dc:creator>runsiv</dc:creator><description>[quote user="connorshannon"]&lt;p&gt;The issue is that I don&amp;#39;t have the 10 pin cable, and I would consider getting it, but I don&amp;#39;t plan on using it for my custom board, so there&amp;#39;s no real point in using it to program the other dk (since this was just to test connections before programming my custom board). It sounds like there is no way to access the nRF52832 chip directly, meaning that I can&amp;#39;t program the external dk unless I have the special cable.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;It might work if you use the p20 connect and connect as shown in figure 2 in the custom programming link. I can&amp;#39;t guarantee anything but it&amp;#39;s worth the try. My honest opinion would be to just get a 10 pin cable as the time spent trying to get the custom connection to work might easily surpass the cost of just getting a cable.&amp;nbsp;&lt;/p&gt;
[quote user="connorshannon"]&lt;p&gt;As far as programming the nRF52832 chip directly, would I just follow the schematic connections in the post that you shared with me?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;That is correct just remember you need the gpio voltage on both devices&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/513680?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 15:29:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5c44675-de4e-4d62-b658-81c43deb7329</guid><dc:creator>connorshannon</dc:creator><description>&lt;p&gt;The issue is that I don&amp;#39;t have the 10 pin cable, and I would consider getting it, but I don&amp;#39;t plan on using it for my custom board, so there&amp;#39;s no real point in using it to program the other dk (since this was just to test connections before programming my custom board). It sounds like there is no way to access the nRF52832 chip directly, meaning that I can&amp;#39;t program the external dk unless I have the special cable.&lt;/p&gt;
&lt;p&gt;As far as programming the nRF52832 chip directly, would I just follow the schematic connections in the post that you shared with me?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/513560?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 08:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46de74c8-1c09-4fd3-bb91-7d69cc7148c1</guid><dc:creator>runsiv</dc:creator><description>[quote user="connorshannon"]&lt;p&gt;1. Can I program an external nRF52832 using the development kit I have (assuming I have access to all the pins on the external chip)?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes&lt;/p&gt;
[quote user="connorshannon"]&lt;p&gt;2. Is it possible to test this by programming another development kit, or is there no way to directly access the nRF52832 pins on the development kit?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes, just use the a 10 pin cable to test between the DK&amp;#39;s. Debug out to debug in&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/513527?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 23:38:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46b926df-933e-4520-8b00-75735ababe74</guid><dc:creator>connorshannon</dc:creator><description>&lt;p&gt;By that I meant that effectively my custom board is just the nRF52832 chip, which I am trying to program using my development kit. On my custom board, I don&amp;#39;t have the special 9 pin connector. I talked a little bit about my problem &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/116322/programming-an-external-board-using-nrf52dk"&gt;here&lt;/a&gt;&amp;nbsp;and got some feedback which I was trying to clarify by making this post. I&amp;#39;ll try the connections in the page you shared tomorrow.&lt;/p&gt;
&lt;p&gt;I suppose that the simplest version of the questions I have are:&lt;/p&gt;
&lt;p&gt;1. Can I program an external nRF52832 using the development kit I have (assuming I have access to all the pins on the external chip)?&lt;/p&gt;
&lt;p&gt;2. Is it possible to test this by programming another development kit, or is there no way to directly access the nRF52832 pins on the development kit?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming a custom external board using nRF52832 dk</title><link>https://devzone.nordicsemi.com/thread/513340?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2024 07:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d695fd88-b300-49fa-922c-cc62f240a3db</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you elaborate a bit regarding the &amp;quot;only the connections to the nRF52832&amp;quot;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In general you need at least VDD, SWCK, SWDIO and GND to flash a board. You can read more about programming a board using custom connections for the nRF52832 &lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/UG/dk/ext_programming_support_P20.html"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>