<?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 --verify fails when programming just after a recover (nrf5340)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107045/nrfjprog---verify-fails-when-programming-just-after-a-recover-nrf5340</link><description>Hello, 
 
 To create an automated flash tool, we want to split flashing steps between erase and program steps. 
 When performing a recover before flash, program verify fails. 
 
 
 When using single-line, it work fine. 
 
 
 
 I use latest version of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jan 2024 15:26:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107045/nrfjprog---verify-fails-when-programming-just-after-a-recover-nrf5340" /><item><title>RE: nrfjprog --verify fails when programming just after a recover (nrf5340)</title><link>https://devzone.nordicsemi.com/thread/463814?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 15:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3323e490-30bc-462a-9cf0-41f00f70903c</guid><dc:creator>ludelle</dc:creator><description>&lt;p&gt;Thank you for your feedback,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will&amp;nbsp; use&amp;nbsp; the single step solution to keep&amp;nbsp;short&amp;nbsp;duration for programmation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --verify fails when programming just after a recover (nrf5340)</title><link>https://devzone.nordicsemi.com/thread/463755?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 13:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1000b35-0728-4b7f-a835-694cae5718da</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Using --recover and --program as separated steps is not expected to work unless you add some erase options to the --program invocation. This is due to the existence of small firmware image which is written to the board (when doing --recover as a standalone step), and which keeps AP protection disabled. Although this might not be what you initially wanted, the easiest way to proceed would be to keep using --program with --recover in a single step, and avoid using standalone --recover step.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --verify fails when programming just after a recover (nrf5340)</title><link>https://devzone.nordicsemi.com/thread/463404?ContentTypeID=1</link><pubDate>Tue, 09 Jan 2024 15:47:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae20c56b-1252-411c-8620-cca0fdc83c0f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We will track this issue internally. At the moment, I am not able to provide any estimate on how long fixing this issue could last.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thank you for reporting this issue and for your patience.&lt;br /&gt;&lt;br /&gt;Please let me know if you have any further questions.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&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 --verify fails when programming just after a recover (nrf5340)</title><link>https://devzone.nordicsemi.com/thread/462746?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2024 15:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a9144b-25c3-44bb-aa87-e333792053d6</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have reproduced your reported issue. We will look into it internally. I will get back to you with new information, probably during next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --verify fails when programming just after a recover (nrf5340)</title><link>https://devzone.nordicsemi.com/thread/462498?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 12:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71068b0f-067a-4beb-9e1e-6497fc2907e0</guid><dc:creator>ludelle</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It work with --sectorerase, however it take a significant additionnal time.&lt;/p&gt;
&lt;p&gt;This is described in nrfjprog --help:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;--sectoranduicrerase and --sectorerase&lt;br /&gt; operations normally take significantly longer time&lt;br /&gt; compared to --chiperase operation so &lt;strong&gt;use them with&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt; caution.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;On our project erase/flash/verify for the two coprocessors take &lt;strong&gt;32s instead of ~ 15s&lt;/strong&gt; using --recover on single-line.&lt;/p&gt;
&lt;p&gt;For the time being we can use the single line command, but it does not fit well with our &amp;#39;standard flash process&amp;#39;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Note also that if we retry the procedure 1) and 2)&amp;nbsp; and try to program again with same command line it give another error type.This one is also disturbing because we do not protect the CP_NETWORK and recover of 1) must have removed any protection&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3) program with --verify the CP_NETWORK (without --recover)&lt;/p&gt;
&lt;p&gt;Programmation failed :&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000;"&gt;[error] [ Worker] - Can&amp;#39;t read memory descriptors, ap-protection is enabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --program build/zephyr/GENERATED_CP_NETWORK_merged_domains.hex --verify -f NRF53 --coprocessor CP_NETWORK
[error] [ Client] - Encountered error -90: Command read_memory_descriptors executed for 1 milliseconds with result -90
[error] [ Worker] - Can&amp;#39;t read memory descriptors, ap-protection is enabled.
[error] [ Client] - Encountered error -90: Command program_file executed for 31 milliseconds with result -90
[error] [ nRF53] - Failed while detecting device memory block protection status!
[error] [ nRF53] - Failed while reading device information.
[error] [ Worker] - Access protection is enabled, can&amp;#39;t read block protection state.
ERROR: The operation attempted is unavailable due to readback protection in
ERROR: your device. Please use --recover to unlock the device.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog --verify fails when programming just after a recover (nrf5340)</title><link>https://devzone.nordicsemi.com/thread/462470?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 10:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c29c6826-1341-491b-a26b-20ad8c74209e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You could try to add --sectorerase.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f NRF53 --program merged_domains.hex --coprocessor CP_NETWORK --verify --sectorerase&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>