<?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>nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22504/nrfjprog-9-4-0---recover-fails-on-custom-board</link><description>Hi ! 
 I work for about a year with a nRF52832 custom board without problem and recently I add a bootloader (with success) on the firmware. 
 Now I can&amp;#39;t connect through JLink to the board but the firmware still work.
&amp;#39;nrfjprog -f NRF52 -c 1000 --recover</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jun 2017 12:49:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22504/nrfjprog-9-4-0---recover-fails-on-custom-board" /><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88537?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2017 12:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50bfd0ed-b849-4147-bfaa-a1ffecc6472b</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;So you might try a pullup/down resistor on one of the SW lines (I am fuzzy, you should look at other posts for details.  Roughly, there might be noise on those lines.)  I have a BMD300 but haven&amp;#39;t used it in a while since I found it does not have a 32khz crystal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88543?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 14:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71f90258-f085-4c7b-8e71-77ae1de15be4</guid><dc:creator>apuret</dc:creator><description>&lt;p&gt;@Jørgen, @ butch: see my answers to your questions in the subject.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88542?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 10:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5670af0c-7fc5-461e-a6be-fda0e7ee842a</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Just ideas...  the custom board that doesn&amp;#39;t work is the same hw version as the boards that do work?  The pullup/down resistor on the SW lines on the custom board?  Short wires between DK and target?  High resistance/break in the wires?  You are not configuring the SW pins for other purposes?  You have not recently upgraded your OS/dev system/nfjprog/Jlink installation? Your 3V power supply reads 3V on a voltmeter and is not noisy?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88541?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 10:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b1f945a-0383-4834-ba7c-f5cd77bb1a63</guid><dc:creator>apuret</dc:creator><description>&lt;p&gt;I currently investigate software changes. What I know for sure: the firmware work in my board, I do not change the &amp;#39;main&amp;#39; part with the sd_app_evt_wait () and I do not add any &amp;#39;system off&amp;#39;. I don&amp;#39;t dare to try this firmware version on too many boards: 3 boards bricked is enough ...&lt;/p&gt;
&lt;p&gt;If I was in the case &amp;#39;the debugger had not enough time to connect&amp;#39;, how can I proceed to recover?&lt;/p&gt;
&lt;p&gt;Is there any other situations I can check?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88540?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 09:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa8a4964-1266-41e2-b9b1-a8a2df15a8d8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What exactly did you do when the boards became non-responsive? Make sure you are not putting the device into system off mode very early in your code (before the debugger have gotten time to connect and put the device into debug mode), without configuring a wakeup source.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88539?ContentTypeID=1</link><pubDate>Tue, 06 Jun 2017 08:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b6e3b65-0f9a-4af2-8842-afd728f33890</guid><dc:creator>apuret</dc:creator><description>&lt;p&gt;@butch: to complet my answer, I connect my board like &lt;a href="https://devzone.nordicsemi.com/question/80853/external-programming-using-nrf52-dk/?answer=98120#post-id-98120"&gt;in this post&lt;/a&gt; but it is powered with external +3.0V (not from the DK, see update to the question). I have already programed successfully about 30 different boards with this method and I had made 2 years of development the same way.&lt;/p&gt;
&lt;p&gt;I am really lost about this sudden problem. I only think of a software problem but who knows... I am open to try everything sensible to solve this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88538?ContentTypeID=1</link><pubDate>Sat, 03 Jun 2017 11:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b214503a-cf24-4c0d-8cc0-ce16d77dc008</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;AFAIK there is no other reason for the failure than hardware.  I think your answer to Jorgen is not complete: maybe you should specify the schematic of your SW connection between the DK and your custom board, and the voltage on your power supply to the custom board.  In other words, there are many different ways to do it and lots of posts about it, and just saying &amp;quot;mine is correct&amp;quot; doesn&amp;#39;t help us spot a problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88536?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 15:09:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae315e7f-927e-4449-b605-25b8f1966b98</guid><dc:creator>apuret</dc:creator><description>&lt;p&gt;Reverse way to ask the question: beside hardware problems, what the reasons to brick a nRF52832 (wrong value in wrong/undocumented register, timing, cpu/peripheral work load...)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88535?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 09:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b991559-32dc-4801-8f6b-448eb1f5f80a</guid><dc:creator>apuret</dc:creator><description>&lt;ul&gt;
&lt;li&gt;The board is correctly powered and the (already programmed) firmware works as expected.&lt;/li&gt;
&lt;li&gt;The SWD port of the nRF52832 is connected to the PCA10040 through P20 and an additional GND.&lt;/li&gt;
&lt;li&gt;I can program other identical boards with the same HW/SW tools.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With the (two) faulty boards, SWDSelect command dont find the SWD-DP and subsequent commands failed.&lt;/p&gt;
&lt;p&gt;Now, when doing some test, I brick another board!
I really need a solution to restore them!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog (9.4.0) --recover fails on custom board</title><link>https://devzone.nordicsemi.com/thread/88534?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2017 08:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8954b223-b148-4725-9e9e-77676cc310cb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;This error is typically returned when there is connection or power issues to the board. How do you connect the debugger, and how do you power the board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>