<?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>Replacing nrfjprog with JLinkExe</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62020/replacing-nrfjprog-with-jlinkexe</link><description>Hello, 
 I&amp;#39;ve been evaluating the speed of nrfjprog vs JLinkExe to flash multiple devices and found out that i could use JLinkExe with .jlink scripts to save roughly 50% of the time spent on flashing. It makes a huge difference for me since I&amp;#39;ll be flashing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jun 2020 06:41:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62020/replacing-nrfjprog-with-jlinkexe" /><item><title>RE: Replacing nrfjprog with JLinkExe</title><link>https://devzone.nordicsemi.com/thread/255665?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 06:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0054ccf-d79e-4e21-9a2a-a071d76704ec</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Always happy to help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replacing nrfjprog with JLinkExe</title><link>https://devzone.nordicsemi.com/thread/255622?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 19:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b609956-a0d9-448c-bbcd-10d197a506b9</guid><dc:creator>PB</dc:creator><description>&lt;p&gt;Thank you for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replacing nrfjprog with JLinkExe</title><link>https://devzone.nordicsemi.com/thread/252651?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 08:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc620447-2911-4b78-a595-21da89923078</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="PB"]Regarding this part I&amp;#39;ve found that i can just erase everything with JLinkExe without clearing RBP which first confused me since nrfjprog can&amp;#39;t do that but on the other hand it makes some sense since it&amp;#39;s erasing and not reading the memory contents. I will read more on the references you provided to understand it better because maybe i just didn&amp;#39;t reset after rbp all so the setting didn&amp;#39;t latch.[/quote]
&lt;p&gt;Sounds like you haven&amp;#39;t reset the device after writing to APPROTECT or that JLink recovered it for you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Some versions of JLink Commander might also unlock the device, which should be in the log file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Connecting to target via SWD
InitTarget() start
Device will be unsecured now.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The above is performed using JLink v6.64b, where it automatically unlocked the device (ie: erased it).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replacing nrfjprog with JLinkExe</title><link>https://devzone.nordicsemi.com/thread/252640?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 08:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:572b4995-2349-4092-aefc-a30c3efb5bde</guid><dc:creator>PB</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;Thank you for pointing&amp;nbsp;me&amp;nbsp;for your answers.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/62020/replacing-nrfjprog-with-jlinkexe/252615"]need to provide the equivalent to &amp;quot;nrfjprog --recover&amp;quot; in order to unlock the device[/quote]
&lt;p&gt;Regarding this part I&amp;#39;ve found that i can just erase everything with JLinkExe without clearing RBP which first confused me since nrfjprog can&amp;#39;t do that but on the other hand it makes some sense since it&amp;#39;s erasing and not reading the memory contents. I will read more on the references you provided to understand it better because maybe i just didn&amp;#39;t reset after rbp all so the setting didn&amp;#39;t latch.&lt;/p&gt;
&lt;p&gt;Is it a good idea to mix flashing with JLinkExe and later applying RBP with nrfjprog? Because on the outside everything seems great so far. I&amp;#39;m just worried that some register normally written by nrfjprog won&amp;#39;t get written by JLink script and I&amp;#39;ll learn that late in the process of flashing &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; and have to redo&amp;nbsp;everything from the beginning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replacing nrfjprog with JLinkExe</title><link>https://devzone.nordicsemi.com/thread/252615?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 06:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07129532-6b59-49fd-ba0b-43ce739d40ab</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For nRF52832, the equivalent to &amp;quot;nrfjprog --rbp ALL&amp;quot; is writing to this register:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uicr.html?cp=4_2_0_13_0_61#register.APPROTECT"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uicr.html?cp=4_2_0_13_0_61#register.APPROTECT&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You should do a reset afterwards in order to latch the new setting&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that you need to provide the equivalent to &amp;quot;nrfjprog --recover&amp;quot; in order to unlock the device, which you can find posted in this thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12484/approtect-and-dap"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/12484/approtect-and-dap&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>