<?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>Erase all including UICR write protection with JLinkExe (JLink Commander)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12200/erase-all-including-uicr-write-protection-with-jlinkexe-jlink-commander</link><description>Hi everyone, 
 I activated softdevice writing protection with nRFGoStudio (i.e. so that the softdevice can not be overriden). How can I deactivate that again so that I can flash the softdevice from JLinkExe instead of only being able to use nRFGoStudio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2016 13:32:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12200/erase-all-including-uicr-write-protection-with-jlinkexe-jlink-commander" /><item><title>RE: Erase all including UICR write protection with JLinkExe (JLink Commander)</title><link>https://devzone.nordicsemi.com/thread/46165?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 13:32:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dafdbf34-3bdc-47d0-8979-feed582dadfa</guid><dc:creator>Raphael</dc:creator><description>&lt;p&gt;Great, did not know that nrfjprog is now ported. I hope you guys support OS X and alternate toolchains like Eclipse or Embedded Studio much more in the future since so many developers work with Macs nowadays.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase all including UICR write protection with JLinkExe (JLink Commander)</title><link>https://devzone.nordicsemi.com/thread/46164?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 11:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d02e366-ae14-4cb7-8cba-bfc2fcddd52c</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;I highly recommend using our command line tool nrfjprog.
brew cask install nrf5x-command-line-tools
my favorite nrfjprog command is:
nrfjprog --recover // Erases entire chip, UICR, disables any protection, also eraces RAM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Erase all including UICR write protection with JLinkExe (JLink Commander)</title><link>https://devzone.nordicsemi.com/thread/46163?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 09:51:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90d2c74f-62a6-4a8f-90c9-7f0eddf157f3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The protection bits are set in the UICR registers which can only be erased by ERASEALL (complete chip erase), see NMVC chapter in &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf"&gt;nRF51 RM&lt;/a&gt; for more details. One reason it was designed this way is that memory protection settings are stored here.&lt;/p&gt;
&lt;p&gt;With Jlink commander you have to manually write to NMVC.ERASEALL:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ w4 4001e504 2  // Enable erase
$ w4 4001e50c 1  // ERASEALL
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That said, &lt;a href="http://www.nordicsemi.com/eng/nordic/Products/nRF51-DK/nRF5x-Command-Line-Tools-OSX/53412"&gt;nrfjprog&lt;/a&gt; is now ported to osx. This is a command line tool like J-link commander, but with simplified command line arguments made specifically for the nrf5 series. This will command will for instance perform a full chip erase like the above commands:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$nrfjprog --eraseall / -e 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The other advantage with nrfjprog is that it allows you to use the existing flash targets in our SDK Makefiles:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$make flash_softdevice &amp;amp;&amp;amp; make flash &amp;lt;target name&amp;gt;  // flashes softdevice and application
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>