<?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>Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22391/error-when-programming-a-custom-board-using-nrf52-dk</link><description>Dear colleagues, 
 I am trying to erase / program the custom board ( with nRF52832 SoC installed) using nRF52-DK. The setup looks like that: 
 
 nRF52-DK Custom / External
Board 
 VDD ------+-------------&amp;gt; VDD 
 VTG ----+/ 
 GND --------------</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Jun 2017 07:40:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22391/error-when-programming-a-custom-board-using-nrf52-dk" /><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88060?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 07:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f66138-277e-49e1-bcc8-e70048ed09fe</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;Finally, the issue was resolved. The problem was due to the fact that Pin DEC2 (32) was grounded while it should be left unconnected if using a QFN package.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88041?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 14:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9744cbad-f342-415e-b952-17c6778595ba</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;Thank you for your suggestion, Hung Bui! Nordic&amp;#39;s local distributor in Russia kindly agreed to test our board with oscilloscope, so once we figure out the root of the problem, I will post it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88040?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 12:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd15c815-aa5a-4e8e-aef9-c953d466c25a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any problem in the photo.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have other idea of what could be wrong. Just suggest you to test on a fresh board with no component populated. Just the nRF52 chip, some decoupling capacitors and then connect:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3.3 V, GND, SWDIO, SWDCLK&lt;/strong&gt; from the DK (try also the DEBUG OUT port) to the chip
Connect 3.3V from the chip back to VTG on the DK.&lt;/p&gt;
&lt;p&gt;It should work with this minimum set-up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88057?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 21:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4104e388-45d2-4551-9780-d7aedc73e2cf</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;JD, we tried to do it without GND DETECT, but, unfortunatelly, it did not help. We also tried another nRF52-DK, but it still did not work, so DK is not the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88043?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 21:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e70cc20-94b7-4528-8e6b-ecee4c1e80dd</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;I have just added the photo.
We tested it with another DK, and we also tried other custom boards - it still did not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88042?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 11:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ea40082-4bfb-4acc-873d-73dd29b6b785</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you provide a close up photo on how you mount the chip ? Do you have another board to test ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88059?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 08:40:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e87130e0-a6f7-4ea4-9561-c23f09d0bf4f</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Maybe not needed but they don&amp;#39;t harm (= if GND Detect is grounded it should not exhibit errors like Artem reports).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88058?ContentTypeID=1</link><pubDate>Tue, 30 May 2017 03:36:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92d15230-881c-464a-92cc-5066f3a0f78f</guid><dc:creator>JD</dc:creator><description>&lt;p&gt;You don&amp;#39;t need GND DETECT, just connect VTG to VDD, SWD pins and power pins from the DK to your custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88056?ContentTypeID=1</link><pubDate>Sun, 28 May 2017 15:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ba48fc2-b231-4cb8-877a-dbb5a662961c</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;I tried to power the custom board from 12V as you suggested, but it still did not work. I updated the question with voltage levels when the custom board is powered from the external power supply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88055?ContentTypeID=1</link><pubDate>Sun, 28 May 2017 09:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e939401-9129-4e71-a04b-2b3d51a80177</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;We already did it on Windows machine but also did not have luck with it :( Today I will try to power the custom board with 12V and see if it will help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88054?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 20:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21d1bcfe-3d88-42bc-a7b3-611a888db2ef</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Well then it looks like voltmeter is OK. No chance to run nrfjprog or nRFgo Studio on different machine (with Windows)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88053?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 19:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2deb7595-60d6-480d-adca-b32185bae6ac</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;Thank you for your suggestion. Measurement at 5V PIN shows 4.99V.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88052?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 11:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fff84e53-b014-44f3-9177-e5b08eb5237e</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Yes, you are measuring it correctly. Hard to say if it&amp;#39;s voltmeter or weak USB power source or simply your DK board doesn&amp;#39;t provide 3V3. As control measurement you can use 5V PIN on P1 or other PINs on the board, but anyway, even with 2.8V it should work. What about to power it through 12V on your target board and then just link VTG to 3V3 on target + GND it to nRF52 DK? That might help to be sure that power lines aren&amp;#39;t the problem...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88051?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 10:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8fe3239-1037-45f4-aaf7-aaeabad47cbb</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;It also seems strange for me, because according to nRF52 DK specs, &amp;quot;The 5 V from the USB is regulated down to 3.3 V&amp;quot;. In order to measure voltage on the DK I connect voltmeter to VDD nRF (P20) and any ground on board, is it correct way of measuring voltage? Right not it shows 2.87V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88050?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 10:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a43a5a79-afc1-418f-81b9-192555531c0d</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Yes, it could be caused by strange voltage levels you are observing. To be honest I&amp;#39;ve never seen the case where would nRF5x DK powered from 5V USB fail to provide 3V3 to external low-power MCU like this. Are you sure you power it from the right PINs on DK board? I&amp;#39;m using VDD nRF from P20 or some of VDD PINs on P1 header, it never gave me below 3V...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88049?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 10:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a4bf6c8-a687-416d-9c12-522fe8359da8</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;Recovery command shows the same error as erase or program:
&amp;quot;JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.
JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.&amp;quot;&lt;/p&gt;
&lt;p&gt;Do you have any ideas what may cause this HW problem? May it be caused by broken nrf52832 or X1? Or may it be due to low voltage (less than 3V) on DK and custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88048?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 10:02:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa3374a5-9232-4e2a-a0a2-e92f87107c15</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;OK, almost running out of ideas. If usual nrfjprog --recover -c %SPEED% --family %NRFFAMILY% --log doesn&amp;#39;t help in NRFTOOLS v9.4.0 then I once had more luck with recovery through nRFgo Studio (surprisingly). Note that I run all the tools on Win7, never on Linux/MAC (even with Win7 VM on these systems). You say that nRFgo Studio fails whenever you connect the board to the machine and try to select it, is that on Windows? If so then it more indicates HW (power) problem than anything else...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88047?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 09:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6e9cfef-e99d-4d25-9380-6d3733c05d34</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;yes, we double-checked everything one hundred times before posting to the forum, but, unfortunately, all jump wires have good contacts, so the problems is somewhere else. I have just removed the short between VDD and VTG, and the nRF52 DK was flashed successfully.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88046?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 09:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f86ed4e-a58b-4d36-9354-a31c7ef6186c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I see. I was having similar errors due to bad wiring, are you sure all these jump wires have good contacts? Also good test that J-Link is working well is to remove short between VDD and VTG, it should then target internal nRF5x chip on the board (and typically flash it successfully if it&amp;#39;s correct family).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88045?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 09:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf37d3bd-3429-4f9e-9a06-9ba68142d230</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;Thank you for your comment! But the connection scheme is correct (is is exactly the same as in the question which you referred): VTG is linked to VDD on nRF52, and GND Detect is linked to GND on nRF52 . It may look wrong due to colors of the wires, sorry about that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when programming a custom board using nRF52-DK</title><link>https://devzone.nordicsemi.com/thread/88044?ContentTypeID=1</link><pubDate>Sat, 27 May 2017 09:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:755881bc-9067-4118-b74a-96d32e4832fa</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi, it&amp;#39;s not really visible from your photo but I guess you have VTG and GND DETECT PINs wrongly connected on nRF52 DK P20 header. VTG must be linked to 3V3 (ideally by short to some VDD PIN on nRF52 because you are powering everything through it) and GND DETECT should be grounded (again ideally to some GND PIN on nRF52). See scheme in &lt;a href="https://devzone.nordicsemi.com/question/121393/programming-externalcustom-nrf52832-board-using-nrf52-dk/"&gt;this Q&amp;amp;A&lt;/a&gt; and alternatively other Q&amp;amp;As like &lt;a href="https://devzone.nordicsemi.com/question/123381/swd-jtag-to-a-sparkfun-nrf52832/"&gt;this one&lt;/a&gt; when debugging flashing through P19 and P20 of nRF5x DK boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>