<?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 nrf5340 programming error when rbp enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112596/nrfjprog-nrf5340-programming-error-when-rbp-enabled</link><description>I am trying to program nrf5340 using this command: nrfjprog -f NRF53 --program merged_domains.hex --verify --recover -r 
 It works fine if readback protection is not enabled, but when readback protection is enabled, it gives this error: [error] [ Client</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jul 2024 05:41:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112596/nrfjprog-nrf5340-programming-error-when-rbp-enabled" /><item><title>RE: nrfjprog nrf5340 programming error when rbp enabled</title><link>https://devzone.nordicsemi.com/thread/492162?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 05:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:711908c5-b733-4e4e-8121-225bcca8f369</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. I have not been able to reproduce this here with my board. But using the --recover with the programming command is fine. I hope we can address this reliability issue you experienced in a future release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog nrf5340 programming error when rbp enabled</title><link>https://devzone.nordicsemi.com/thread/492116?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 18:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b22a1ce0-ab03-42fa-baa1-8ed8d0231323</guid><dc:creator>Piyush_222</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;After running these commands below, I still get errors while programming.&lt;br /&gt;nrfjprog --recover&lt;br /&gt;nrfjprog --recover --coprocessor CP_NETWORK&lt;br /&gt;nrfjprog --recover&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Only the programming command with --recover works properly.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog nrf5340 programming error when rbp enabled</title><link>https://devzone.nordicsemi.com/thread/491985?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2024 07:42:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1717fb61-0189-4e47-bfad-ad5e975cb8e0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It seems like you may need to run the following sequence to ensure&amp;nbsp;nrfjprog can unlock both cores. I will report this internally. I&amp;#39;m not sure if it is an issue with the documentation or nrfjprog.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --recover
nrfjprog --recover --coprocessor CP_NETWORK
nrfjprog --recover&amp;#160;&lt;/pre&gt;&lt;/p&gt;
[quote user="Piyush_222"]Is it fine to use only the programming command without any recover command before it?[/quote]
&lt;p&gt;Yes, the nrfjprog will perform the same &amp;quot;recover&amp;quot; procedure internally when you append the --recover argument to your programming command, so the end result&amp;nbsp;will be the same.&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 nrf5340 programming error when rbp enabled</title><link>https://devzone.nordicsemi.com/thread/491919?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 17:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:552d5c87-c5ef-4522-9b58-8e634828bc1d</guid><dc:creator>Piyush_222</dc:creator><description>&lt;p&gt;Hello Vidar,&lt;/p&gt;
&lt;p&gt;I upgraded to the latest version and when I run this command first:&amp;nbsp;nrfjprog --recover --coprocessor CP_NETWORK,&lt;br /&gt;it gives the following error&lt;/p&gt;
&lt;p&gt;[error] [ Client] - Encountered error -90: Command enable_coprocessor executed for 14 milliseconds with result -90&lt;br /&gt;[error] [ Worker] - Application core access protection is enabled, can&amp;#39;t enable coprocessor.&lt;br /&gt;&lt;br /&gt;and I&amp;#39;m getting the same errors while programming.&lt;/p&gt;
&lt;p&gt;But when I run only this command: &lt;span&gt;nrfjprog -f NRF53 --program merged_domains.hex --verify --recover -r&lt;/span&gt;&lt;br /&gt;without running any recover command before this, it works every time without any error.&lt;/p&gt;
&lt;p&gt;Is it fine to use only the programming command without any recover command before it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfjprog nrf5340 programming error when rbp enabled</title><link>https://devzone.nordicsemi.com/thread/491639?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 14:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e1dc0e8-ab43-45fc-a5ea-d124a911c3a1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you please try to upgrade nrfjprog to the current version (v10.24.2 at time of writing) and see if you still get the same result?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did not manage to reproduce the error here. My setup:&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;nrfjprog version: 10.24.2 external and JLinkARM.dll version: 7.94e&lt;/p&gt;
&lt;p&gt;- Hex file&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5355.merged_5F00_domains.hex"&gt;devzone.nordicsemi.com/.../5355.merged_5F00_domains.hex&lt;/a&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;Then I tried each of the following before running the above command:&lt;br /&gt;1. nrfjprog --recover --coprocessor CP_APPLICATION&lt;br /&gt;&amp;nbsp; &amp;nbsp; nrfjprog --recover --coprocessor CP_NETWORK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;The network core must be recovered first.&amp;nbsp;&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/pastedimage1719843706637v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Link:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#readback_protection"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/device_guides/working_with_nrf/nrf53/nrf5340.html#readback_protection&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>