<?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 Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74954/programming-custom-board-using-nrf52-dk</link><description>We have an nRF52 DK and have developed a customer board. On the custom board we have a header with pins for power, ground, clock, and data. 
 When I connect this to the nRF52 DK according to information here I can program the custom board, most of the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 May 2021 15:43:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74954/programming-custom-board-using-nrf52-dk" /><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309302?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 15:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6bf5e1-4e70-48d3-908b-cbd0b54abe13</guid><dc:creator>Bill Westlake</dc:creator><description>&lt;p&gt;We understand that, but if I can&amp;#39;t program it successfully every time now with the DK, I am not confident that a dedicated programmer will.&amp;nbsp; I am trying to determine if there is something wrong with our custom boards, or the programming setup, or if it is just the DK.&amp;nbsp; I will talk to them about getting a programmer for this to test and see if that works better.&amp;nbsp; But spending money only to find out it doesn&amp;#39;t work well is also problematic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309196?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 11:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a181572d-1864-409b-8ee1-c52dcfba856c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi awneil!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="awneil"]I think the licence&amp;nbsp;for the on-board J-Link specifically prohibits &amp;quot;production&amp;quot; use?[/quote]
&lt;p&gt;You&amp;#39;re absolutely right (&lt;a href="https://www.segger.com/products/debug-probes/j-link/models/j-link-ob/#licensing-options"&gt;https://www.segger.com/products/debug-probes/j-link/models/j-link-ob/#licensing-options&lt;/a&gt;). I&amp;#39;ll change my wording to explicitly disallow this option.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&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: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309140?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 08:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6a60faa-9362-44bb-a353-924006b80a82</guid><dc:creator>awneil</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/74954/programming-custom-board-using-nrf52-dk/309127#309127"]For production programming, we strongly recommend that you use a dedicated debugger made for this purpose[/quote]
&lt;p&gt;+1&lt;/p&gt;
&lt;p&gt;I think the licence&amp;nbsp;for the on-board J-Link specifically prohibits &amp;quot;production&amp;quot; use?&lt;/p&gt;
&lt;p&gt;But any decent manufacturer should have production programming equipment&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309127?ContentTypeID=1</link><pubDate>Tue, 11 May 2021 07:45:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:791e1c22-f825-439e-aa20-4ff10bb43d30</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=""]When I connect this to the nRF52 DK according to information here I can program the custom board, most of the time.&amp;nbsp; However, periodically, it will act as though it programmed but the firmware does not run.&amp;nbsp; I have tried this from J-Link and SES.[/quote]
&lt;p&gt;If the flash content is verified successfully, it might indicate that the firmware isn&amp;#39;t running as it should. Try entering debug mode and see what the device executes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;I have a contractor doing some design for me, and he tells me that we also need to disconnect power from the nRF52 chip on the DK before we program, but I can find nothing about this on this site, and I prefer not to make changes to this dev kit.&lt;/p&gt;
&lt;p&gt;I am looking for some guidance because, when we go into production we are going to need to program these devices on the custom board successfully every time.&amp;nbsp; As it stands I often times have to reprogram it 10 or 12 times before it works.&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;As previously mentioned by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;, you need to power your custom board. I usually recommend that you power it from the DK itself, to ensure that the voltage is equal on both DK and custom board, but a 3V source shall&amp;nbsp;be fine.&lt;/p&gt;
&lt;p&gt;If your custom board has a coincell battery, it might be that this has been drained too low for the DK to successfully detect the voltage.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For production programming, you shall use a dedicated debugger made for this purpose (See seggers website: &lt;a href="https://www.segger.com/products/debug-probes/j-link/"&gt;https://www.segger.com/products/debug-probes/j-link/&lt;/a&gt;). Our DK&amp;#39;s are meant as a development platform only, and shall not be used in any production programming setup.&lt;/p&gt;
&lt;p&gt;&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: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309073?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 18:23:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f8b20b3-0307-43a8-a86d-453a8ab984e6</guid><dc:creator>Bill Westlake</dc:creator><description>&lt;p&gt;I see.&amp;nbsp; So if we hook up the reset line, do we connect it to the reset header on the DK during programming?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309072?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 18:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23a06160-2155-4e41-a899-abad349f30a8</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Example: If the code gets stuck in a low-power mode, where the debugger is disabled - a hardware reset can recover from that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309071?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 18:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a811d229-7666-4699-bba2-8d7aedd3ce92</guid><dc:creator>Bill Westlake</dc:creator><description>&lt;p&gt;Actually, the CE says he knows why so that the programer can reset the processor before it loads.&amp;nbsp; He is going to put in a line so we can test that.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309070?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 18:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eae4c52-f0b4-4381-8782-7e638d7b1837</guid><dc:creator>Bill Westlake</dc:creator><description>&lt;p&gt;I&amp;#39;m just the software guy, the hardware people didn&amp;#39;t put the reset line on any of the headers.&amp;nbsp; I will ask the Chief Engineer but I am sure they won&amp;#39;t be spinning a new board any time soon.&lt;/p&gt;
&lt;p&gt;How does the reset line help with loading firmware?&amp;nbsp; I am sure the chief engineer will ask!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309064?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 17:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab2e5d31-5ea2-4845-a77d-33ca8c3f8291</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;reset as in the nRF reset pin.&lt;/p&gt;
&lt;p&gt;You really &lt;em&gt;&lt;strong&gt;do&lt;/strong&gt;&lt;/em&gt; want access to that!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309059?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 16:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e57182a2-cda8-4851-b2a2-6b46aff50082</guid><dc:creator>Bill Westlake</dc:creator><description>&lt;p&gt;I don&amp;#39;t have access to the reset on the custom board.&amp;nbsp; You mean reset to reset or to something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309050?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 15:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed0d9b51-ddc1-47af-856a-0c60fab4c059</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;adding RESET might help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309046?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 15:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bb9829d-3e67-4bb7-ab61-dc437e8b5759</guid><dc:creator>Bill Westlake</dc:creator><description>&lt;p&gt;I don&amp;#39;t have a stand-alone J-Link.&amp;nbsp; The custom board is 3.3V.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, I forgot to mention, that sometimes it won&amp;#39;t connect at all.&amp;nbsp; I power both the custom and DK on and off several times and then it will connect.&lt;/p&gt;
&lt;p&gt;my connection is as follows:&lt;/p&gt;
&lt;p&gt;Custom VDD to DK VDD and VTG&lt;/p&gt;
&lt;p&gt;Custom SWD IO to DK SWD IO&lt;/p&gt;
&lt;p&gt;Custom SWD CLK to DK SWD CLK&lt;/p&gt;
&lt;p&gt;Custom GND to DK GND DETECT and GND&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming Custom Board using nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/309042?ContentTypeID=1</link><pubDate>Mon, 10 May 2021 15:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80ece244-c2f7-485a-aedd-d10232f78f31</guid><dc:creator>awneil</dc:creator><description>[quote userid="104211" url="~/f/nordic-q-a/74954/programming-custom-board-using-nrf52-dk"]he tells me that we also need to disconnect power from the nRF52 chip on the DK before we program,[/quote]
&lt;p&gt;No, he&amp;#39;s wrong.&lt;/p&gt;
&lt;p&gt;If the DK detects power from an external target, it will switch the debug connection to that target.&lt;/p&gt;
&lt;p&gt;Have you tried this with a standalone J-Link (or other SWD adaptor) ?&lt;/p&gt;
&lt;p&gt;What voltage is your custom board running at? Note that the nRF52 DK only supports 3.3V external targets.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>