<?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>Can&amp;#39;t erase the softdevice part with JLinkEXE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14411/can-t-erase-the-softdevice-part-with-jlinkexe</link><description>Hello~
I&amp;#39;m using JLinkEXE to flash an nRF51822 chip. When I use nrfgo and press &amp;quot;erase all&amp;quot;, it wroks. But after if I flash the s130, I can&amp;#39;t erase the s130 with command &amp;quot;erase all&amp;quot; using JLinkExe. I wonder what command can erase the softdevice?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jun 2016 08:33:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14411/can-t-erase-the-softdevice-part-with-jlinkexe" /><item><title>RE: Can't erase the softdevice part with JLinkEXE</title><link>https://devzone.nordicsemi.com/thread/55033?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2016 08:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29882476-4388-457e-8b61-62d408d3a527</guid><dc:creator>Bee</dc:creator><description>&lt;p&gt;Yes, you&amp;#39;re right. Thank you for help. I can erase the softdevice with JLinkExe now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't erase the softdevice part with JLinkEXE</title><link>https://devzone.nordicsemi.com/thread/55032?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2016 06:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2654a517-deed-4356-9fd9-ad57066c8f8e</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;You write to the NVMC, asking it to erase the device. According to the User Specification document, the NVMC base address is 0x4001E000 for nRF51. You first want to enable erasing, then start the chip erase. This can be done from JLinkEXE as&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;w4 4001E504, 2
w4 4001e50C, 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which firsts write a 2 (erase enabled) to the CONFIG register, then writes a 1 (erase start) to the ERASEALL register.&lt;/p&gt;
&lt;p&gt;You also have to make sure to give the correct device in the --device parameter for JLinkExe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>