<?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 --program  &amp;lt;&amp;gt; --verify fails at certain conditions.  nrfjprog --recover only helps</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69108/nrfjprog---program---verify-fails-at-certain-conditions-nrfjprog---recover-only-helps</link><description>Hi sometimes it happen with my nrf52832 based device. The common way I am programming firmware during development is next: 
 nrfjprog --program fw.hex --sectorerase --verify --reset --log At some condition happen i no longer can program firmware this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Dec 2020 10:19:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69108/nrfjprog---program---verify-fails-at-certain-conditions-nrfjprog---recover-only-helps" /><item><title>RE: nrfjprog --program  &lt;&gt; --verify fails at certain conditions.  nrfjprog --recover only helps</title><link>https://devzone.nordicsemi.com/thread/285784?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 10:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc1a6295-d935-4319-a2cc-3b6229eed97a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Valerii_Ie"] I happens with different devices but not frequent.[/quote]
&lt;p&gt;&amp;nbsp;Is Nordic development kits included in this?&lt;/p&gt;
[quote user="Valerii_Ie"] I would suggest it somehow related to device power or jlink programmer state.[/quote]
&lt;p&gt;What debugger are you using and how is the board supply?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program  &lt;&gt; --verify fails at certain conditions.  nrfjprog --recover only helps</title><link>https://devzone.nordicsemi.com/thread/285770?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 09:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45d2152f-7915-4503-a869-e482ecb0dca6</guid><dc:creator>Valerii_Ie</dc:creator><description>&lt;p&gt;Hi, I happens with different devices but not frequent. Sometimes I can reproduce it several times in sequence, sometimes it does not happen for months. I would suggest it somehow related to device power or jlink programmer state. Next time when it happen i will check UICR but we don&amp;#39;t use it for storing any &amp;quot;user&amp;quot; information (only bootloader address, MBR data address and reset pin)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program  &lt;&gt; --verify fails at certain conditions.  nrfjprog --recover only helps</title><link>https://devzone.nordicsemi.com/thread/283463?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 07:00:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d165fdbd-69ff-459e-a8a7-d1c3df666992</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Most of the peripherals will be cleared i.e. set back to its reset state after you have executed a Power-On-Reset. &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=4_2_0_17_6#unique_577666769"&gt;A power cycle would thus set most peripherals back to their default state&lt;/a&gt;.&amp;nbsp;&lt;span&gt;An immediate reason I can think of is that an erase all will erase everything in addition to the UICR register.&amp;nbsp;&lt;/span&gt;Are you using some of the registers in the UICR in your application?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Valerii_Ie"]It is custom board and unfortunately, I can&amp;#39;t share the schematic. I don&amp;#39;t have it.[/quote]
&lt;p&gt;&amp;nbsp;Ok. But are you able to reproduce the issue on a development kit? If you are, then we could at least exclude the HW of being source of the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, how many samples are you observing this issue on?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program  &lt;&gt; --verify fails at certain conditions.  nrfjprog --recover only helps</title><link>https://devzone.nordicsemi.com/thread/283358?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 15:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70bfe7ad-e6dd-4ca1-8616-72d7b97a626c</guid><dc:creator>Valerii_Ie</dc:creator><description>&lt;p&gt;Hi Jared, &lt;br /&gt;It is custom board and unfortunately, I can&amp;#39;t share the schematic. I don&amp;#39;t have it.&lt;br /&gt;I have tried many times with different j-link adapters, powercycled, restarted PC, changed cables, reconnected USB hub etc. I know&amp;nbsp;usually&amp;nbsp;it helps.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But in this case it doesn&amp;#39;t help. After unsuccessful verification i have dumped the flash and realized that only first about 20kB were programmed. That&amp;#39;s why verification fails. I also checked BPROT to exclude some protection reason.&amp;nbsp;&lt;br /&gt;What is actually helped:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --readcode dump.hex
nrfjprog -e
nrfjprog --program dump.hex --verify --reset&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;after -eraseall now i can write the same firmwase 10+ times and all attempts are successful.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding is that --eraseall lead to clear of some peripheral in NRF52&amp;nbsp; that prevents chip from successful write.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Any ideas?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program  &lt;&gt; --verify fails at certain conditions.  nrfjprog --recover only helps</title><link>https://devzone.nordicsemi.com/thread/283318?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 13:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:435edf69-d6c0-4f89-822c-4761c5f27d0b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried something simple as changing the USB cable? We often see that this is a common culprit. Also, are you using a custom board or a development kit. If it&amp;#39;s former, could you upload the schematics? I can make the case private first if you prefer it.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>