<?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 fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124506/nrfjprog---program-fails-when-fds-and-lesc-are-used</link><description>I&amp;#39;ve pulled FDS and LESC into my development project. I&amp;#39;ve noticed now, when I do --reset --sectorerase --program &amp;quot;#H&amp;quot; --family NRF52 --verify, occasionally I see program fail. And example of the application and the devices flash upon failure: 
 Has this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Oct 2025 12:28:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124506/nrfjprog---program-fails-when-fds-and-lesc-are-used" /><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/550479?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 12:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dae43cc9-e65a-4259-8fc1-d9db4ebd5f17</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Sounds good. The nRF Command line tool is replaced by the nrfutil. The&amp;nbsp;&lt;span&gt;nrfjprog&amp;nbsp;is wrapped by the nrfutil device and maintained. Please use the nrfutil device for programming.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/550397?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2025 17:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64d440b3-f7f0-43c9-89bc-8df1a2de54da</guid><dc:creator>jmac2025</dc:creator><description>&lt;p&gt;This works! For reference, this worked 100/100 times without issue, nrfjprog worked ~50/100 times with the same fw and device&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/550363?ContentTypeID=1</link><pubDate>Wed, 01 Oct 2025 13:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a258ea9-630b-4e80-89fa-e3c03794a535</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Are you using a custom board or&amp;nbsp;nRF52840 DK? Could you also test on nRF52840DK or another&lt;span&gt;&amp;nbsp;board?&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try the&amp;nbsp;&lt;span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/guides/installing.html"&gt;nrfutil&lt;/a&gt;&amp;nbsp;and the follwoing command?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil device program --firmware nrf52840_app.HEX --options chip_erase_mode=ERASE_RANGES_TOUCHED_BY_FIRMWARE,verify=VERIFY_READ,reset=RESET_SYSTEM --log-level trace&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If that also fails, I think we can rule out issues in nrfjprog, at least. If you try with nrfutil device, it should be at a more recent version than 2.7.16, since it&amp;#39;s using nrfjprog under the hood before that. The latest version is 2.14.2 (nrfutil device --version).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/550252?ContentTypeID=1</link><pubDate>Tue, 30 Sep 2025 16:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f385ae-4eb8-412c-94e0-5bcda9b2894b</guid><dc:creator>jmac2025</dc:creator><description>&lt;p&gt;Hi. The issue only recently has come up on older devices that do not have APPROTECT enabled by default. --sectorerase is erasing correctly based on reading flash (see image above) and that the error says --verify read &amp;quot;0xFF&amp;quot; instead of data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/550072?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 20:01:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8af9df82-5896-4c8b-b1bf-93880aabd8e4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;The issue is not related to FDS and LESC. It&amp;#39;s more like&amp;nbsp;&lt;span&gt;APPROTECT caused the issue, as my colleague explained in that post, because our&amp;nbsp;APPROTECT is enabled by default. See&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/IN/resource/in_141_v1.1.pdf"&gt;https://docs.nordicsemi.com/bundle/IN/resource/in_141_v1.1.pdf&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think that workaround doesn&amp;#39;t work for your case because the DK gets reset to lock the device before --sectorerase, so you need to:&amp;nbsp;&lt;br /&gt;recover -&amp;gt;&amp;nbsp;program -&amp;gt;&amp;nbsp;verify -&amp;gt; reset.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can check the status by:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrfjprog --memrd 0x10001208&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If it returns by &amp;quot;0x10001208: 0000005A&amp;quot;, it means unlock, then&amp;nbsp; --sectorerase can work. See the details in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/working-with-the-nrf52-series-improved-approtect"&gt;Working with the nRF52 Series&amp;#39; improved APPROTECT&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/549833?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 16:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e13a3e3a-966e-4224-8927-ee68ef07a85e</guid><dc:creator>jmac2025</dc:creator><description>&lt;p&gt;Is there a reason why this issue is arising when FDS and LESC was added to the project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/549809?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 12:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dc262a9-915c-45e5-b8cb-5e644aeea3eb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Then, you need to erase all&lt;span&gt;&amp;nbsp;and recover before programming.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/549801?ContentTypeID=1</link><pubDate>Thu, 25 Sep 2025 12:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5982a71-0639-4271-94ee-44a89f35ec34</guid><dc:creator>jmac2025</dc:creator><description>&lt;p&gt;But I&amp;#39;m already doing a --sectorerase and I&amp;#39;m still seeing this issue&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/549728?ContentTypeID=1</link><pubDate>Wed, 24 Sep 2025 19:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:255bd3df-32d4-4696-9a2b-c8ada77b70a7</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/112736/--verify-does-no-longer-work-when-chip-changed-from-qiaad0-to-qiaaf0"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/549462?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 16:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19d525af-a6ff-4d84-8086-2e7a9c38978e</guid><dc:creator>jmac2025</dc:creator><description>&lt;p&gt;here&amp;#39;s an example of what I see in Keil (this is not from the above log)&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/pastedimage1758556928944v1.png" alt=" " /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0820.log.log"&gt;devzone.nordicsemi.com/.../0820.log.log&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/549461?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 15:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83787235-62ac-46c1-9f28-641940b3447d</guid><dc:creator>jmac2025</dc:creator><description>&lt;ul&gt;
&lt;li&gt;I am using a custom board&amp;nbsp;&lt;/li&gt;
&lt;li&gt;I am using the latest nrfjprog&amp;nbsp;&lt;/li&gt;
&lt;li&gt;I am using the nRF5 SDK&lt;/li&gt;
&lt;li&gt;eraseall and recover do work, it only fails with sectorerase. This did not occur before&lt;/li&gt;
&lt;li&gt;below is an attached log file&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7181.log.log"&gt;devzone.nordicsemi.com/.../7181.log.log&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --program fails when FDS and LESC are used</title><link>https://devzone.nordicsemi.com/thread/549456?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 14:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:755348dd-1e8d-404a-af5b-f2536258afbd</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using the custom board or an nRF52840DK?&lt;/p&gt;
[quote user=""]when I do --reset --sectorerase&amp;nbsp;--program &amp;quot;#H&amp;quot; --family NRF52 --verify, occasionally I see program fail.[/quote]
&lt;p&gt;What nrfjprog version are you using? Could you update to the latest version&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download#infotabs"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download#infotabs&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;If that cannot help, could you provide the log by your command with &amp;quot;--log&amp;quot;?&lt;/p&gt;
&lt;p&gt;Could you try to use the nRF Programmer app to flash? Do you also get failed? If so, please also provide the log.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using the nRF5 SDK? Could you try to erase all&amp;nbsp; (nrfjprog&amp;nbsp;--eraseall or nrfjprog --recover) before programming?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>